From 60523a7b8e76d4dbd10e0d794e13751b188454e1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 13 Jan 2009 03:04:52 +0000 Subject: [PATCH] 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 --- ChangeLog | 7 +++++++ gtk/gtkwindow.c | 3 +++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 807bcf3946..9b7dbf45de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-01-12 Matthias Clasen + + * 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 Bug 492794 – Pasting external text at end of view yields wrong diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index e0c76c43f8..095a11a796 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -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);