aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-07-22 16:20:27 +0100
committerConor Curran <conor.curran@canonical.com>2011-07-22 16:20:27 +0100
commitcf52e8764eb985e1b86b97962a9fd7b4400b8eb3 (patch)
treeda47d3f3fb405113c0629f06c8398c61386bc530 /src
parent59c85f004455ff9c5e0af5fc3cc605ac4c6bc775 (diff)
parentc6687bb3bc9e34b20da5c77a5adf42afb4a168f9 (diff)
downloadayatana-indicator-session-cf52e8764eb985e1b86b97962a9fd7b4400b8eb3.tar.gz
ayatana-indicator-session-cf52e8764eb985e1b86b97962a9fd7b4400b8eb3.tar.bz2
ayatana-indicator-session-cf52e8764eb985e1b86b97962a9fd7b4400b8eb3.zip
merged Neil's pointer fix
Diffstat (limited to 'src')
-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);
}
}
}