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

(You can't use the underscore prefixed methods. Modulo libtool bugs
they shouldn't even be in the library binary).


Søren



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