Re: How can i set an idle handler that fires when no modal dialog is shown?
- From: jcupitt gmail com
- To: Lothar Scholz <llothar web de>
- Cc: gtk-list gnome org
- Subject: Re: How can i set an idle handler that fires when no modal dialog is shown?
- Date: Tue, 24 May 2011 13:39:33 +0100
On 24 May 2011 04:45, Lothar Scholz <llothar web de> wrote:
> I have a background thread that can fire a gui task by using
> "g_idle_add". But i don't want the task run when there is a
> modal dialog or a drag&drop operation in progress.
>
> In other words the user shouldn't be interrupted when doing something.
> I thought that "gtk_main_level" would tell me if a modal window is up
> but it doesn't. For me it always returns 1.
I handle this by keeping GUI updates from background threads very
discreet. Instead of making a large change to the GUI when a
background event happens, I just light up an "updates available"
button. The user has to click this to see the new stuff.
Probably not a helpful reply, sorry :(
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]