diff options
author | Tristan Van Berkom <tristanvb@openismus.com> | 2013-03-20 12:48:38 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristanvb@openismus.com> | 2013-04-08 21:19:27 +0900 |
commit | 82583640a275c7d95c185e4ad9eaa95bc37aba1f (patch) | |
tree | e27fac2c802c21c691808e5afb557b2e629bdd85 /gtk/gtkbuilder.h | |
parent | 4ec6d6006e36f3f51074750534a8ab20b51abb5b (diff) | |
download | gtk+-82583640a275c7d95c185e4ad9eaa95bc37aba1f.tar.gz |
GtkBuilder: Added api to allow private signal callbacks
In preperation for composite objects, for better encapsulation
the following APIs are added to allow handling of signals declared
in the XML with callbacks declared statically.
o gtk_builder_add_callback_symbol[s]()
Adds a symbol to the internal symbol hash
o gtk_builder_lookup_symbol()
Looks up a symbol, exposed in case added symbols are used
in conjunction with gtk_builder_connect_signals_full()
The default implementation of gtk_builder_connect_signals() now
does not have a strong requirement on GModule (or a strong requirement
on symbols being declared in the global namespace). Instead GModule
is used as a fallback in the case that symbols are not declared
explicitly.
Diffstat (limited to 'gtk/gtkbuilder.h')
-rw-r--r-- | gtk/gtkbuilder.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gtkbuilder.h b/gtk/gtkbuilder.h index 31e5a24039..5b22eb13cb 100644 --- a/gtk/gtkbuilder.h +++ b/gtk/gtkbuilder.h @@ -167,6 +167,19 @@ gboolean gtk_builder_value_from_string_type (GtkBuilder *builder, GValue *value, GError **error); +GDK_AVAILABLE_IN_3_10 +void gtk_builder_add_callback_symbol (GtkBuilder *builder, + const gchar *callback_name, + GCallback callback_symbol); +GDK_AVAILABLE_IN_3_10 +void gtk_builder_add_callback_symbols (GtkBuilder *builder, + const gchar *first_callback_name, + GCallback first_callback_symbol, + ...) G_GNUC_NULL_TERMINATED; +GDK_AVAILABLE_IN_3_10 +GCallback gtk_builder_lookup_callback_symbol (GtkBuilder *builder, + const gchar *callback_name); + /** * GTK_BUILDER_WARN_INVALID_CHILD_TYPE: * @object: the #GtkBuildable on which the warning ocurred |