aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-09-07 16:03:22 +0100
committerConor Curran <conor.curran@canonical.com>2011-09-07 16:03:22 +0100
commit058f9cbcbfbe0ed93ce14ad31c5a7ccd14b6d61c (patch)
tree35d205d949d71806cda4d0df24c186a29cec44a2 /src
parentbc14f0aeb2dbd61c077f1f61c41303f0db4b9781 (diff)
downloadayatana-indicator-session-058f9cbcbfbe0ed93ce14ad31c5a7ccd14b6d61c.tar.gz
ayatana-indicator-session-058f9cbcbfbe0ed93ce14ad31c5a7ccd14b6d61c.tar.bz2
ayatana-indicator-session-058f9cbcbfbe0ed93ce14ad31c5a7ccd14b6d61c.zip
more hoop jumping for apt
Diffstat (limited to 'src')
-rw-r--r--src/apt-watcher.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/apt-watcher.c b/src/apt-watcher.c
index d2cd1b5..bbb541a 100644
--- a/src/apt-watcher.c
+++ b/src/apt-watcher.c
@@ -261,17 +261,11 @@ apt_watcher_transaction_state_real_update_cb (AptTransaction* trans,
AptWatcher* self = APT_WATCHER (user_data);
AptState state = (AptState)update;
+
if (state == UP_TO_DATE){
dbusmenu_menuitem_property_set (self->apt_item,
DBUSMENU_MENUITEM_PROP_LABEL,
_("Software Up to Date"));
- if (self->reboot_query != 0){
- g_source_remove (self->reboot_query);
- self->reboot_query = 0;
- }
- self->reboot_query = g_timeout_add_seconds (2,
- apt_watcher_query_reboot_status,
- self);
self->current_state = state;
}
else if (state == UPDATES_AVAILABLE){