Re: [gtk-list] Using same widget in several places?
- From: Havoc Pennington <hp redhat com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Using same widget in several places?
- Date: 11 Dec 1999 10:58:48 -0500
"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]