Updating branch refs/heads/master to cdfc5e4ee954a527892a250027b2454a238d941b (commit) from 61f8a50e64c24bbaa0b7b8e53f659b4881e131bb (commit)
commit cdfc5e4ee954a527892a250027b2454a238d941b Author: Andrzej <ndrwr...@gmail.com> Date: Fri Sep 6 01:17:33 2013 +0100 Allow rectangular or slightly oversized icons panel-plugin/indicator-button-box.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panel-plugin/indicator-button-box.c b/panel-plugin/indicator-button-box.c index f4364f5..5bfb658 100644 --- a/panel-plugin/indicator-button-box.c +++ b/panel-plugin/indicator-button-box.c @@ -381,7 +381,8 @@ indicator_button_box_is_small (IndicatorButtonBox *box) box->pixbuf_w = gdk_pixbuf_get_width (pixbuf); box->pixbuf_h = gdk_pixbuf_get_height (pixbuf); - box->is_small = (box->pixbuf_w == box->pixbuf_h && box->pixbuf_w <= ICON_SIZE); + // allow some wiggle room for small nearly square icons + box->is_small = (box->pixbuf_w <= ICON_SIZE+4 && box->pixbuf_h <= ICON_SIZE+4); } else { _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits