aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-session.c
diff options
context:
space:
mode:
authorNeil Jagdish Patel <neil.patel@canonical.com>2011-07-21 13:18:47 +0100
committerNeil Jagdish Patel <neil.patel@canonical.com>2011-07-21 13:18:47 +0100
commitc6687bb3bc9e34b20da5c77a5adf42afb4a168f9 (patch)
treeda47d3f3fb405113c0629f06c8398c61386bc530 /src/indicator-session.c
parent59c85f004455ff9c5e0af5fc3cc605ac4c6bc775 (diff)
downloadayatana-indicator-session-c6687bb3bc9e34b20da5c77a5adf42afb4a168f9.tar.gz
ayatana-indicator-session-c6687bb3bc9e34b20da5c77a5adf42afb4a168f9.tar.bz2
ayatana-indicator-session-c6687bb3bc9e34b20da5c77a5adf42afb4a168f9.zip
Always send the actual pointers to the entry not pointers to copies
Diffstat (limited to 'src/indicator-session.c')
-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);
}
}
}