key_event causing toggle_button to change states



I am trying to cause a toggle button to toggle using input from the
keyboard.  A key_press_event is trapped and calls the correct function.  I
tried using gtk_toggle_button_toggled but the toggle button does not change
states.  I then tried using the gtk_toggle_button_get_active in an if/else
statement and used gtk_toggle_button_set_active to set the button state.
The result using this code is a continuous state change and crashes the
process.  It acts like the key_press_event hangs and never clears.  This
looked simple but...

Ken





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