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:
Matthias Clasen 2009-01-13 03:04:52 +00:00
parent 6859e93810
commit 60523a7b8e
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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);