[gnome-control-center/wip/privacy] Fixup
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/privacy] Fixup
- Date: Sun, 25 Nov 2012 21:52:21 +0000 (UTC)
commit ad3616d3c6b0d3f677e1d3c14e690e940661faad
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Nov 25 16:14:30 2012 -0500
Fixup
Adapt to the privacy schema key name: 'stealth-mode' ended up
as 'hide-identity'.
panels/privacy/cc-privacy-panel.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/panels/privacy/cc-privacy-panel.c b/panels/privacy/cc-privacy-panel.c
index 60b4f9d..e82aa5c 100644
--- a/panels/privacy/cc-privacy-panel.c
+++ b/panels/privacy/cc-privacy-panel.c
@@ -293,7 +293,7 @@ stealth_mode_changed (GSettings *settings,
gboolean stealth_mode;
GtkWidget *w;
- stealth_mode = g_settings_get_boolean (settings, "stealth-mode");
+ stealth_mode = g_settings_get_boolean (settings, "hide-identity");
if (stealth_mode)
{
@@ -317,7 +317,7 @@ add_name_visibility (CcPrivacyPanel *self)
GtkWidget *w;
GtkWidget *dialog;
- w = get_visible_label (self->priv->privacy_settings, "stealth-mode");
+ w = get_visible_label (self->priv->privacy_settings, "hide-identity");
add_row (self, _("Name & Visibility"), "name_dialog", w);
w = GTK_WIDGET (gtk_builder_get_object (self->priv->builder, "name_done"));
@@ -326,7 +326,7 @@ add_name_visibility (CcPrivacyPanel *self)
G_CALLBACK (gtk_widget_hide), dialog);
w = GTK_WIDGET (gtk_builder_get_object (self->priv->builder, "stealth_mode"));
- g_settings_bind (self->priv->privacy_settings, "stealth-mode",
+ g_settings_bind (self->priv->privacy_settings, "hide-identity",
w, "active",
G_SETTINGS_BIND_DEFAULT);
@@ -340,7 +340,7 @@ add_name_visibility (CcPrivacyPanel *self)
w, "active",
G_SETTINGS_BIND_DEFAULT);
- g_signal_connect (self->priv->privacy_settings, "changed::stealth-mode",
+ g_signal_connect (self->priv->privacy_settings, "changed::hide-identity",
G_CALLBACK (stealth_mode_changed), self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]