Merge branch 'layout-manager-ref' into 'master'

widget: Don't lose a layout manager ref

See merge request GNOME/gtk!977
This commit is contained in:
Emmanuele Bassi 2019-07-03 13:25:44 +00:00
commit bdc8f9dccf

View File

@ -2303,7 +2303,7 @@ gtk_widget_set_property (GObject *object,
gtk_css_node_set_name (priv->cssnode, GTK_WIDGET_GET_CLASS (widget)->priv->css_name);
break;
case PROP_LAYOUT_MANAGER:
gtk_widget_set_layout_manager (widget, g_value_get_object (value));
gtk_widget_set_layout_manager (widget, g_value_dup_object (value));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);