[maemo-developers] Non modal dialog
From: Ross Burton ross at burtonini.comDate: Thu Feb 7 10:18:00 EET 2008
- Previous message: Non modal dialog
- Next message: Non modal dialog
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, 2008-02-06 at 20:57 +0100, Frédéric Charrier wrote: > > > what do you mean by "normal" window ? > > > a GTK_WINDOW_TOPLEVEL ? > > > > Yes, a popup window is only for special rare uses, like tooltips. > > if I use a GTK_WINDOW_TOPLEVEL it appears maximized, and I can't move > it neither change its size. Oh I see, you are trying to use GtkWindows as the notes themselves. Matchbox (the window manager) enforces normal windows to fill the screen (excluding panels), dialogs are centered and modal, and "popup" windows are ignored (technically, override redirect windows). This means that they don't get decorated and can't be moved by the window manager. The solution here is to create a top level window for you application, and then draw the postit notes yourself. One way would be to create a widget which draws a postit note and place them inside a GtkFixed or GtkDrawingArea. Ross -- Ross Burton mail: ross at burtonini.com jabber: ross at burtonini.com www: http://www.burtonini.com./ PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF
- Previous message: Non modal dialog
- Next message: Non modal dialog
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]