diff options
author | lukefromdc <[email protected]> | 2018-05-02 01:57:50 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-05-02 14:06:26 +0200 |
commit | 9530f79c162cfb0bc7b45d424342c2c235f4aaa5 (patch) | |
tree | 6bdf1b8dd628e980768e4ad4a264d43e9a447e6a | |
parent | 306b7e2a392557a1d78927af56fd8490d305410a (diff) | |
download | mate-power-manager-9530f79c162cfb0bc7b45d424342c2c235f4aaa5.tar.bz2 mate-power-manager-9530f79c162cfb0bc7b45d424342c2c235f4aaa5.tar.xz |
inhibit: always scale icon to match panel size
-rw-r--r-- | applets/inhibit/inhibit-applet.c | 13 |
1 files changed, 1 insertions, 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); } |