[gtk+] GtkImage: Fix the initial value of icon-size



commit c9ec4ba5a14790f4d9f5f67be12a049e1f611861
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jun 15 20:22:18 2013 -0400

    GtkImage: Fix the initial value of icon-size
    
    Since we are pulling the icon-size out of the icon helper now,
    we should set its icon-size when constructing it.

 gtk/gtkimage.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index 61c41b9..cc480bf 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -380,6 +380,7 @@ gtk_image_init (GtkImage *image)
 
   gtk_widget_set_has_window (GTK_WIDGET (image), FALSE);
   priv->icon_helper = _gtk_icon_helper_new ();
+  _gtk_icon_helper_set_icon_size (priv->icon_helper, DEFAULT_ICON_SIZE);
 
   priv->filename = NULL;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]