RE: Desensitizing GtkToolItems



> Federico Mena Quintero <federico ximian com> writes:
> 
> > There seems to be no API to change the sensitivity of 
> GtkToolItems... 
> > am I doing something horribly stupid, or should I really use
> > 
> > 	GtkWidget *w = _gtk_tool_button_get_button (my_item);
> > 	gtk_widget_set_sensitive (w, FALSE);
> 
> The intended way to do it is with
> 
>         gtk_widget_set_sensitive (GTK_WIDGET (my_item), FALSE).
> 

Shouldn't we be desensitizing GtkActions instead?

Murray Cumming
www.murrayc.com
murrayc usa net



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