# HG changeset patch # User Sean Egan # Date 1181940743 0 # Node ID 474283509a2aeea7e5344059330779ccbf0379d2 # Parent 9564b55f3c1856fa81ab70b1bdd0b00b5ce108e5 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 diff -r 9564b55f3c18 -r 474283509a2a pidgin/gtkdocklet-x11.c --- 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(); }