mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
Patch from Jaap Haitsma to make sure that Metacity dialogs have icons.
2005-07-30 Elijah Newren <newren@gmail.com> Patch from Jaap Haitsma to make sure that Metacity dialogs have icons. Fixes #309876. * src/metacity-dialog.c (kill_window_question, warn_about_no_sm_support, error_about_command): call gtk_window_set_icon_name() to set the dialog icon
This commit is contained in:
parent
20b7ee18ef
commit
d5705ef576
@ -1,3 +1,12 @@
|
|||||||
|
2005-07-30 Elijah Newren <newren@gmail.com>
|
||||||
|
|
||||||
|
Patch from Jaap Haitsma to make sure that Metacity dialogs have
|
||||||
|
icons. Fixes #309876.
|
||||||
|
|
||||||
|
* src/metacity-dialog.c (kill_window_question,
|
||||||
|
warn_about_no_sm_support, error_about_command): call
|
||||||
|
gtk_window_set_icon_name() to set the dialog icon
|
||||||
|
|
||||||
2005-07-28 Elijah Newren <newren@gmail.com>
|
2005-07-28 Elijah Newren <newren@gmail.com>
|
||||||
|
|
||||||
* src/place.c (avoid_being_obscured_as_second_modal_dialog):
|
* src/place.c (avoid_being_obscured_as_second_modal_dialog):
|
||||||
|
@ -118,6 +118,7 @@ kill_window_question (const char *window_name,
|
|||||||
_("Forcing this application to quit will "
|
_("Forcing this application to quit will "
|
||||||
"cause you to lose any unsaved changes."));
|
"cause you to lose any unsaved changes."));
|
||||||
g_free (str);
|
g_free (str);
|
||||||
|
gtk_window_set_icon_name (GTK_WINDOW (dialog), "panel-force-quit");
|
||||||
|
|
||||||
gtk_label_set_use_markup (GTK_LABEL (GTK_MESSAGE_DIALOG (dialog)->label), TRUE);
|
gtk_label_set_use_markup (GTK_LABEL (GTK_MESSAGE_DIALOG (dialog)->label), TRUE);
|
||||||
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);
|
||||||
@ -261,6 +262,7 @@ warn_about_no_sm_support (char **lame_apps,
|
|||||||
GTK_MESSAGE_WARNING,
|
GTK_MESSAGE_WARNING,
|
||||||
GTK_BUTTONS_NONE,
|
GTK_BUTTONS_NONE,
|
||||||
_("These windows do not support \"save current setup\" and will have to be restarted manually next time you log in."));
|
_("These windows do not support \"save current setup\" and will have to be restarted manually next time you log in."));
|
||||||
|
gtk_window_set_icon_name (GTK_WINDOW (dialog), "stock_dialog-warning");
|
||||||
|
|
||||||
g_signal_connect (G_OBJECT (dialog),
|
g_signal_connect (G_OBJECT (dialog),
|
||||||
"response",
|
"response",
|
||||||
@ -333,6 +335,7 @@ error_about_command (const char *gconf_key,
|
|||||||
GTK_MESSAGE_ERROR,
|
GTK_MESSAGE_ERROR,
|
||||||
GTK_BUTTONS_CLOSE,
|
GTK_BUTTONS_CLOSE,
|
||||||
"%s", error);
|
"%s", error);
|
||||||
|
gtk_window_set_icon_name (GTK_WINDOW (dialog), "stock_dialog-error");
|
||||||
|
|
||||||
gtk_widget_realize (dialog);
|
gtk_widget_realize (dialog);
|
||||||
copy_of_gdk_x11_window_set_user_time (dialog->window, timestamp);
|
copy_of_gdk_x11_window_set_user_time (dialog->window, timestamp);
|
||||||
|
Loading…
Reference in New Issue
Block a user