Using Custom Widget in GtkBuilder UI



Hi folks,


I've wrote a little custom widget (subclassing GtkBox) and now I'm
wanting to use it with GtkBuilder, but when I try to load the .ui with
GtkBuilder i get a error:

Gtk-CRITICAL **: Error building template class 'MyCustomWindow' for an
instance of type 'MyCustomWindow': Invalid object type `MyCustomWidget'

So, after create my custom widget which are the required steps so
GtkBuilder can create widget sucessfully ?

Thanks.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]