From 6485128ded273d7d6bbb9f764e16c7b5cfc08919 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Mon, 28 Oct 2013 10:16:39 -0700 Subject: ido_user_menu_item_set_icon_from_file_icon: don't initialize width and height --- src/idousermenuitem.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/idousermenuitem.c') 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); -- cgit v1.2.3