Re: How to keep the check button' checked state
- From: "Atanas Atanasov" <thenasko gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: How to keep the check button' checked state
- Date: Sun, 9 Jul 2006 17:15:19 +0200
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]