Re: drawing graphics



CAVEY GERARD wrote:


thus i think it s a bit dirty... because i don t clear the previous drawing
area back buffer!!
how can i get a pointer to that back buffer i know i could use a global variable but...
; i didn t find gdk_window_get_back_pixmap  :P
any idea?
In gtk+-2.0 gdk_window_set_back _pixmap() saves the pointer to your pixmap in bg_pixmap field of GdkWindowObject structure, but this call will unref the previous pixmap, so it will be auto-destroyed. To obtain the pointer you needed you have to
cast ((GdkWindowObject*)widget->window)->bg_pixmap.
In case of gtk+-1.2 gdk doesn't save the pointer to your bg pixmap, it just call
XSetWindowBackgroundPixmap. So, the only one way I see is to get the XID
of window background pixmap from X and call gdk_xid_lookup(),
however I dont know how to do this...

Olexiy





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