On Mon, May 23, 2011 at 11:45 PM, Lothar Scholz <llothar@xxxxxx> wrote: > Hello Gtk-list, > > 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. > > Any ideas? get the list of all toplevel windows in the app? _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list