Mercurial > pidgin.yaz
comparison pidgin/gtkdocklet-x11.c @ 17887:474283509a2a
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
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Fri, 15 Jun 2007 20:52:23 +0000 |
parents | c7df0c2d8eef |
children | 44b4e8bd759b |
comparison
equal
deleted
inserted
replaced
17886:9564b55f3c18 | 17887:474283509a2a |
---|---|
137 } | 137 } |
138 | 138 |
139 static void | 139 static void |
140 docklet_x11_resize_icon(GtkWidget *widget) | 140 docklet_x11_resize_icon(GtkWidget *widget) |
141 { | 141 { |
142 if (docklet_height == widget->allocation.height) | 142 if (docklet_height == MIN(widget->allocation.height, widget->allocation.width)) |
143 return; | 143 return; |
144 docklet_height = widget->allocation.height; | 144 docklet_height = MIN(widget->allocation.height, widget->allocation.width); |
145 pidgin_docklet_update_icon(); | 145 pidgin_docklet_update_icon(); |
146 } | 146 } |
147 | 147 |
148 static void | 148 static void |
149 docklet_x11_blank_icon() | 149 docklet_x11_blank_icon() |