aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-12 15:52:13 -0600
committerTed Gould <ted@gould.cx>2010-03-12 15:52:13 -0600
commit5d784227da6b87b8588724ac1d894c6116fc2b01 (patch)
tree421a6da21ba40150fa5bdbdb571e0b943d1655a9 /src
parent2dd05e216cdc0e7ab9318a410758eade2d3e68a4 (diff)
downloadayatana-indicator-session-5d784227da6b87b8588724ac1d894c6116fc2b01.tar.gz
ayatana-indicator-session-5d784227da6b87b8588724ac1d894c6116fc2b01.tar.bz2
ayatana-indicator-session-5d784227da6b87b8588724ac1d894c6116fc2b01.zip
Setting the icon when the restart is touched.
Diffstat (limited to 'src')
-rw-r--r--src/session-service.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/session-service.c b/src/session-service.c
index 693c73a..6c4dd1b 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -622,6 +622,7 @@ restart_dir_changed (void)
dbusmenu_menuitem_property_set(restart_mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Restart Required..."));
}
dbusmenu_menuitem_property_set(restart_mi, DBUSMENU_MENUITEM_PROP_ICON_NAME, "emblem-important");
+ session_dbus_set_name(session_dbus, ICON_RESTART);
} else {
if (supress_confirmations()) {
dbusmenu_menuitem_property_set(restart_mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Restart"));
@@ -629,6 +630,7 @@ restart_dir_changed (void)
dbusmenu_menuitem_property_set(restart_mi, DBUSMENU_MENUITEM_PROP_LABEL, _("Restart..."));
}
dbusmenu_menuitem_property_remove(restart_mi, DBUSMENU_MENUITEM_PROP_ICON_NAME);
+ session_dbus_set_name(session_dbus, ICON_DEFAULT);
}
return;