Re: [gnomemm] Still having problems with the Canvas



Hi,

Sorry for a sluggish reply, but I've been on vacation for this last
week,

Klaus <blacktea web de> writes:

> So my question is where should I do the adding of new Pixbufs and how do
> I invoke an immediate update of the changes to the canvas(within an
> other thread)?

You've got something a bit backwards. The Gnome::Canvas will do all
the redrawing it needs to do all by itself. You create the canvas, add
it to a window, add the necessary items et voilá! Then you can move
the items around and the canvas will redraw itself as necessary. Of
course, you need to remember to show the various things.

I'm working on a game myself:

  http://www.cs.auc.dk/~olau/monster-masher/

Feel free to steal as much of the code as possible. I'm using
libglademm, which I strongly advice you to do also unless you don't
need any GUI at all.

You could even try playing my game - if it is fun, I'd like to know... :-)

-- 
Ole Laursen
http://www.cs.auc.dk/~olau/



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