summaryrefslogtreecommitdiff
path: root/gtk/gtkbuilderscope.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-06-30 16:13:17 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-06-30 19:02:02 -0400
commitfaa9ef2dc02ee8eecd36024ea81e831e0692ba54 (patch)
tree4692fe1dcdf78b8106d91c48f0dd7eedb052e112 /gtk/gtkbuilderscope.c
parent21b9667f08eea27503bb4ec562d1b05f84eaa40a (diff)
downloadgtk+-faa9ef2dc02ee8eecd36024ea81e831e0692ba54.tar.gz
Add gtk_builder_cscope_add_callback
This is a convenience method for the common case that symbols are used under their own name.
Diffstat (limited to 'gtk/gtkbuilderscope.c')
-rw-r--r--gtk/gtkbuilderscope.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gtkbuilderscope.c b/gtk/gtkbuilderscope.c
index f5503c8b11..6d472dc6a8 100644
--- a/gtk/gtkbuilderscope.c
+++ b/gtk/gtkbuilderscope.c
@@ -429,6 +429,19 @@ gtk_builder_cscope_new (void)
}
/**
+ * gtk_builder_cscope_add_callback:
+ * @self: a `GtkBuilderCScope`
+ * @callback_symbols: (scope async): The callback pointer
+ *
+ * Adds the @callback_symbol to the scope of @builder under its
+ * own name.
+ *
+ * This is a convenience wrapper of [method@Gtk.BuilderCScope.add_callback_symbol].
+ *
+ * Since: 4.8
+ */
+
+/**
* gtk_builder_cscope_add_callback_symbol:
* @self: a `GtkBuilderCScope`
* @callback_name: The name of the callback, as expected in the XML