Re: [gtk-list] Re: Disabled menu entries & buttons



On Sat, 17 Jan 1998, K. wrote:

> 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);

_Thank you_.

That's one cost of OO designs -- little things can get lost in the tree. 

-- 
Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)




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