Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 8f030c6fd819087af1e8e268b798094e > files > 2

pidgin-2.2.1-1mdv2008.0.src.rpm

-----------------------------------------------------------------
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();
 }