[9747] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: enabling/disabling text entry widgets
daemon@ATHENA.MIT.EDU (Havoc Pennington)
Mon Nov 2 00:27:34 1998
Date: Sun, 1 Nov 1998 23:25:55 -0600 (CST)
From: Havoc Pennington <rhpennin@midway.uchicago.edu>
To: gtk-list@redhat.com
In-Reply-To: <363D3FB3.1BE4877D@computer.org>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
On Mon, 2 Nov 1998, Eric Bourque wrote:
> I apologize in advance if this is documented somewhere, but I have the
> following question: I have a few edit text fields which I would like
> enable and disable (greyed out) based on other entries. I have only
> found a call which sets the text to be uneditable
> (gtk_entry_set_editable), but does not really disable the widget. I find
> this uneditable behaviour strange since it still lets the user make
> selections in the widget. Any pointers will be appreciated.
>
You want gtk_widget_set_sensitive(), I think.
Havoc
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null