aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/indicator-session.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c
index 068ffef..af4e2eb 100644
--- a/src/indicator-session.c
+++ b/src/indicator-session.c
@@ -449,17 +449,15 @@ user_menu_visibility_get_cb (GObject* obj, GAsyncResult* res, gpointer user_data
//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);
}
}
@@ -489,18 +487,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);
}
}
}