Re: Property Notification Between Classes
- From: Havoc Pennington <hp redhat com>
- To: Eric Lemings <eric b lemings lmco com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Property Notification Between Classes
- Date: 19 Feb 2001 13:48:27 -0500
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]