aboutsummaryrefslogtreecommitdiff
path: root/src/apt-watcher.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-08-23 18:17:54 +0100
committerConor Curran <conor.curran@canonical.com>2011-08-23 18:17:54 +0100
commit430f5bce4eef7194f260496a31a18c24e16969b4 (patch)
tree4c8f9439127c35224dca279ed3c0ffa9e266225c /src/apt-watcher.c
parentc8335dabc0de12258ff397924e264cc02ae86554 (diff)
downloadayatana-indicator-session-430f5bce4eef7194f260496a31a18c24e16969b4.tar.gz
ayatana-indicator-session-430f5bce4eef7194f260496a31a18c24e16969b4.tar.bz2
ayatana-indicator-session-430f5bce4eef7194f260496a31a18c24e16969b4.zip
set the alert state on the apt item when reboot is required
Diffstat (limited to 'src/apt-watcher.c')
-rw-r--r--src/apt-watcher.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/apt-watcher.c b/src/apt-watcher.c
index 7d706a0..a4298a8 100644
--- a/src/apt-watcher.c
+++ b/src/apt-watcher.c
@@ -279,6 +279,9 @@ apt_watcher_transaction_state_update_cb (AptTransaction* trans,
dbusmenu_menuitem_property_set (self->apt_item,
DBUSMENU_MENUITEM_PROP_LABEL,
_("Reboot Required"));
+ dbusmenu_menuitem_property_set (self->apt_item,
+ DBUSMENU_MENUITEM_PROP_DISPOSITION,
+ DBUSMENU_MENUITEM_DISPOSITION_ALERT);
session_dbus_restart_required (self->session_dbus_interface);
}
g_debug ("Finished with a reboot value of %i", reboot);