Skip to content
Permalink
Browse files

inhibit: always scale icon to match panel size

  • Loading branch information...
lukefromdc authored and raveit65 committed May 2, 2018
1 parent 8e29023 commit c4528fd6d22afcc6e3c27512677b8908e89c0613
Showing with 1 addition and 12 deletions.
  1. +1 −12 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);
}

0 comments on commit c4528fd

Please sign in to comment.
You can’t perform that action at this time.