[Glade-users] toggle button???



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




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