From c4528fd6d22afcc6e3c27512677b8908e89c0613 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Wed, 2 May 2018 01:57:50 -0400 Subject: inhibit: always scale icon to match panel size --- applets/inhibit/inhibit-applet.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/applets/inhibit/inhibit-applet.c b/applets/inhibit/inhibit-applet.c index 47cf8bb..61e6879 100644 --- a/applets/inhibit/inhibit-applet.c +++ b/applets/inhibit/inhibit-applet.c @@ -208,18 +208,7 @@ gpm_applet_size_allocate_cb (GtkWidget *widget, break; } - /* copied from button-widget.c in the panel */ - if (size < 22) - size = 16; - else if (size < 24) - size = 22; - else if (size < 32) - size = 24; - else if (size < 48) - size = 32; - else - size = 48; - + /* Scale to the actual size of the applet, don't quantize to original icon size */ /* GtkImage already contains a check to do nothing if it's the same */ gtk_image_set_pixel_size (GTK_IMAGE(applet->image), size); } -- cgit v1.2.1