Re: Multiple menubars and linked radio buttons?
- From: Havoc Pennington <hp redhat com>
- To: "Kevin B. McCarty" <kmccarty Princeton EDU>
- Cc: gtk-list gnome org
- Subject: Re: Multiple menubars and linked radio buttons?
- Date: 24 Jan 2001 21:23:58 -0500
"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]