summaryrefslogtreecommitdiff
path: root/gtk/gtkbuilderscope.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkbuilderscope.h')
-rw-r--r--gtk/gtkbuilderscope.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/gtkbuilderscope.h b/gtk/gtkbuilderscope.h
index 7fc2ccbc0b..5ab602fc06 100644
--- a/gtk/gtkbuilderscope.h
+++ b/gtk/gtkbuilderscope.h
@@ -114,10 +114,14 @@ GDK_AVAILABLE_IN_ALL
void gtk_builder_cscope_add_callback_symbols (GtkBuilderCScope *self,
const char *first_callback_name,
GCallback first_callback_symbol,
- ...) G_GNUC_NULL_TERMINATED;
+ ...) G_GNUC_NULL_TERMINATED;
+
+#define gtk_builder_cscope_add_callback(scope, callback) \
+ gtk_builder_cscope_add_callback_symbol (GTK_BUILDER_CSCOPE (scope), #callback, G_CALLBACK (callback))
+
GDK_AVAILABLE_IN_ALL
GCallback gtk_builder_cscope_lookup_callback_symbol(GtkBuilderCScope *self,
- const char *callback_name);
+ const char *callback_name);
G_END_DECLS