Re: Multiple menubars and linked radio buttons?



"Kevin B. McCarty" <kmccarty Princeton EDU> writes:
>  Is it the case that GTK doesn't like for a widget
> to be displayed in more than one place at a time?  

Yep.

> Can anyone give me a
> better idea for how to "link" two identical groups of radio buttons
> together so they always have the same state?
> 

Model-view architecture. Store the correct state for the option
somehow (your model); set up a notification mechanism (signals, list
of views, whatever) such that changing the model automatically updates
all interested views; then when you change the model from one menu it
will automatically update the others.

Havoc





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