trouble with gtk_editable_set_editable



The Problem:
when i try to deactivate a GtkSpinButton widget, it *DOES*, but only by the 
keyboard. if i try to use it in the not active mode using the arrows atached 
to it, the value is changed. anyone knows how to stop the buttons working 
when i try to deactivate the Spinbutton?

The Code:
static bool active = false;
GtkSpinButton *spinBase;

// Cath the spinbutton
spinBase = GTK_SPIN_BUTTON(g_object_get_data (G_OBJECT (widget), 
"dados_base"));

// Swap the Active state.
active = !active;

// Active/Deactive the SpinButton Widget
gtk_editable_set_editable(GTK_EDITABLE(spinBase), active);


Tomaz Canabrava, Computer Science student, and member of the GNU-Ruy 
community.
-- 
Um Computador sem Windows é como um Navio sem dançarinas de Can-Can



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