aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-08-10 19:13:42 +0100
committerConor Curran <conor.curran@canonical.com>2011-08-10 19:13:42 +0100
commit8289dd6baeef083c4fe0e0a1b3b7878dc9416d6c (patch)
tree154faf499a7540f8f3c2d5b956beb04688ec982d /src
parent66ea570beda05cf7c494198f7c1d51d4c4f73a98 (diff)
parente0e129c43f2e10c465ea88cc3f95c615e4610dc5 (diff)
downloadayatana-indicator-session-8289dd6baeef083c4fe0e0a1b3b7878dc9416d6c.tar.gz
ayatana-indicator-session-8289dd6baeef083c4fe0e0a1b3b7878dc9416d6c.tar.bz2
ayatana-indicator-session-8289dd6baeef083c4fe0e0a1b3b7878dc9416d6c.zip
restart fix
Diffstat (limited to 'src')
-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);