Re: See-through container

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

 



David E. Konerding wrote:

Hi folks,

I previously posted a question about containers; specifically, i want to
have a layout container in which drawing
done to the parent window "shows through" layout where nothing is placed
on the layout.  Here's an example of what's not working for me.
The diagonal line is obscured by the inner_layout Layout container,
although I am setting the back_pixmap for the Layout's window and
bin_window to NULL, which is supposed to do what I want.  Anybody have
any suggestions?

You dont need to mess with gdk_window_set_back_pixmap(), it
should be irrelevent in this context (it sets the X server with
a default background for your GdkWindow)

You should simply try doing:
   GTK_WIDGET_SET_FLAGS (layout, GTK_NO_WINDOW)
on your layout *before* it gets realized.

Remember that GTK_NO_WINDOW widgets draw to there
parent windows, so when you do gdk_draw_line, you should
not ignore widget->allocation.[xy]  :)

Cheers,
                                      -Tristan

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux