diff options
author | Bastien Nocera <hadess@hadess.net> | 2009-12-15 16:16:43 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2009-12-15 16:16:43 +0000 |
commit | c8baa5bdf6737a7e82025e99a83376f6ea174365 (patch) | |
tree | 4a9f9714eca8be13bb093190d3a448d8699e60f2 /src/totem-preferences.c | |
parent | b8b835d197551d3272c1c071c5aa6b26da82d9de (diff) | |
download | totem-c8baa5bdf6737a7e82025e99a83376f6ea174365.tar.gz |
Add GConf key to disable all keyboard shortcuts
https://bugzilla.gnome.org/show_bug.cgi?id=573149
Diffstat (limited to 'src/totem-preferences.c')
-rw-r--r-- | src/totem-preferences.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/totem-preferences.c b/src/totem-preferences.c index b60cfc976..3198eae2f 100644 --- a/src/totem-preferences.c +++ b/src/totem-preferences.c @@ -285,6 +285,16 @@ show_vfx_changed_cb (GConfClient *client, guint cnxn_id, } static void +disable_kbd_shortcuts_changed_cb (GConfClient *client, + guint cnxn_id, + GConfEntry *entry, + Totem *totem) +{ + totem->disable_kbd_shortcuts = gconf_client_get_bool (totem->gc, + GCONF_PREFIX"/disable_keyboard_shortcuts", NULL); +} + +static void lock_screensaver_on_audio_changed_cb (GConfClient *client, guint cnxn_id, GConfEntry *entry, Totem *totem) { @@ -730,6 +740,12 @@ totem_setup_preferences (Totem *totem) (GConfClientNotifyFunc) encoding_changed_cb, totem, NULL, NULL); + /* Disable keyboard shortcuts */ + totem->disable_kbd_shortcuts = gconf_client_get_bool (totem->gc, + GCONF_PREFIX"/disable_keyboard_shortcuts", NULL); + gconf_client_notify_add (totem->gc, GCONF_PREFIX"/disable_keyboard_shortcuts", + (GConfClientNotifyFunc) disable_kbd_shortcuts_changed_cb, + totem, NULL, NULL); } void |