Re: Desensitizing GtkToolItems
- From: Soeren Sandmann <sandmann daimi au dk>
- To: Federico Mena Quintero <federico ximian com>
- Cc: gtk-devel-list gnome org
- Subject: Re: Desensitizing GtkToolItems
- Date: 03 Nov 2003 13:08:40 +0100
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]