Skip to content

Commit 9530f79

Browse files
lukefromdcraveit65
authored andcommitted
inhibit: always scale icon to match panel size
1 parent 306b7e2 commit 9530f79

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

applets/inhibit/inhibit-applet.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -208,18 +208,7 @@ gpm_applet_size_allocate_cb (GtkWidget *widget,
208208
break;
209209
}
210210

211-
/* copied from button-widget.c in the panel */
212-
if (size < 22)
213-
size = 16;
214-
else if (size < 24)
215-
size = 22;
216-
else if (size < 32)
217-
size = 24;
218-
else if (size < 48)
219-
size = 32;
220-
else
221-
size = 48;
222-
211+
/* Scale to the actual size of the applet, don't quantize to original icon size */
223212
/* GtkImage already contains a check to do nothing if it's the same */
224213
gtk_image_set_pixel_size (GTK_IMAGE(applet->image), size);
225214
}

0 commit comments

Comments
 (0)