I have read the documentation for GtkWidget and GtkBuilder, GObject tutorial, GObject Type System Concepts, “Widget Templates” tutorial on GNOME Development website, and source code of gnome-console. I still cannot figure out why a custom widget class I created cannot be used inside a template widget’s ui file.
The specific error I get is
(skipper:48484): Gtk-CRITICAL **: 11:30:00.993: Error building template class 'SkipperWindow' for an instance of type 'SkipperWindow': .:0:0 Invalid object type 'SkipperHeaderBar'
SkipperHeaderBar can be instantiated and used from inside the
init function of
SkipperWindow but just not from its .ui file.
By the way, both
SkipperHeaderBar are template widgets and all source (.c) files (plus resources) are compiled into a single executable file.
What am I missing?