# HG changeset patch # User Casey Harkins # Date 1194993891 0 # Node ID f16534ec2897e80b57f557bbafdf1165722b3389 # Parent 94b3275eafcc9fc7cef82218fe727edcd745d38c Use widget allocation height to determine docklet icon size on x11, rather than the minimum of the height and width. This fixes cases where we are getting randomly small allocation widths and ending up with a tiny docklet icon. Fixes #2466. diff -r 94b3275eafcc -r f16534ec2897 pidgin/gtkdocklet-x11.c --- a/pidgin/gtkdocklet-x11.c Tue Nov 13 18:00:22 2007 +0000 +++ b/pidgin/gtkdocklet-x11.c Tue Nov 13 22:44:51 2007 +0000 @@ -139,9 +139,9 @@ static void docklet_x11_resize_icon(GtkWidget *widget) { - if (docklet_height == MIN(widget->allocation.height, widget->allocation.width)) + if (docklet_height == widget->allocation.height) return; - docklet_height = MIN(widget->allocation.height, widget->allocation.width); + docklet_height = widget->allocation.height; pidgin_docklet_update_icon(); }