mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Don't cause lots of X traffic when the icon name doesn't actually change.
* gtk/gtkwindow.c (gtk_window_set_icon_name): Don't cause lots of X traffic when the icon name doesn't actually change. Some apps like to reset their window icon frequently, without actually changing the icon name... svn path=/trunk/; revision=22103
This commit is contained in:
parent
6859e93810
commit
60523a7b8e
@ -1,3 +1,10 @@
|
||||
2009-01-12 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkwindow.c (gtk_window_set_icon_name): Don't cause lots
|
||||
of X traffic when the icon name doesn't actually change. Some
|
||||
apps like to reset their window icon frequently, without actually
|
||||
changing the icon name...
|
||||
|
||||
2009-01-12 Paolo Borelli <pborelli@katamail.com>
|
||||
|
||||
Bug 492794 – Pasting external text at end of view yields wrong
|
||||
|
@ -3507,6 +3507,9 @@ gtk_window_set_icon_name (GtkWindow *window,
|
||||
|
||||
info = ensure_icon_info (window);
|
||||
|
||||
if (g_strcmp0 (info->icon_name, name) == 0)
|
||||
return;
|
||||
|
||||
tmp = info->icon_name;
|
||||
info->icon_name = g_strdup (name);
|
||||
g_free (tmp);
|
||||
|
Loading…
Reference in New Issue
Block a user