GNOME Bugzilla – Bug 668279
create GAction from GSettings
Last modified: 2012-01-20 18:25:36 UTC
This will let you whack some gsettings keys directly into the action group of your application for easy access from your menus.
Created attachment 205630 [details] [review] add a way to create a GAction from GSettings g_settings_create_action() will create a GAction for the named key, allowing it to be added to the action group of the application (so that the setting can be directly manipulated from menus, for example).
Created attachment 205631 [details] [review] tests for GSettings action binding
need the patch from bug 668269 for these, btw
Review of attachment 205630 [details] [review]: Looks nice, I think. The only thing missing is a testcase
Review of attachment 205631 [details] [review]: Aaand...there it is.
Would be good to also show this off on the gtk side. What we really need is some nice article about best practices for using gsettings in a gtk app.