[Glade-users] Glade questions.



Damon Chaplin wrote:

Matthew Tuck wrote:
The point here is that I believe it is easier to define within Glade the
condition when the widget is disabled on the widget (where it belongs)
than to try and maintain kludgy lists of widgets which you need to make
sure you update.

I don't think it would be easy to define the conditions for
de-sensitizing
widgets. I think this probably has to be done by the application.


I think I see how it might be possible.  You would define a widget-group
along the same lines as a radio button group.  Then you could call
gtk_group_apply(group, function, userdata); to apply the function to
every widget in the group.  Then, if we could make function's legitimate
targets of the signal pane's "object" or "data" field, you could call
gtk_group_apply as the callback to a function or something.  Granted
this would require a rethink of how we define signal callbacks, but it
is possible in the longer term.  Matthew, sorry but for now it isn't
possible, it's a fair amount of work to add, and there are more
important things to do first.  So if you really want this, you'll
probably have to do it yourself :(.

Andrae





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