Re: GTK windows that are children of Xlib windows



"Richard Davis" <rld2h hotmail com> writes: 
The X fullscreen window shows fine by itself, and the GTK widgets show
properly themselves.  The combination of the two causes the problem.
I think that I need to somehow have the GTK windows be children
windows to this X fullscreen window.  Does anyone know how to do this
in GTK?  All I see are TOP_LEVEL, POPUP, and DIALOG type windows in
GTK.  What I really need (I think) is a type CHILD, so I can tell this
that it's the child of this Xlib window.

I think you're off on the wrong track, the failed assertions just look
like your app is doing something wrong. The scenario you describe
should work. The warnings look a bit like gtk_type_init() hasn't been
called (gtk_init() calls this function).  You can't call
GTK functions before calling gtk_type_init(). But maybe it's something
else.

Run in gdb, and break on the first warning.
 
By the way, trying gdk_window_foreign_new(my_xlib_window) causes a
segmentation fault.  I thought that if I could get GDK to recognize
the window, there might be some hope of having GTK process it
correctly.

If it segfaults there's probably a bug in your app somewhere. Try
using gdb to debug the issue. Suggest running the app with the --sync
command line option when debugging Xlib issues.

Havoc




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