diff options
author | lukefromdc <[email protected]> | 2018-05-02 01:57:50 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-05-02 14:03:51 +0200 |
commit | c4528fd6d22afcc6e3c27512677b8908e89c0613 (patch) | |
tree | 354b19ebaeda834540c3bd38cf979001722813cc /applets/inhibit | |
parent | 8e2902337546222db38a00cc16b3d2bc2e0ef852 (diff) | |
download | mate-power-manager-c4528fd6d22afcc6e3c27512677b8908e89c0613.tar.bz2 mate-power-manager-c4528fd6d22afcc6e3c27512677b8908e89c0613.tar.xz |
inhibit: always scale icon to match panel size
Diffstat (limited to 'applets/inhibit')
-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); } |