Re: How to add callback to tell owner something
- From: Martyn Russell <martyn imendio com>
- To: rion10 <astar_ly yahoo com cn>
- Cc: gtk-list gnome org
- Subject: Re: How to add callback to tell owner something
- Date: Wed, 30 Nov 2005 15:48:00 +0000
On Wed, 2005-11-30 at 06:41 -0800, rion10 (sent by Nabble.com) wrote:
> could you give me a simple example, I'm a gtk+ beginner. Thanks.
If you want an example of how to do GObject coding, perhaps you would
benefit form looking at Gossip or some other Gnome application which use
GObject.
Gossip uses GObject quite extensively and there are copious examples to
choose from (mostly in libgossip sub directory). Some modules derive
from GtkComboBox, GtkTreeView and GtkButton and add Gossip specific
implementations and signals.
You can see the source here: http://cvs.gnome.org/viewcvs/gossip/
One of the simpler examples might be:
http://cvs.gnome.org/viewcvs/gossip/libgossip/gossip-event-manager.c
http://cvs.gnome.org/viewcvs/gossip/libgossip/gossip-event-manager.h
To see where this is used, look at:
http://cvs.gnome.org/viewcvs/gossip/src/gossip-app.c
--
Regards,
Martyn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]