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).

https://bugzilla.gnome.org/show_bug.cgi?id=668279
This commit is contained in:
Ryan Lortie
2012-01-19 09:40:24 -05:00
parent cf48434867
commit 1d98d18f64
4 changed files with 269 additions and 0 deletions

View File

@@ -267,6 +267,9 @@ void g_settings_bind_writable (GSettin
void g_settings_unbind (gpointer object,
const gchar *property);
GAction * g_settings_create_action (GSettings *settings,
const gchar *key);
gpointer g_settings_get_mapped (GSettings *settings,
const gchar *key,
GSettingsGetMapping mapping,