[libgd] main-view: make view-type a construct property



commit d93382bf33ccefbd34f0140445c535c09881d5f7
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Apr 4 10:26:32 2013 -0400

    main-view: make view-type a construct property
    
    Or it won't be properly set when instatiating a view with
    g_object_new().
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694533

 libgd/gd-main-view.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libgd/gd-main-view.c b/libgd/gd-main-view.c
index e710bb1..97136d3 100644
--- a/libgd/gd-main-view.c
+++ b/libgd/gd-main-view.c
@@ -166,6 +166,7 @@ gd_main_view_class_init (GdMainViewClass *klass)
                       GD_MAIN_VIEW_LIST,
                       GD_MAIN_VIEW_ICON,
                       G_PARAM_READWRITE |
+                      G_PARAM_CONSTRUCT |
                       G_PARAM_STATIC_STRINGS);
 
   properties[PROP_SELECTION_MODE] =


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