Re: Property Notification Between Classes



Eric Lemings <eric b lemings lmco com> writes:

Using GLib 2.0, how do I design and implement two classes, GGizmo and
GGadget, so that a GGizmo object is notified (using existing GObject
notification mechanisms if possible) when a specified property of a
GGadget object changes?


You just connect to "notify::foo" on GGadget and you get
notifications. gtk+/tests/testtreeview.c has an example at the bottom
of the file.

Havoc




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