summaryrefslogtreecommitdiff
path: root/gladeui/glade-widget.c
diff options
context:
space:
mode:
authorCorentin Noël <corentin.noel@collabora.com>2019-09-16 10:10:28 +0200
committerCorentin Noël <corentin@elementary.io>2019-10-04 14:07:31 +0000
commita4cd9074b6e592e68ab6964ddfe8b9d44739981f (patch)
tree6f434e91a007e5505a028e246e0d8f2fc5207b72 /gladeui/glade-widget.c
parent242364f80dbd7a092b1ab1c53ba6273ba4b95c57 (diff)
downloadglade-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.c5
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))