Re: [gtk-list] Re: how to use gtk_gc_set_tile() ?



Nancy Mazur <Nancy.Mazur@cs.kuleuven.ac.be> writes: 
> The previous method worked fine for me. But just curiosity, 'cause
> I didn't find the exact documentation of how to set backgrounds,
> could you give me an example perhaps? 
> How to set an image as background image on a drawingboard?
> 

It's just gdk_window_set_back_pixmap(window, pixmap), or
gdk_window_set_background(window, &color) for a solid color.

This is the background the window will have *before* you copy a pixmap
buffer into it, if you're using the scribble example. That is, if
you're using a pixmap buffer to draw into, the window background isn't
that relevant (except that a good background choice can reduce
visible flashing during scrolling).

Havoc



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