[maemo-developers] Non modal dialog
From: Johan Bilien jobi at via.ecp.frDate: Thu Feb 7 13:55:33 EET 2008
- Previous message: Non modal dialog
- Next message: Are there different versions of python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Feb 07, 2008, Ross Burton wrote: > > 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. You might want to take a look at the hildon-home-area and hildon-desktop-home-item widgets, which implement some GtkFixed-like widget and adds dragging of the items and other things. Both in libhildondesktop. They are the widgets used in the home view in Chinook but should be reusable. -- Johan Bilien <jobi at via.ecp.fr>
- Previous message: Non modal dialog
- Next message: Are there different versions of python?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]