Re: Can I mix Xlib and Gtk+ in one app?



>  I'm writing an app using xlib, but I need some buttons and menus. 

you should use a proper toolkit. nobody uses xlib on its own these days
unless they are themselves writing a toolkit.

								     Can I mix 
>my own event loop (while(true) { XNextEvent(Display *, XEvent*); switch(event.
>type) ...}) with Gtk+'s main loop?  

No.

>				     Can I mix bare Xlib Window  with Gtk+ widg
>ets?

Sometimes, but its not easy and there are many pitfalls.

--p



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