c - GTK+/GLIB event loop and emit signal to event loop -


i have 1 problem. i'm creating interface generation library, called libgreattao. able using many backends rendering gui, while running in gui mode. problem in gtk+2.0 backend. must run main loop , on event exits destroy window in next step. on window's destroy event exit main loop again - , this. why call main loop again? because must handle events created, while destroying window(window must destroy it's control , hide). problem is: callback destroy signal called once gtk_widget_destroy called. must ensure callback pass application called in main loop allow exit it, define custom signal class gtkwidget. of course, can use workarounds, destroying window in first signal type(the signal ends main loop), library should works in cases.

i have found solution, not good. must add timeout event, emit signal. didn't find better solution yet.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -