aboutsummaryrefslogtreecommitdiff
path: root/src/apt-watcher.c
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2012-03-06 15:43:36 +0100
committerSebastien Bacher <seb128@ubuntu.com>2012-03-06 15:43:36 +0100
commitd7fbb0c91d4d285c862a6bc4afe49b21e1313ede (patch)
tree907316fd4ae40d13982ef3969daff6f0040e2de6 /src/apt-watcher.c
parent86561325c0e7883e0b74a4f28bcd4a7f09c15d8f (diff)
parent3c5b15aba9bb40ab8ef9c55df35941b67e52d31b (diff)
downloadayatana-indicator-session-d7fbb0c91d4d285c862a6bc4afe49b21e1313ede.tar.gz
ayatana-indicator-session-d7fbb0c91d4d285c862a6bc4afe49b21e1313ede.tar.bz2
ayatana-indicator-session-d7fbb0c91d4d285c862a6bc4afe49b21e1313ede.zip
* Backport r243 and r244, should fix the restart required status update
once aptdaemon is fixed to correctly emit signals (lp: #942104) * debian/patches/restore_session_lock.patch, debian/rules: - replace by a backport of the official commit
Diffstat (limited to 'src/apt-watcher.c')
-rw-r--r--src/apt-watcher.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/apt-watcher.c b/src/apt-watcher.c
index 6e8a5c9..c638a93 100644
--- a/src/apt-watcher.c
+++ b/src/apt-watcher.c
@@ -115,15 +115,16 @@ static void apt_watcher_signal_cb ( GDBusProxy* proxy,
g_debug ("updates changed signal received");
apt_watcher_check_for_updates (self);
}
- else if (g_strcmp0(signal_name, "RestartScheduled") == 0) {
+ else if (g_strcmp0(signal_name, "RestartSchedule") == 0) {
g_debug ("RestartScheduled signal received");
dbusmenu_menuitem_property_set (self->apt_item,
DBUSMENU_MENUITEM_PROP_LABEL,
_("Restart to Complete Updates…"));
dbusmenu_menuitem_property_set (self->apt_item,
DBUSMENU_MENUITEM_PROP_DISPOSITION,
- DBUSMENU_MENUITEM_DISPOSITION_ALERT);
- }
+ DBUSMENU_MENUITEM_DISPOSITION_ALERT);
+ session_dbus_restart_required (self->session_dbus_interface);
+ }
}
static void