aboutsummaryrefslogtreecommitdiff
path: root/src/dialog.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2011-08-10 16:34:26 -0400
committerKen VanDine <ken.vandine@canonical.com>2011-08-10 16:34:26 -0400
commitae81953d3491fcadae3b05c9535c6605a50a9467 (patch)
treecb8a8cbf0ad10b45c3457852acd02790bcd7f2c2 /src/dialog.c
parentf0c187f8dd55d8b831892ce30937aed2b737c5f8 (diff)
parentb5eb255fae2158fde84def56b46fa6c5424f5b84 (diff)
downloadayatana-indicator-session-ae81953d3491fcadae3b05c9535c6605a50a9467.tar.gz
ayatana-indicator-session-ae81953d3491fcadae3b05c9535c6605a50a9467.tar.bz2
ayatana-indicator-session-ae81953d3491fcadae3b05c9535c6605a50a9467.zip
* New upstream release.
- restart is missing from SessionMenu (LP: #815077) - Don't allow starting programs via the greeter indicators (LP: #811853) - Printer menu item should launch system-config-printer (LP: #818602) - gudev integration - apt restart required awareness * debian/control - Added build depends on libgudev-1.0-dev
Diffstat (limited to 'src/dialog.c')
-rw-r--r--src/dialog.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dialog.c b/src/dialog.c
index d38f8bf..299f954 100644
--- a/src/dialog.c
+++ b/src/dialog.c
@@ -225,6 +225,12 @@ logout_dialog_new (LogoutDialogType type)
button_text, GTK_RESPONSE_OK,
NULL);
}
+
+ if (type == LOGOUT_DIALOG_TYPE_SHUTDOWN){
+ const gchar * restart_text;
+ restart_text = g_dpgettext2 (NULL, "button", button_strings[LOGOUT_DIALOG_TYPE_RESTART]);
+ gtk_dialog_add_button (GTK_DIALOG(dialog), restart_text, GTK_RESPONSE_HELP);
+ }
gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK);