ayatana-commits team mailing list archive
-
ayatana-commits team
-
Mailing list archive
-
Message #03745
[Merge] lp:~cjcurran/indicator-session/restart-dialog into lp:indicator-session
Conor Curran has proposed merging lp:~cjcurran/indicator-session/restart-dialog into lp:indicator-session.
Requested reviews:
Conor Curran (cjcurran)
For more details, see:
https://code.launchpad.net/~cjcurran/indicator-session/restart-dialog/+merge/71088
restart button added the dialog on a shutdown command
--
https://code.launchpad.net/~cjcurran/indicator-session/restart-dialog/+merge/71088
Your team ayatana-commits is subscribed to branch lp:indicator-session.
=== modified file 'src/dialog.c'
--- src/dialog.c 2011-07-08 07:01:04 +0000
+++ src/dialog.c 2011-08-10 18:13:25 +0000
@@ -225,6 +225,12 @@
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);
Follow ups