Background pixmap problem...
- From: Leo Reiter <ler sansgarbage com>
- To: gtk-list redhat com
- Subject: Background pixmap problem...
- Date: Mon, 13 Sep 1999 16:54:40 -0400
I would like to know how I can make a shaped window with a pixmap. I
have rendered the
pixmap already, and I load it from disk with
gdk_pixmap_create_from_xpm().
Then, I do a gdk_window_set_back_pixmap on the window, and do a
gdk_window_shape_combine_mask() with its mask. I also tried
gtk_widget_shape_combine_mask(), but have had the same results - a
square box is
rendered using the default background color, with no pixmap and no
shape. I tried adding
a gtk_widget_set_app_paintable() call, which allows me to render the
pixmap, but it does
not shape the window.
Are there any caveats to doing this? Should I use a specific color for
the transparent
parts of the pixmap? (I've tried black, white, and gray, with no luck.)
Any help would be appreciated.
Thanks,
Leo Reiter
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]