Merge lp:~cjcurran/indicator-session/restart-dialog into lp:indicator-session/0.1

Proposed by Conor Curran
Status: Merged
Merged at revision: 174
Proposed branch: lp:~cjcurran/indicator-session/restart-dialog
Merge into: lp:indicator-session/0.1
Diff against target: 15 lines (+6/-0)
1 file modified
src/dialog.c (+6/-0)
To merge this branch: bzr merge lp:~cjcurran/indicator-session/restart-dialog
Reviewer Review Type Date Requested Status
Conor Curran (community) Approve
Review via email: mp+71088@code.launchpad.net

Description of the change

restart button added the dialog on a shutdown command

To post a comment you must log in.
Revision history for this message
Conor Curran (cjcurran) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/dialog.c'
2--- src/dialog.c 2011-07-08 07:01:04 +0000
3+++ src/dialog.c 2011-08-10 18:13:25 +0000
4@@ -225,6 +225,12 @@
5 button_text, GTK_RESPONSE_OK,
6 NULL);
7 }
8+
9+ if (type == LOGOUT_DIALOG_TYPE_SHUTDOWN){
10+ const gchar * restart_text;
11+ restart_text = g_dpgettext2 (NULL, "button", button_strings[LOGOUT_DIALOG_TYPE_RESTART]);
12+ gtk_dialog_add_button (GTK_DIALOG(dialog), restart_text, GTK_RESPONSE_HELP);
13+ }
14
15 gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK);
16

Subscribers

People subscribed via source and target branches