Re: Cannot hide dialog until signal handler exits



Hi

The signal handler for a button in my main window launches a file
chooser dialog, then processes the selected files.
I try to hide the dialog during processing with 'gtk_widget_hide
(dialog);' but this does not take effect until the signal handler exits.
Is there a way to hide the dialog immediately to show the progress bar
in the underlying window?

IMHO the easiest way is a g_timeout_add(0,..), which does the processing
in the main loop. And return FALSE in your GSourceFunc, so the timeout is
just run once.

HTH

Jan-Marek



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