Re: How to show the same widget in several containers
- From: "Juan Antonio Alvarez" <jualvarez gmail com>
- To: gtk-list gnome org
- Subject: Re: How to show the same widget in several containers
- Date: Wed, 7 Mar 2007 16:47:25 -0300
On 3/7/07, David Nečas (Yeti) <yeti physics muni cz> wrote:
On Wed, Mar 07, 2007 at 12:21:33PM -0300, Juan Antonio Alvarez wrote:
> I'm building an application where I show some plots using gtk-extra
>
> I'd like to show the same plots on four different viewports, so the
> user can scroll to the plots he's interested in, and see them
> simultaneously.
>
> It really doesn't have to be the same widget, maybe just a pixbuf of
> the first, and the copies get updated when the main one does.
>
> Was I clear? Can this be done?
I don't use gtk-extra plots, but I suppose it has separate
model and view. If it's so just create several views from
the same model. If it mixes data and widgets -- does it
worth using then?
Yeti
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
OK, thanks again for all your answers.
gtk-extra has a good separation between model and view. The thing is
that I generate several plots in one canvas. I can make a new canvas
and put all the plots in it again. But as I will be putting exactly
the same plots there, I thought it would be a better idea to just
reproduce the same canvas in different viewports.
I wanted this done like this because I think it gives the user the
flexibility to easily view different plots all and one for comparison.
Also, I can export the whole canvas to a ps file if I need it for a
presentation, or something. That's why I wanted all the plots shown in
one canvas.
Anyway, I think I will go with the multiple widgets, looks like it's
the right thing to do. Thanks!
Juan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]