[Glade-users] toggle button???
John Coppens
john at jcoppens.com
Tue Jun 20 12:36:34 EDT 2006
On Tue, 20 Jun 2006 06:08:21 -0400
"Kevin Hobby" <khobby at gmail.com> wrote:
> Please I cant seem to figure out how to setup a toggle button so that
> it does one thing when "pressed in" and another thing when "unpressed"
>
> ...I'm using Glade 2 on Ubuntu (Linux)
Add a callback for the 'toggled' event. In that function you can
determine the position of the button using the gtk_button_get_active
function:
gtk_button_get_active(GTK_BUTTON(widget));
John
More information about the Glade-users
mailing list