[gtk+] GtkSidebar: Fix a property type



commit db5cbce4d56450784ab43d680b5823db28139481
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Oct 2 21:59:55 2014 -0400

    GtkSidebar: Fix a property type
    
    The GtkSidebar:stack was meant to be an object property
    of type GTK_TYPE_STACK. Make it so.

 gtk/gtksidebar.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtksidebar.c b/gtk/gtksidebar.c
index bac651a..707694a 100644
--- a/gtk/gtksidebar.c
+++ b/gtk/gtksidebar.c
@@ -433,9 +433,10 @@ gtk_sidebar_class_init (GtkSidebarClass *klass)
   object_class->get_property = gtk_sidebar_get_property;
 
   obj_properties[PROP_STACK] =
-      g_param_spec_pointer ("stack", P_("Stack"),
-                            P_("Associated stack for this GtkSidebar"),
-                            G_PARAM_READWRITE);
+      g_param_spec_object (I_("stack"), P_("Stack"),
+                           P_("Associated stack for this GtkSidebar"),
+                           GTK_TYPE_STACK,
+                           G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
 
   g_object_class_install_properties (object_class, N_PROPERTIES, obj_properties);
 }


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