Re: Forcing size_allocate?



>Fair enough..  I tried registering the expose event for the
>gnome_canvas_item's to their draw routines and removed the
>size_allocate event.  I cannot get this to work.  The graphics do not
>show up at all now.  This is probably because I can't do an initial draw
>until an expose event, so there's nothing on the screen to 'expose'.
>Can you offer a suggestion on how I would get around this?  

well, my first question, on re-reading your original message and
noticing that the widget in question in a canvas is what do you mean
by "all drawing"? canvas items update themselves at the right time,
and they are placed there generally in response to other events (mouse
button events, etc.)

putting a canvas item onto the canvas isn't "drawing". by "drawing" i
meant using functions that ultimately attempt to render
lines,rectangles,pixmaps etc. 

you'll need to explain better what you're doing. if its just resizing
canvas items when the canvas size changes, you can do all that from
the size allocate event no problem, because that doesn't cause any
drawing to take place at that exact moment in time.

--p



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