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.
This commit is contained in:
Benjamin Otte 2013-11-25 02:39:13 +01:00
parent 46ed450a29
commit 8308f4c1e9

View File

@ -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));