GTK windows that are children of Xlib windows



If anyone can help, I'd appreciate it; I'm stumped here. I've got an X window that is full-size, covering up any and all Window manager stuff. This is necessary for the app I'm writing, since the absolute corners of the screen are being used. However, I'd like to have popup GTK windows used during the course of this process, which I need to have happen on top of the fullscreen Xlib window.

Unfortunately, doing the following causes a seg fault:

 XMapWindow(xdpy,wwindow);
 XFlush(xdpy);

 left_window = create_left_window ();
 gtk_widget_show (left_window);


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.

These are some of the failed assertions I got:

GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion `hash_table != NULL' failed.

Gtk-WARNING **: gtk_type_create(): unknown parent type `21'.

GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion `hash_table != NULL' failed.

GLib-CRITICAL **: file ghash.c: line 152 (g_hash_table_insert): assertion `hash_table != NULL' failed.

GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion `hash_table != NULL' failed.

GLib-CRITICAL **: file ghash.c: line 152 (g_hash_table_insert): assertion `hash_table != NULL' failed.

GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion `hash_table != NULL' failed.

GLib-CRITICAL **: file ghash.c: line 152 (g_hash_table_insert): assertion `hash_table != NULL' failed.

GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion `hash_table != NULL' failed.

Gtk-WARNING **: gtk_type_create(): unknown parent type `21'.

Gtk-CRITICAL **: file gtktypeutils.c: line 337 (gtk_type_class): assertion `node != NULL' failed.

Gtk-WARNING **: gtk_arg_type_new(): argument class in "GtkContainer::border_width" is not in the `(null)' ancestry

Gtk-CRITICAL **: file gtkobject.c: line 939 (gtk_object_add_arg_type): assertion `arg_type > GTK_TYPE_NONE' failed.


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.

Thanks for any help.


Rich


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp





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