Only set using_themed_icon if we actually got an icon list from the theme.

2004-10-04  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwindow.c (gtk_window_realize_icon): Only set
	using_themed_icon if we actually got an icon list from the
	theme.  (#154472, Morten Welinder)
This commit is contained in:
Matthias Clasen 2004-10-04 15:16:57 +00:00 committed by Matthias Clasen
parent ce2ddb38d7
commit 9de1565a99
5 changed files with 14 additions and 1 deletions

View File

@ -3,6 +3,9 @@
* gtk/gtkwindow.c (gtk_window_set_icon_list):
(gtk_window_set_default_icon_list): Ref the new icons
before unreffing the old ones. (#154468, Morten Welinder)
(gtk_window_realize_icon): Only set using_themed_icon if
we actually got an icon list from the theme. (#154472, Morten
Welinder)
2004-10-03 Matthias Clasen <mclasen@redhat.com>

View File

@ -3,6 +3,9 @@
* gtk/gtkwindow.c (gtk_window_set_icon_list):
(gtk_window_set_default_icon_list): Ref the new icons
before unreffing the old ones. (#154468, Morten Welinder)
(gtk_window_realize_icon): Only set using_themed_icon if
we actually got an icon list from the theme. (#154472, Morten
Welinder)
2004-10-03 Matthias Clasen <mclasen@redhat.com>

View File

@ -3,6 +3,9 @@
* gtk/gtkwindow.c (gtk_window_set_icon_list):
(gtk_window_set_default_icon_list): Ref the new icons
before unreffing the old ones. (#154468, Morten Welinder)
(gtk_window_realize_icon): Only set using_themed_icon if
we actually got an icon list from the theme. (#154472, Morten
Welinder)
2004-10-03 Matthias Clasen <mclasen@redhat.com>

View File

@ -3,6 +3,9 @@
* gtk/gtkwindow.c (gtk_window_set_icon_list):
(gtk_window_set_default_icon_list): Ref the new icons
before unreffing the old ones. (#154468, Morten Welinder)
(gtk_window_realize_icon): Only set using_themed_icon if
we actually got an icon list from the theme. (#154472, Morten
Welinder)
2004-10-03 Matthias Clasen <mclasen@redhat.com>

View File

@ -2713,7 +2713,8 @@ gtk_window_realize_icon (GtkWindow *window)
if (icon_list == NULL && info->icon_name)
{
icon_list = icon_list_from_theme (widget, info->icon_name);
info->using_themed_icon = TRUE;
if (icon_list)
info->using_themed_icon = TRUE;
}
/* Inherit from transient parent */