diff options
author | Ted Gould <ted@gould.cx> | 2011-08-19 14:53:29 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-08-19 14:53:29 -0500 |
commit | 8c4cd9001609ddd0ab6d2a30aa456bc4a67fa8a0 (patch) | |
tree | 1c13f554a5cbf54ac86a0663d1aedb40cd1870fc /src/dialog.c | |
parent | 9c47ca97c6471ff44e44ad0403237ac054333fc2 (diff) | |
parent | 92cb2ff94b4efb98437639a7c37fa894efa03556 (diff) | |
download | ayatana-indicator-session-8c4cd9001609ddd0ab6d2a30aa456bc4a67fa8a0.tar.gz ayatana-indicator-session-8c4cd9001609ddd0ab6d2a30aa456bc4a67fa8a0.tar.bz2 ayatana-indicator-session-8c4cd9001609ddd0ab6d2a30aa456bc4a67fa8a0.zip |
Merge U. Desktop
Diffstat (limited to 'src/dialog.c')
-rw-r--r-- | src/dialog.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dialog.c b/src/dialog.c index 9633224..299f954 100644 --- a/src/dialog.c +++ b/src/dialog.c @@ -183,6 +183,8 @@ logout_dialog_new (LogoutDialogType type) "text", _(body_strings[type]), NULL)); + gtk_window_set_keep_above(GTK_WINDOW(dialog), TRUE); + gboolean allowed = FALSE; if (type == LOGOUT_DIALOG_TYPE_LOG_OUT) { allowed = ck_check_allowed(LOGOUT_DIALOG_TYPE_RESTART); @@ -223,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); |