mirror of
https://github.com/brl/mutter.git
synced 2025-02-19 14:44:10 +00:00
Patch from Bruno Boaventura to improve the "Force Quit" dialog. #121936
2006-10-06 Elijah Newren <newren gmail com> * src/metacity-dialog.c (kill_window_question): Patch from Bruno Boaventura to improve the "Force Quit" dialog. #121936
This commit is contained in:
parent
25910508ae
commit
2168cd3eb7
@ -1,3 +1,8 @@
|
|||||||
|
2006-10-06 Elijah Newren <newren gmail com>
|
||||||
|
|
||||||
|
* src/metacity-dialog.c (kill_window_question): Patch from Bruno
|
||||||
|
Boaventura to improve the "Force Quit" dialog. #121936
|
||||||
|
|
||||||
2006-10-02 Elijah Newren <newren gmail com>
|
2006-10-02 Elijah Newren <newren gmail com>
|
||||||
|
|
||||||
Ignore edge resistance for size-increment windows when resizing
|
Ignore edge resistance for size-increment windows when resizing
|
||||||
|
@ -87,16 +87,16 @@ kill_window_question (const char *window_name,
|
|||||||
char *str, *tmp;
|
char *str, *tmp;
|
||||||
|
|
||||||
tmp = g_markup_escape_text (window_name, -1);
|
tmp = g_markup_escape_text (window_name, -1);
|
||||||
str = g_strdup_printf (_("The window \"%s\" is not responding."), tmp);
|
str = g_strdup_printf (_("\"%s\" is not responding."), tmp);
|
||||||
g_free (tmp);
|
g_free (tmp);
|
||||||
|
|
||||||
dialog = gtk_message_dialog_new (NULL, 0,
|
dialog = gtk_message_dialog_new (NULL, 0,
|
||||||
GTK_MESSAGE_WARNING,
|
GTK_MESSAGE_WARNING,
|
||||||
GTK_BUTTONS_NONE,
|
GTK_BUTTONS_NONE,
|
||||||
"<b>%s</b>\n\n%s",
|
"<big><b>%s</b></big>\n\n%s",
|
||||||
str,
|
str,
|
||||||
_("Forcing this application to quit will "
|
_("<i>You may choose to wait a short while"
|
||||||
"cause you to lose any unsaved changes."));
|
"for it to continue or force the application"
|
||||||
|
"to quit entirely.</i>"));
|
||||||
g_free (str);
|
g_free (str);
|
||||||
gtk_window_set_icon_name (GTK_WINDOW (dialog), "panel-force-quit");
|
gtk_window_set_icon_name (GTK_WINDOW (dialog), "panel-force-quit");
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ kill_window_question (const char *window_name,
|
|||||||
gtk_label_set_line_wrap (GTK_LABEL (GTK_MESSAGE_DIALOG (dialog)->label), TRUE);
|
gtk_label_set_line_wrap (GTK_LABEL (GTK_MESSAGE_DIALOG (dialog)->label), TRUE);
|
||||||
|
|
||||||
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
|
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
|
||||||
GTK_STOCK_CANCEL,
|
_("_Wait"),
|
||||||
GTK_RESPONSE_REJECT,
|
GTK_RESPONSE_REJECT,
|
||||||
_("_Force Quit"),
|
_("_Force Quit"),
|
||||||
GTK_RESPONSE_ACCEPT,
|
GTK_RESPONSE_ACCEPT,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user