Comments (3)
I'm not sure what use that would add, since it seems like Gio.SettingsBackend
itself is excluded from generation. The reason for this seems to be listed in Gio.SettingsBackend
's documentation:
The GSettingsBackend API is exported to allow third-party implementations, but does not carry the same stability guarantees as the public GIO API. For this reason, you have to define the C preprocessor symbol G_SETTINGS_ENABLE_BACKEND before including gio/gsettingsbackend.h.
I'm not too sure how I should go about implementing this. Perhaps a new package in pkg/core/gsettingsbackend
maybe?
from gotk4.
Oh I see! The reason I'd like to use it this way is so I could use a custom SchemaSource
to load GSettings schemas from a custom directory - if possible, a package in pkg/core/gsettingsbackend
would be great!
from gotk4.
if possible, a package in
pkg/core/gsettingsbackend
would be great!
I actually don't think such a package would be very useful just yet. Looking more at the docs, Gio.SettingsBackend
is an abstract class, and gotk4 currently does not have code to connect Go objects to GObjects, unfortunately.
I'm still in the process of even figuring out how to do that. gotk4 already generates all the boilerplate callback to wire up a Go object to be called from GLib; it's just that the functions that I know of to do this are all deprecated, and documentation on this is practically non-existent.
so I could use a custom
SchemaSource
to load GSettings schemas from a custom directory
Does gio.SettingsSchemaSource.new_from_directory not do this?
Also, what API are you using that would require Gio.Settings
?
from gotk4.
Related Issues (20)
- Why go4.org/unsafe/assume-no-moving-gc ? HOT 4
- gir-generate failed to decode gir XML HOT 4
- Gstreamer bindings HOT 19
- Generator Workflow HOT 2
- Unusable GtkBuilderCScope API
- Memory is not freed when destroying Window HOT 1
- `DropTarget` panics when calling the `"drop"` signal handler HOT 10
- Bring back Unref methods
- Switch intern to KarpelesLab/weak
- why build time so slow? HOT 1
- Copy text into clipboard works on Linux but crashes on Windows HOT 2
- support building without gobject-introspection & atk HOT 3
- GtkApplication? crash HOT 3
- Refactor SetFinalizer and toggle notifier HOT 2
- ConstraintLayout.AddConstraintsFromDescription results in SIGSEGV HOT 1
- GTK Assertion Fails calling NewConstraint HOT 3
- gotk4 ApplicationWindow does not show after Hide()
- ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH HOT 2
- Video Streaming HOT 26
- Custom glib.LogSetWriter HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gotk4.