Re: [Vala] Glade problem



Arley Consuegra Rosello wrote:
When I run de application and click a button in the window the signal clicked call to
mostrar_asistente_dhcp()
then the application crash with signal  SIGSEGV
I'm using debian unstable, valac 0.7.0-1 and glade-3 3.6.2 and using gtkbuilder
What is the problem?

Hi,

you must pass 'this' to connect_signals instead of 'null':

        iuGlade.connect_signals(this);

and your callback method must look like this:

        [CCode (instance_pos = -1)]
        public void mostrar_asistente_dhcp(RadioButton source) {
                // ...
        }

Best Regards,

Frederik



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