Re: [gtk-list] Using same widget in several places?



"Frank R. Larsen" <gobo@gimle.nu> writes: 
> I was wondering, is it ossible to use the same widget in more than one 
> place in an application? I use a 'tabbed' window-layout using notebook 
> and has some widgets that appear on several of the pages (but not all). 
> Is it possible to create just one instance of these widgets and then add 
> them to several of the pages?
> 

No, GTK doesn't support that. The usual way to deal with it is to have
a data structure ("model") representing the state of the widget, and
whenever you change the model you update all the widgets ("views") to
reflect the change.

Havoc



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