From b0b2defd1e037bda6aed9c198b05515cce17caab Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Fri, 20 Jan 2017 16:11:20 +0100 Subject: status-notifier: Don't add extra padding around the icons It makes them look a little blurry at the "proper" sizes (32, 48, etc.) where the system-tray ones are perfect. Without the padding, they get blurry at the same sizes system-tray ones do, not making the situation worse. --- applets/notification_area/status-notifier/sn-item-v0.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/applets/notification_area/status-notifier/sn-item-v0.c b/applets/notification_area/status-notifier/sn-item-v0.c index a671e109..e322b492 100644 --- a/applets/notification_area/status-notifier/sn-item-v0.c +++ b/applets/notification_area/status-notifier/sn-item-v0.c @@ -1206,9 +1206,7 @@ sn_item_v0_size_allocate (GtkWidget *widget, GTK_WIDGET_CLASS (sn_item_v0_parent_class)->size_allocate (widget, allocation); /* FIXME: this leads to grow-only size, unless there's underallocation. - * not a problem in the panel, but one in the test app. - * NOTE: actually, it *can* shrink, as we request a little less for padding - * around, but that only allows shrinking by steps of 2 */ + * not a problem in the panel, but one in the test app. */ if (v0->icon_size <= 0) { gint prev_effective_icon_size = v0->effective_icon_size; @@ -1218,10 +1216,6 @@ sn_item_v0_size_allocate (GtkWidget *widget, else v0->effective_icon_size = allocation->width; - /* leave some padding around */ - if (v0->effective_icon_size > 2) - v0->effective_icon_size -= 2; - if (v0->effective_icon_size != prev_effective_icon_size) queue_update (SN_ITEM_V0 (widget)); } -- cgit v1.2.1