Re: Opening a background window in a separate thread
- From: Mike Massonnet <mmassonnet gmail com>
- To: gtk-list gnome org
- Subject: Re: Opening a background window in a separate thread
- Date: Sun, 30 Nov 2008 10:13:02 +0100
Hi,
Le Sat, 29 Nov 2008 17:40:29 -0800,
"Ian Puleston" <ian underpressuredivers com> a écrit :
> > -----Original Message-----
> > From: Ian Puleston
> >
> > What I want to do is to open a "help" window that the user can keep
> > open while they are working in the main app window. So I tried
> > launching a separate thread
> > for it and in that thread creating either a top level window or
> > (preferably)
> > a dialog window, but I can't get either to work. The window gets
> > created and displayed fine, but trying to then call gtk_main()
> > or gtk_dialog_run() in the 2nd thread doesn't work.
>
> This was in Win32 and I just found an old email from Tor saying not
> to try to use threads in Win32, so if that is the answer then I guess
> just ignore my question.
You have to set proper window flags on the dialog. It must not be set
as modal, see [1] for this.
HTH
Regars
Mike
[1] http://library.gnome.org/devel/gtk/stable/GtkWindow.html#gtk-window-set-modal
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]