aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-10-28 10:16:39 -0700
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-10-28 10:16:39 -0700
commit6485128ded273d7d6bbb9f764e16c7b5cfc08919 (patch)
tree357848a853c773a86738afc714f07eeb5779b2fb
parenta2e6b66a3ff0a3001c4ba307a2489afea5a09a1d (diff)
downloadayatana-ido-6485128ded273d7d6bbb9f764e16c7b5cfc08919.tar.gz
ayatana-ido-6485128ded273d7d6bbb9f764e16c7b5cfc08919.tar.bz2
ayatana-ido-6485128ded273d7d6bbb9f764e16c7b5cfc08919.zip
ido_user_menu_item_set_icon_from_file_icon: don't initialize width and height
-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);