changeset 17939:474283509a2a

Instead of sizing the docklet icon to the height available, size it to the minimum of the height or width. Fixes #1721 in which the icon may get cut off in vertically aligned panels
author Sean Egan <seanegan@gmail.com>
date Fri, 15 Jun 2007 20:52:23 +0000
parents 9564b55f3c18
children d865909b6646
files pidgin/gtkdocklet-x11.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkdocklet-x11.c	Fri Jun 15 19:07:02 2007 +0000
+++ b/pidgin/gtkdocklet-x11.c	Fri Jun 15 20:52:23 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();
 }