aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-09-08 18:30:52 +0100
committerConor Curran <conor.curran@canonical.com>2011-09-08 18:30:52 +0100
commitd446a9d9bf96e5d3dd9b6065adceb1aeb25fcd98 (patch)
tree65bf1e8ff3b63d27ba18ed42b1e237d2c7e9d146
parentdaa6295ce57baca8b3e4fc574e3b8dd29cf2598e (diff)
downloadayatana-indicator-session-d446a9d9bf96e5d3dd9b6065adceb1aeb25fcd98.tar.gz
ayatana-indicator-session-d446a9d9bf96e5d3dd9b6065adceb1aeb25fcd98.tar.bz2
ayatana-indicator-session-d446a9d9bf96e5d3dd9b6065adceb1aeb25fcd98.zip
add the new gsettings entry for toggling the visibility of the real name on the panel
-rw-r--r--data/com.canonical.indicator.session.gschema.xml.in5
-rw-r--r--src/indicator-session.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/data/com.canonical.indicator.session.gschema.xml.in b/data/com.canonical.indicator.session.gschema.xml.in
index e0d14c3..3b4cd4d 100644
--- a/data/com.canonical.indicator.session.gschema.xml.in
+++ b/data/com.canonical.indicator.session.gschema.xml.in
@@ -20,6 +20,11 @@
<_summary>Remove the shutdown item from the session menu</_summary>
<_description>Makes it so that the shutdown button doesn’t show in the session menu.</_description>
</key>
+ <key type="b" name="show-real-name-on-panel">
+ <default>true</default>
+ <summary>Determine the visibility of the User's real name on the panel</summary>
+ <description>Allow for the Removal of the users name from the panel</description>
+ </key>
<key type="b" name="user-show-menu">
<default>true</default>
<summary>Determine the visibility of the User Menu</summary>
diff --git a/src/indicator-session.c b/src/indicator-session.c
index f41c841..1f58aba 100644
--- a/src/indicator-session.c
+++ b/src/indicator-session.c
@@ -705,6 +705,7 @@ indicator_session_update_users_label (IndicatorSession* self,
gtk_widget_hide(GTK_WIDGET(self->users.label));
return;
}
+
gtk_label_set_text (self->users.label, g_strdup(name));
gtk_widget_show(GTK_WIDGET(self->users.label));
}