summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Egan <seanegan@pidgin.im>2007-06-15 20:52:23 +0000
committerSean Egan <seanegan@pidgin.im>2007-06-15 20:52:23 +0000
commit2e7bd7d821684a5725c3a6683dd04fe2156d486b (patch)
tree32177bd1e57b67e65df2a4bec1f20043f1ed326f
parent9b7f77bc969db63c4e64638f865887dd1e2396b2 (diff)
downloadpidgin-2e7bd7d821684a5725c3a6683dd04fe2156d486b.tar.gz
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
-rw-r--r--pidgin/gtkdocklet-x11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pidgin/gtkdocklet-x11.c b/pidgin/gtkdocklet-x11.c
index b2a7c27ae3..4739e1abbd 100644
--- a/pidgin/gtkdocklet-x11.c
+++ b/pidgin/gtkdocklet-x11.c
@@ -139,9 +139,9 @@ docklet_x11_update_icon(PurpleStatusPrimitive status, gboolean connecting, gbool
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();
}