Re: changing pixmap background color



I think the gdk_window_set_background command is for actual GdkWindows,
and not GdkPixmaps.  Try using gdk_draw_rectangle().

James.

--
Email: james@daa.com.au
WWW:   http://www.daa.com.au/~james/


On Wed, 24 Mar 1999, Inigo Serna Robledo wrote:

> 
> 	Hello everybody,
> 
> 	I am coding a new applet (in a few hours it will be added to
> gnome-core CVS), another_clock, that, as you may suppose is *another
> clock* (but this is an analog clock. Btw, how is a classic clock
> named in English (those with needles)?
> 
> 	The applet basically draws the xpm clock image on a drawing area
> widget.
> 
> 	My problem is the following: I can't do a
> 'gdk_window_draw_back(pixmap, color)' on the GdkPixmap when I try to
> change the background color (that is, the color I've left as background in
> the xpm file).
> 
> 	Do you have any idea?
> 
> 	I look at the generic applet, but it has a very complicated way
> to do that (with imlib functions). I am searching for a simple solution.
> 
> 	Greetings,
> 			Iņigo Serna
> 
> PD:	You can view the source of the applet in gnome-core CVS in the 
> 	another_clock directory.
> 
> 
> 
> -- 
> To unsubscribe: mail gnome-devel-list-request@gnome.org with "unsubscribe"
> as the Subject.
> 



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