[maemo-developers] Non modal dialog

From: Eero Tamminen eero.tamminen at nokia.com
Date: Thu Feb 7 11:53:53 EET 2008
Hi,

ext Frédéric Charrier wrote:
>> Only dialogs without a parent are made system modal by the window
>> manager as otherwise user could lose them (as dialogs are not
>> listed
>> in the task navigator, there's no way to return system dialog once
>> an application would be topped above one).  This behaviour can be
>> disabled by modifying the Matchbox window manager command line
>> args.
>  
> If I specify a parent for my dialog I get a non modal one, but I
> still can't move it. Is it the normal behavior ?

Yes, unless you specify your window as "override redirect" or
change the matchbox window manager -use_dialog_mode arguments
in device bootup:
http://matchbox-project.org/documentation/manual/wm.html

Note that override redirect means that windows are not managed
by the window manager at all, if you top some other window,
the override redirect one is lost by the user (override redirect
is intended for popups that go away when you release stylus or
press anywhere on screen).


>> For application dialogs (dialogs that are trancient to some
>> application
>> window), it's up to application whether the dialog is modal or not.
>> Our Style Guide states that they should be modal, but nothing's
>> forcing it, app just needs to us Gtk properly (not to call the
>> dialog convenience function that effectively makes it modal by
>> creating a new main loop for the dialog).
>  
> What do you mean exactly by "not to call the dialog convenience
> function" ?
 >
> You mean that I must include a specific loop to make my
> dialog non modal ?
> If it's the case, will my main window be accessible during this loop
> ?

http://library.gnome.org/devel/gtk/stable/GtkDialog.html#gtk-dialog-run


	- Eero

More information about the maemo-developers mailing list