signals to 2 objects
- From: walter tallent <w41t3r yahoo com>
- To: gtk-app-devel-list gnome org
- Subject: signals to 2 objects
- Date: Tue, 6 Jul 2004 17:34:35 -0700 (PDT)
I'm new to gtk and this list. I'm trying to write a
chess program in gtk/gnome and have been using derived
objects and essentially learning as I go.
I have an object heirarchy like this:
|- view ... etc
The game object handles the input and coordination of
the view and board and player. The app holds the
toolbar and menus.. and the board just processes chess
The board does some chess-legality checking when a
player makes a move and then notifies the game object
that a legal move was made, and the game object then
notifies the view to be redrawn with the updated
position. I do this with a "move" signal emitted from
the board object and "caught" by the game object. I
also want to update parts of my interface, which is
part of the app object. How can the board send the
signal to both the game and the app and make sure that
game gets it first? Or is there another mechanism
altogether I should be using to do this?
thanks in advance
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
] [Thread Prev