aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/idousermenuitem.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/idousermenuitem.c b/src/idousermenuitem.c
index 4a67e8d..387c851 100644
--- a/src/idousermenuitem.c
+++ b/src/idousermenuitem.c
@@ -299,14 +299,15 @@ ido_user_menu_item_set_icon_from_file_icon (IdoUserMenuItem *self,
{
GFile *file;
gchar *path;
- gint width = 12;
- gint height = 12;
+ gint width;
+ gint height;
GdkPixbuf *pixbuf;
file = g_file_icon_get_file (G_FILE_ICON (icon));
path = g_file_get_path (file);
g_object_unref (file);
+ /* width and height will always be set by this function */
gtk_icon_size_lookup_for_settings (gtk_widget_get_settings (GTK_WIDGET (self)),
GTK_ICON_SIZE_MENU,
&width, &height);