gtk+ r22103 - in trunk: . gtk
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r22103 - in trunk: . gtk
- Date: Tue, 13 Jan 2009 03:04:53 +0000 (UTC)
Author: matthiasc
Date: Tue Jan 13 03:04:52 2009
New Revision: 22103
URL: http://svn.gnome.org/viewvc/gtk+?rev=22103&view=rev
Log:
* 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...
Modified:
trunk/ChangeLog
trunk/gtk/gtkwindow.c
Modified: trunk/gtk/gtkwindow.c
==============================================================================
--- trunk/gtk/gtkwindow.c (original)
+++ trunk/gtk/gtkwindow.c Tue Jan 13 03:04:52 2009
@@ -3507,6 +3507,9 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]