I've created a custom Gtk Widget with a template, and I want to use it on other Gtk Builder file.
What I've done:
- Wrote a .ui file with
<template class="G3JAMinScenes" parent="GtkBox">
- Wrote widget source code (.c/.h)
when I create it with g3jamin_scenes_new
the widget works as expected, the problem is that I want to add it as child of a window using Gtk Builder, so I wrote:
...
<child>
<object class="G3JAMinScenes" parent="GtkBox" id="scnes">
</object>
</child>
...
but it throws an error when I try to run:
Gtk-CRITICAL **: Error building template class 'G3JAMinAppWindow' for an instance of type 'G3JAMinAppWindow': Invalid object type `G3JAMinScenes'