aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-09-28 15:37:20 -0500
committerTed Gould <ted@gould.cx>2012-09-28 15:37:20 -0500
commit1c274a4a72b9823be37828daf23c19fb16eedebb (patch)
treef53067a52a98621c3304047316fbce55687239b9
parent6db75f9ca01326ea608c59f2fa664f57742ec035 (diff)
downloadayatana-indicator-session-1c274a4a72b9823be37828daf23c19fb16eedebb.tar.gz
ayatana-indicator-session-1c274a4a72b9823be37828daf23c19fb16eedebb.tar.bz2
ayatana-indicator-session-1c274a4a72b9823be37828daf23c19fb16eedebb.zip
Make the restart item a normal one
-rw-r--r--src/session-menu-mgr.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/session-menu-mgr.c b/src/session-menu-mgr.c
index f6cd038..c6ae5b5 100644
--- a/src/session-menu-mgr.c
+++ b/src/session-menu-mgr.c
@@ -491,8 +491,7 @@ update_confirmation_labels (SessionMenuMgr * mgr)
mi_set_label (mgr->shutdown_mi, confirm_needed ? _("Shut Down\342\200\246")
: _("Shut Down"));
- dbusmenu_menuitem_property_set (mgr->restart_mi, RESTART_ITEM_LABEL,
- confirm_needed ? _("Restart\342\200\246")
+ mi_set_label (mgr->restart_mi, confirm_needed ? _("Restart\342\200\246")
: _("Restart"));
}
@@ -516,9 +515,7 @@ build_session_menuitems (SessionMenuMgr* mgr)
g_signal_connect_swapped (mi, DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED,
G_CALLBACK(action_func_hibernate), mgr);
- mi = mgr->restart_mi = dbusmenu_menuitem_new ();
- mi_set_type (mi, RESTART_ITEM_TYPE);
- dbusmenu_menuitem_property_set (mi, RESTART_ITEM_LABEL, _("Restart\342\200\246"));
+ mi = mgr->restart_mi = mi_new (_("Restart\342\200\246"));
dbusmenu_menuitem_child_append (mgr->top_mi, mi);
g_signal_connect_swapped (mi, DBUSMENU_MENUITEM_SIGNAL_ITEM_ACTIVATED,
G_CALLBACK(action_func_spawn_async), CMD_RESTART);