Re: gtk modal popup w/ matchbox

From: Luc Pionchon <luc.pionchon.a.t.welho.com>
Date: Sat Aug 31 2002 - 08:26:46 EDT

On Fri, 30 Aug 2002 22:19:36 +0100
mallum <breakfast@10.am> wrote:

> on Fri, Aug 30, 2002 at 09:07:34PM +0300, Luc Pionchon wrote:
> > hi,
> >
> > About modal popup *under* parent window,
> You mean a dialog type window ?

I mean GTK_WINDOW POPUP

> > I experience some issues with popupwindows which do not stay on top
> (when switching orientation, for example).
>
> hmm, I sure it did work after a screen rotation, I'll have to double
> check - maybe I broke it :( What other situations does it happen after
> ?

It happens also when switching to another window of the application.
And actually switching to any other window - even another application. The popup get lost under all.

You can check it with the last cvs of gpe-sketchbook
sketchpad-gui.c (200: set_transient 252: set_modal)
I commented the _set_modal to allow saving and normal exit, but the popup is "lost".

As you said, it seems to come from the popup being not recognized, isn't it?

(well, I fixed that by using non-modal popup, and precede each show() by a hide() so if it is there but under, it will show up)

> This is blocking if the popup is modal.
> How do you mean 'blocking' ?

The popup being modal, the parent window is frozen, waiting for a signal from the popup window, and if the popup window is UNDER the parent window, then you can not do anything else than to kill the application.

> > As it works fine on my desktop -
> Under Matchbox ?

No, wmaker - I'll try matchbox, good idea.

thanks,
luc
>
> I wonder if it could be the way matchbox handle such popup
> (GTK_WINDOW_POPUP).
>
> Last time I checked gtk set no special properties on a popup window so
> its impossible for matchbox to know this is any different that any
> other sort of window.
>
> Even _set_transient_for(popup, window) seems to not work.
>
> That should work fine.
>
> -- Matthew

`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.´¯`·.¸¸.´
Received on Sat Aug 31 12:31:12 2002

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:41:29 EDT