[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-app-devel
Subject: trouble with gtk_editable_set_editable
From: Tomaz Canabrava <tumaix () gmail ! com>
Date: 2005-08-25 16:33:59
Message-ID: 7ebbb4b50508250933231f4622 () mail ! gmail ! com
[Download RAW message or body]
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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic