privacy: Remove use of gnome-shell schema

Use show-full-name-in-top-bar key from the privacy settings instead
of show-full-name in the shell's settings.

https://bugzilla.gnome.org/show_bug.cgi?id=689561
This commit is contained in:
Bastien Nocera 2013-01-15 09:35:29 +01:00
parent 39d7842ebe
commit bbbaff2e0a

View file

@ -43,7 +43,6 @@ struct _CcPrivacyPanelPrivate
GSettings *lockdown_settings;
GSettings *lock_settings;
GSettings *shell_settings;
GSettings *privacy_settings;
};
@ -315,7 +314,7 @@ stealth_mode_changed (GSettings *settings,
if (stealth_mode)
{
g_settings_set_boolean (self->priv->lock_settings, "show-full-name", FALSE);
g_settings_set_boolean (self->priv->shell_settings, "show-full-name", FALSE);
g_settings_set_boolean (self->priv->privacy_settings, "show-full-name-in-top-bar", FALSE);
}
w = GTK_WIDGET (gtk_builder_get_object (self->priv->builder, "full_name_top_bar"));
@ -350,7 +349,7 @@ add_name_visibility (CcPrivacyPanel *self)
G_SETTINGS_BIND_DEFAULT);
w = GTK_WIDGET (gtk_builder_get_object (self->priv->builder, "full_name_top_bar"));
g_settings_bind (self->priv->shell_settings, "show-full-name",
g_settings_bind (self->priv->privacy_settings, "show-full-name-in-top-bar",
w, "active",
G_SETTINGS_BIND_DEFAULT);
@ -613,7 +612,6 @@ cc_privacy_panel_finalize (GObject *object)
g_clear_object (&priv->builder);
g_clear_object (&priv->lockdown_settings);
g_clear_object (&priv->lock_settings);
g_clear_object (&priv->shell_settings);
g_clear_object (&priv->privacy_settings);
G_OBJECT_CLASS (cc_privacy_panel_parent_class)->finalize (object);
@ -700,7 +698,6 @@ cc_privacy_panel_init (CcPrivacyPanel *self)
self->priv->lockdown_settings = g_settings_new ("org.gnome.desktop.lockdown");
self->priv->lock_settings = g_settings_new ("org.gnome.desktop.screensaver");
self->priv->shell_settings = g_settings_new ("org.gnome.shell");
self->priv->privacy_settings = g_settings_new ("org.gnome.desktop.privacy");
add_screen_lock (self);