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
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
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
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
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':
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