Is there a way to change the status of a gtk checkbutton without emitting a signal that will activate the checkbutton's signal handler? I'm writing an application that has a number of checkbuttons that change in different patterns according to which checkbutton a user selects ( to show how the program settings change in response to some user choice ). I've tried "gtk_toggle_button_set_active" and g_signal_emit_by_name but these functions emit a signal that calls the checkbutton's signal handler. I've tried to access the widget's data directly like this:
GTK_TOGGLE_BUTTON ( cutCheckBox ) -> active = true;
but g++ gives me errors like this:
error: ‘GtkToggleButton’ has no member named ‘active’
The only thing I haven't tried is "g_signal_handler_block" , which requires calling a bunch of api's everytime I want to set a checkbutton from within my code ( this seems inefficient ). Are there other ways of accomplishing this? Thanks for any information...