mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
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:
parent
46ed450a29
commit
8308f4c1e9
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user