Mercurial > pidgin.yaz
changeset 21480:f16534ec2897
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.
author | Casey Harkins <charkins@pidgin.im> |
---|---|
date | Tue, 13 Nov 2007 22:44:51 +0000 |
parents | 94b3275eafcc |
children | 84489b5529a7 999e7907ada9 |
files | pidgin/gtkdocklet-x11.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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(); }