Re: Associating labels to widgets
- From: Sven Neumann <sven gimp org>
- To: Mariano Suarez-Alvarez <msuarezalvarez arnet com ar>
- Cc: gtk-list -- General discussion on GTK+ <gtk-list gnome org>
- Subject: Re: Associating labels to widgets
- Date: 16 Mar 2003 11:17:52 +0100
Hi,
Mariano Suarez-Alvarez <msuarezalvarez arnet com ar> writes:
> Is there a way to associate a label (which does *not* have mnemonic) to a
> widgets (say a GtkEntry) to that when the entry is set (in)sensitive, the
> label is made (in)sensitive.
put them in a box and make the box insensitive ?!
> Of course, this can be done by hand, but then you have to keep a
> pointer to the label, and do it... I guess this must be a rather
> frequence situation!
I don't think it is that common. Usually the label and the widget are
grouped in some sort of container on which the sensitivity is set. If
that is not the case, you can easily write yourself a helper function
which does what you want. Just attach the widget pointer using
g_object_set_data(). GIMP does this quite extensively in
libgimpwidgets in order to set the sensitivity of widgets attached to
toggle buttons or items of option menus.
Salut, Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]