Re: Template Widgets inside another GtkBuilder file

2015-10-07 Thread Victor Aurélio Santos
So the really question becomes, how to get `g_type_ensure` generated in output code when subclassing Widgets in Vala ? 2015-10-05 17:54 GMT-03:00 Victor Aurélio Santos : > Emmanuele, > >> In order to do that, you should use `g_type_ensure()` inside the > instance

Re: Template Widgets inside another GtkBuilder file

2015-10-05 Thread Victor Aurélio Santos
Emmanuele, > In order to do that, you should use `g_type_ensure()` inside the instance initialization function of the parent's widget class Since using Vala, from what I can see in case of using [GtkTemplate] the g_type_ensure is generated, but when just subclassing a GtkWidget it doesn't exists

Re: Template Widgets inside another GtkBuilder file

2015-10-04 Thread Tristan Van Berkom
On Sat, Oct 3, 2015 at 10:14 AM, Victor Aurélio Santos wrote: How can I do that ? Just build all together results in this warning: (ajami:3475): Gtk-CRITICAL **: Error building template class 'AjamiMainWindow' for an instance of type 'AjamiMainWindow': Invalid

Re: Template Widgets inside another GtkBuilder file

2015-10-04 Thread Victor Aurélio Santos
I compiled now with gmodule-export-2.0.pc the symbols get exported: nm -g build/src/ajami | grep '_get_type' [...] 00429b30 T hv_meter_get_type but when I try to launch I get the same error: (ajami:30289): Gtk-CRITICAL **: Error building template class 'AjamiMainWindow' for an instance

Re: Template Widgets inside another GtkBuilder file

2015-10-04 Thread Emmanuele Bassi
Hi; On 3 October 2015 at 02:14, Victor Aurélio Santos wrote: > How can I do that ? > Just build all together results in this warning: > >> (ajami:3475): Gtk-CRITICAL **: Error building template class >> 'AjamiMainWindow' for an instance of type 'AjamiMainWindow':

Template Widgets inside another GtkBuilder file

2015-10-02 Thread Victor Aurélio Santos
How can I do that ? Just build all together results in this warning: > (ajami:3475): Gtk-CRITICAL **: Error building template class > 'AjamiMainWindow' for an instance of type 'AjamiMainWindow': Invalid object > type 'HVMeter' on line 2 I've asked on SO[1] and got only one answer. I stick at