Giter Site home page Giter Site logo

Comments (3)

diamondburned avatar diamondburned commented on September 22, 2024

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.

pojntfx avatar pojntfx commented on September 22, 2024

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.

diamondburned avatar diamondburned commented on September 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.