diff options
author | Ken VanDine <ken.vandine@canonical.com> | 2011-07-22 13:41:06 -0400 |
---|---|---|
committer | Ken VanDine <ken.vandine@canonical.com> | 2011-07-22 13:41:06 -0400 |
commit | 108cec80746510d7f622ad0506a7f3d2a734c3ae (patch) | |
tree | 061bd5ba8a897fe82d74a941423192daa3b42a82 /src/indicator-session.c | |
parent | bd7fb2850d02ae416b2fd2a80f668f25dc861872 (diff) | |
parent | a1a7357b58d182e077ebfe8fb11c083e5eb18839 (diff) | |
download | ayatana-indicator-session-108cec80746510d7f622ad0506a7f3d2a734c3ae.tar.gz ayatana-indicator-session-108cec80746510d7f622ad0506a7f3d2a734c3ae.tar.bz2 ayatana-indicator-session-108cec80746510d7f622ad0506a7f3d2a734c3ae.zip |
Import upstream version 0.3.0
Diffstat (limited to 'src/indicator-session.c')
-rw-r--r-- | src/indicator-session.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c index 068ffef..d7155f6 100644 --- a/src/indicator-session.c +++ b/src/indicator-session.c @@ -6,7 +6,8 @@ Copyright 2009 Canonical Ltd. Authors: Ted Gould <ted@canonical.com> - + Conor Curran <conor.curran@canonical.com> + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3, as published by the Free Software Foundation. @@ -20,7 +21,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -//TODO - remember to reinsert Ted's comments. #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -444,22 +444,19 @@ 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", - &user_entry); + &self->users); } else{ g_signal_emit_by_name ((gpointer)self, "entry-removed", - &user_entry); + &self->users); } } @@ -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); } } } |