Re: Parent window for other GtkWindow-s



On Wed, Jul 12, 2006 at 08:26:02PM +0200, Vincent Geddes wrote:

Assuming you really want to embed instance's of GtkWindow, you will have
to do some some hackery with gtk_window_realize (). Essentially you must
override that method, and make sure the widget's GdkWindow is not a
top-level. This way, the window will be treated as a normal widget, and
will not be detected by the window manager.

You can also draw a nice metacity window theme around your embedded
widget by using libmetacity-private.

Which, beside being nonportable, would be confusing as well
because the *behaviour* of windows will not follow user's
window manager preferences even if we assume the window
manager incidentally was metacity.

If you decide to implement an incompatible window managment
system in your application, please make the windows look
incompatibly too and ideally put `This window spits on your
window manager preferences' to their title bars in large red
letters.  Thanks.

Yeti


--
Anonyms eat their boogers.



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