changeset 21484:999e7907ada9

disapproval of revision 'f2ac3f0cdea64fd5e603c5350cabf85ed619f5e3'
author Casey Harkins <charkins@pidgin.im>
date Tue, 13 Nov 2007 23:25:54 +0000
parents f16534ec2897
children b95a421c9980
files pidgin/gtkdocklet-x11.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkdocklet-x11.c	Tue Nov 13 22:44:51 2007 +0000
+++ b/pidgin/gtkdocklet-x11.c	Tue Nov 13 23:25:54 2007 +0000
@@ -139,9 +139,9 @@
 static void
 docklet_x11_resize_icon(GtkWidget *widget)
 {
-	if (docklet_height == widget->allocation.height)
+	if (docklet_height == MIN(widget->allocation.height, widget->allocation.width))
 		return;
-	docklet_height = widget->allocation.height;
+	docklet_height = MIN(widget->allocation.height, widget->allocation.width);
 	pidgin_docklet_update_icon();
 }