summaryrefslogtreecommitdiff
path: root/gladeui/glade-private.h
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <ugarte@endlessm.com>2018-08-01 17:06:48 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2018-08-02 13:26:59 -0300
commitf6bee53a3db712ee46230869f2c7f0e66d63c54b (patch)
treef3a20484313ab9b8d4dd358deadebfb212f8a2ea /gladeui/glade-private.h
parent44577c829ad111254169daf289994db02a67f18e (diff)
downloadglade-f6bee53a3db712ee46230869f2c7f0e66d63c54b.tar.gz
GladeWidget: add support for abstract classes
In order to support templates with abstract parents glade_widget_read() will use a class with the GladeInstantiable prefix. So for a GtkBin template it will use GladeInstantiableGtkBin which of course has to derive from GtkBin. In turn glade_widget_write() will ommit GladeInstantiable prefix.
Diffstat (limited to 'gladeui/glade-private.h')
-rw-r--r--gladeui/glade-private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gladeui/glade-private.h b/gladeui/glade-private.h
index d567a8cd..48cc2ac7 100644
--- a/gladeui/glade-private.h
+++ b/gladeui/glade-private.h
@@ -33,10 +33,16 @@
G_BEGIN_DECLS
+#define GLADE_WIDGET_INSTANTIABLE_PREFIX "GladeInstantiable"
+#define GLADE_WIDGET_INSTANTIABLE_PREFIX_LEN 17
+
/* glade-widget.c */
GList *_glade_widget_peek_prop_refs (GladeWidget *widget);
+/* glade-widget-adaptor.c */
+G_CONST_RETURN gchar *_glade_widget_adaptor_get_real_name (GladeWidgetAdaptor *adaptor);
+
/* glade-catalog.c */
GladeCatalog *_glade_catalog_get_catalog (const gchar *name);