Hot to show a non blocking message?



Hi,
I'm developing an application using gtk+-2.6, in the main_win_show
event I perform many subsystems initializations. I an initialization
fails I'd like to show a message using a gtk_dialog_run. The problem
is that the dialog never close!
Maybe the problem happens because the structure of the gtk typical startup:

.....
.....

main_win=create_main_win();
gtk_widget_show(main_win);
.....
gdk_threads_enter();
gtk_main();
gdk_threads_leave();

So the gtk main loop starts after showing the main window....
Any clue?
Thanks


-- 
-- Cristiano



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