![]() |
callback parameters when using gtk_builder
Iam using Glade for GUI building and Gtkbuilder for connecting signals.
As a newbie i got confused with the parameter type of 'data' in the code Code:
gtk_builder_connect_signals( builder, data); Code:
/* Main data structure definition */ Main window has a button and i need to update label4 upon the click of the button . as show below Code:
G_MODULE_EXPORT gboolean All the code compiles without error but when i run it g_print is working but gtk_label runs into segmentation fault!! Can some one throw some light on passing UI data to callbacks? |
Re: callback parameters when using gtk_builder
Quote:
Code:
gtk_builder_connect_signals( builder, (gpointer*)data); |
Re: callback parameters when using gtk_builder
thanks for the reply...
i solved the bug .. it was a mistake in the button clicked callback function input arguments. there is no eventexpose parameter passed in button click callback. when i deleted the 2nd input argument things worked. |
All times are GMT. The time now is 14:33. |
vBulletin® Version 3.8.8