aboutsummaryrefslogtreecommitdiff
path: root/src/apt-watcher.c
diff options
context:
space:
mode:
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