Re: Cannot hide dialog until signal handler exits
- From: Jan-Marek Glogowski <glogow fbihome de>
- To: Pseudo Nym <pseudo nym ukgateway net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Cannot hide dialog until signal handler exits
- Date: Thu, 18 Aug 2005 17:45:26 +0200 (CEST)
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]