Hi,

Mariano Suarez-Alvarez <[EMAIL PROTECTED]> 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
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to