My C application uses X11 calls to create and manage a window. I only want to use GTK3 for menus.
I create a window using Window wnd = XCreateWindow(...);
Now I want to use GTK to add menus to wnd
.
GTK APIs such as gtk_container_add(GTK_CONTAINER(gtk_wnd), vbox)
want a GtkWindow, which I do not have.
How do I accomplish this?
Ideally I'd like to get a X11 handle to work with GTK, potentially via a conversion. Alternatively, I'd also settle for getting the current window via some GTK API.
gdk_x11_drawable_get_xid(gtk_widget_get_window(widget))
.