diff options
author | Colomban Wendling <[email protected]> | 2017-01-20 16:11:20 +0100 |
---|---|---|
committer | lukefromdc <[email protected]> | 2017-01-23 13:49:34 -0500 |
commit | b0b2defd1e037bda6aed9c198b05515cce17caab (patch) | |
tree | 9257a834de9a030c237706a489f98b3b5ffc4dd6 /applets/notification_area/status-notifier | |
parent | bd25c5b4c173bb3541f204c60ffb9450a0d010cd (diff) | |
download | mate-panel-b0b2defd1e037bda6aed9c198b05515cce17caab.tar.bz2 mate-panel-b0b2defd1e037bda6aed9c198b05515cce17caab.tar.xz |
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.
Diffstat (limited to 'applets/notification_area/status-notifier')
-rw-r--r-- | applets/notification_area/status-notifier/sn-item-v0.c | 8 |
1 files changed, 1 insertions, 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)); } |