diff options
author | Tristan Van Berkom <tristanvb@openismus.com> | 2013-03-20 11:56:39 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristanvb@openismus.com> | 2013-04-08 21:19:27 +0900 |
commit | 3b7fc8cdc9edab23755c1d79a74555485d14dd9c (patch) | |
tree | b86a3b8c88413a28e127684ba38d595a649b283b /gtk/gtkbuilder.c | |
parent | 64b87824c760766b2e83bfc6dad7e69f5c0ca667 (diff) | |
download | gtk+-3b7fc8cdc9edab23755c1d79a74555485d14dd9c.tar.gz |
Add Composite Child machinery and APIs to GtkWidget
This commit implements the needed machinery for GtkWidget
to build it's composite content from GtkBuilder XML and
adds the following API:
o gtk_widget_init_template()
An api to be called in instance initializers of any
GtkWidget subclass that uses template XML to build it's components.
o gtk_widget_class_set_template()
API to associate GtkBuilder XML to a given GtkWidget subclass
o gtk_widget_class_automate_child()
API to declare an object built by GtkBuilder to be associated
with an instance structure offset and automatically set.
o gtk_widget_get_automated_child()
API for bindings to fetch a child declared to be automated by
gtk_widget_class_automate_child(), for the case where bindings
do not generate GObjects under the hood and cannot use structure
offsets to resolve composite object pointers.
o gtk_widget_class_declare_callback[s]()
Declare static functions to be used in signal callbacks from
a given class's template XML
o gtk_widget_class_set_connect_func()
API for bindings to override the signal connection machinery
for a given GtkWidget derived class.
Diffstat (limited to 'gtk/gtkbuilder.c')
-rw-r--r-- | gtk/gtkbuilder.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c index f51f79a2d9..326b5a149f 100644 --- a/gtk/gtkbuilder.c +++ b/gtk/gtkbuilder.c @@ -216,6 +216,10 @@ * <link linkend="GtkFileFilter-BUILDER-UI">GtkFileFilter</link>, * <link linkend="GtkTextTagTable-BUILDER-UI">GtkTextTagTable</link>. * </para> + * <para> + * Additionally, since 3.10 a special <template> tag has been added to the format + * allowing one to <link linkend="GtkWidget-BUILDER-TEMPLATES">define a widget class's components</link>. + * </para> * </refsect2> * <refsect2> * <title>Embedding other XML</title> |