----------------------------------------------------------------- Revision: 9c6851a63e0bbc1f138f02a0b71623ef2a1020b2 Ancestor: 7f1ffdbda951c2effec7bfbfa8148e9ce98e7669 Author: seanegan@pidgin.im Date: 2007-06-15T20:52:23 Branch: im.pidgin.pidgin Modified files: pidgin/gtkdocklet-x11.c ChangeLog: 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 ============================================================ --- pidgin/gtkdocklet-x11.c 75770f15b828b4a4d6c7f66d7dee8ba0f7580277 +++ pidgin/gtkdocklet-x11.c e244ea9bed3c0be3715fe6b1a605bc3f7dc90202 @@ -139,9 +139,9 @@ docklet_x11_resize_icon(GtkWidget *widge 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(); }