diff options
author | Corentin Noël <corentin.noel@collabora.com> | 2019-09-16 10:10:28 +0200 |
---|---|---|
committer | Corentin Noël <corentin@elementary.io> | 2019-10-04 14:07:31 +0000 |
commit | a4cd9074b6e592e68ab6964ddfe8b9d44739981f (patch) | |
tree | 6f434e91a007e5505a028e246e0d8f2fc5207b72 /gladeui/glade-widget.c | |
parent | 242364f80dbd7a092b1ab1c53ba6273ba4b95c57 (diff) | |
download | glade-a4cd9074b6e592e68ab6964ddfe8b9d44739981f.tar.gz |
gladeui: Ensure that we write the "type-func" property when a get-type-function is defined in the catalog
Diffstat (limited to 'gladeui/glade-widget.c')
-rw-r--r-- | gladeui/glade-widget.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gladeui/glade-widget.c b/gladeui/glade-widget.c index 9e7718b9..af6893ed 100644 --- a/gladeui/glade-widget.c +++ b/gladeui/glade-widget.c @@ -4400,11 +4400,16 @@ glade_widget_write (GladeWidget *widget, } else { + const gchar *type_func = NULL; widget_node = glade_xml_node_new (context, GLADE_XML_TAG_WIDGET); glade_xml_node_set_property_string (widget_node, GLADE_XML_TAG_CLASS, glade_widget_adaptor_get_name (widget->priv->adaptor)); + glade_xml_node_set_property_string (widget_node, + GLADE_XML_TAG_TYPE_FUNC, + glade_widget_adaptor_get_type_func (widget->priv->adaptor)); + /* Conditionally omit the ID in the output if the name is 'unset' */ if (glade_widget_has_name (widget) || glade_project_writing_preview (widget->priv->project)) |