Re: How to keep the check button' checked state



You can use the button-press-event and button-release-event signals of
GtkWidget (http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#GtkWidget-button-press-event
and http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#GtkWidget-button-release-event).
By returning TRUE you will bypass the default behaviour and do
whatever you like with the button. Eventually you have to use
gtk_toggle_button_set_active and gtk_toggle_button_set_inconsistent to
set the state of the check button from your code.



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