From 5c70f2ae9bedd5ee44d87f0626cd896c698dd74c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 10 Dec 2022 16:02:07 -0500 Subject: [PATCH] builderscope: Add a note for implementors Recommend that scope implementations should fall back to or derive from GtkBuilderCScope in order to not lose GTK's type-guessing machinery. Related: #5398 --- gtk/gtkbuilderscope.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/gtkbuilderscope.c b/gtk/gtkbuilderscope.c index 6d472dc6a8..8d18c44c96 100644 --- a/gtk/gtkbuilderscope.c +++ b/gtk/gtkbuilderscope.c @@ -41,6 +41,10 @@ * * By default, GTK will use its own implementation of `GtkBuilderScope` * for the C language which can be created via [ctor@Gtk.BuilderCScope.new]. + * + * If you implement `GtkBuilderScope` for a language binding, you + * may want to (partially) derive from or fall back to a [class@Gtk.BuilderCScope], + * as that class implements support for automatic lookups from C symbols. */ /** -- 2.30.2