diff options
-rw-r--r-- | src/indicator-session.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c index 990140a..d7155f6 100644 --- a/src/indicator-session.c +++ b/src/indicator-session.c @@ -444,13 +444,10 @@ user_menu_visibility_get_cb (GObject* obj, GAsyncResult* res, gpointer user_data // If it is what we had before no need to do anything... if (self->show_users_entry == update){ return; - } - + } //Otherwise self->show_users_entry = update; - //IndicatorObjectEntry user_entry = self->users; - if (self->show_users_entry == TRUE){ g_signal_emit_by_name ((gpointer)self, "entry-added", @@ -489,18 +486,16 @@ receive_signal (GDBusProxy * proxy, //Otherwise self->show_users_entry = update; - - IndicatorObjectEntry user_entry = self->users; if (self->show_users_entry == TRUE){ g_signal_emit_by_name ((gpointer)self, "entry-added", - &user_entry); + &self->users); } else{ g_signal_emit_by_name ((gpointer)self, "entry-removed", - &user_entry); + &self->users); } } } |