diff options
author | Benjamin Otte <otte@redhat.com> | 2013-11-25 02:39:13 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2013-11-25 03:49:35 +0100 |
commit | 8308f4c1e9d654c77f50e4ea9b945cf382161009 (patch) | |
tree | 0e2c6d745e937bea762a7ac3928c0758a82dab2c /gtk/gtkstack.c | |
parent | 46ed450a2995c98c44305077d3edcd10d6fd2bc3 (diff) | |
download | gtk+-8308f4c1e9d654c77f50e4ea9b945cf382161009.tar.gz |
stack: Fix crash on g_object_get("visible-child")
priv->visible_child is not a GtkWidget but a custom struct holding the
widget. So use the getter instead.
Diffstat (limited to 'gtk/gtkstack.c')
-rw-r--r-- | gtk/gtkstack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkstack.c b/gtk/gtkstack.c index 1f0da9e3d4..1c61192df7 100644 --- a/gtk/gtkstack.c +++ b/gtk/gtkstack.c @@ -227,7 +227,7 @@ gtk_stack_get_property (GObject *object, g_value_set_boolean (value, priv->homogeneous); break; case PROP_VISIBLE_CHILD: - g_value_set_object (value, priv->visible_child); + g_value_set_object (value, gtk_stack_get_visible_child (stack)); break; case PROP_VISIBLE_CHILD_NAME: g_value_set_string (value, gtk_stack_get_visible_child_name (stack)); |