Re: [gtk-list] Disabled menu entries & buttons
- From: "K." <conradp cse unsw EDU AU>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Disabled menu entries & buttons
- Date: Sat, 17 Jan 1998 18:08:02 +1100 (EST)
On Sat, 17 Jan 1998, Kenneth Albanowski wrote:
> Is there a particular reason why buttons and menu items don't support a
> disabled state, or is it just an omission? (That is, a "grayed out" state
> that leaves the button/item visible, but clearly shows that it will not
> work.) Or did I miss something?
its already supported, and affects most widgets (buttons, menu items etc).
#include <gtk/gtkwidget.h>
gtk_widget_set_sensitive(GTK_WIDGET(button), FALSE);
and to re-enable
gtk_widget_set_sensitive(GTK_WIDGET(button), TRUE);
K.
--
Conrad Parker conradp@cse.unsw.edu.au
Linux Life: http://www.cse.unsw.edu.au/~conradp/linux/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]