diff options
Diffstat (limited to 'src/ephy-lockdown.c')
-rw-r--r-- | src/ephy-lockdown.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ephy-lockdown.c b/src/ephy-lockdown.c index 48f6f5e1a..723042320 100644 --- a/src/ephy-lockdown.c +++ b/src/ephy-lockdown.c @@ -233,16 +233,17 @@ ephy_lockdown_init (EphyLockdown *lockdown) LOG ("EphyLockdown initialising"); - /* lockdown pref notifiers */ for (i = 0; i < G_N_ELEMENTS (keys); i++) { priv->notifier_id[i] =eel_gconf_notification_add (keys[i], (GConfClientNotifyFunc) notifier, lockdown); } - /* We know that no windows are open yet, - * so we don't need to do anything else here. + * so we don't need to do notify here. */ + + eel_gconf_monitor_add ("/apps/epiphany/lockdown"); + eel_gconf_monitor_add ("/desktop/gnome/lockdown"); } static void @@ -254,6 +255,9 @@ ephy_lockdown_finalize (GObject *object) LOG ("EphyLockdown finalising"); + eel_gconf_monitor_remove ("/apps/epiphany/lockdown"); + eel_gconf_monitor_remove ("/desktop/gnome/lockdown"); + for (i = 0; i < G_N_ELEMENTS (keys); i++) { eel_gconf_notification_remove (priv->notifier_id[i]); |