Re: z-order of gtk windows on win32



On 10/3/05, Allin Cottrell <cottrell wfu edu> wrote:
On Sun, 2 Oct 2005, Hubert Sokolowski wrote:
On Sat, 1 Oct 2005 09:56:40 -0400 (EDT)
Allin Cottrell <cottrell wfu edu> wrote:
When the graph-editing dialog is closed, I expect the graph window
to remain above the original, main window.  This is what happens on
Linux, but not on win32 (same code)...

I also found this bug very annoying, but I don't know about any
solution to this problem.

OK, thanks for confirming that the problem exists!

I have something like this in my code for my dialog class: on a window
popdown I do a gtk_window_present() on the parent window. Maybe some
hack like this could help you?

static void
idialog_popdown_notify( void *sys, iWindowResult result )
{
        iWindowSusp *susp = IWINDOW_SUSP( sys );
        iDialog *idlg = IDIALOG( susp->client );

  ... stuff to do with notification of dialog popdown

#ifdef OS_WIN32
        /* Pop the parent back up to the top of the window stack. Helps win32
         * keep window ordering if you alt-tab away from the app while a
         * dialog is being shown.
         */
        if( idlg->parent_window && GTK_WIDGET_MAPPED( idlg->parent_window ) )
                gtk_window_present( GTK_WINDOW( idlg->parent_window ) );
#endif /*OS_WIN32*/

   ... more housekeeping
}



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