Re: Window with background Image



Greg Breland wrote:

I got despirate and hooded up the "expose-event" to reset the BG image
and this works.  Seems a bit excessive, surely there's a better event to
use?  FWIW, I'm using the regular expose the gets called before the
default handler.
IIRC, if you hook up to expose-event, gtk doesn't run its default expose handler anymore. i *think*, that if you just do gdk_window_clear_area() in your handler, using event->area as the arguments, that should do it.

also, after doing gdk_window_set_back_pixmap() in your style-set handler, you may want to call gtk_widget_queue_draw().

   -brian

On Sun, 2005-02-06 at 01:12, Greg Breland wrote:
I'm using FC2/Gnome with the default WM MetaCity.  I hooked up the
"style-set" event on the window, both normal and _after,  but this
doesn't seem to be helping.  I also tried the "realize" and "show"
events with no luck.  You can see the source as it stands after your
advice at:

http://home.atlee.net/background.c


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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