Re: creating non-standart windows and dialogs



On Wed, Jul 14, 2004 at 09:17:25 -0400, Ross McFarland wrote:
Artūras ?lajus said:
i want window that starts minimized
and window that starts up not minimized, but doesn't take focus away
from other app

perldoc Gtk2::Window
  - maximize
  - unmaximize
  - iconify
  - deiconify

that being said all of this is up to the window manager and may not work as
desired in many of them. you will probably want to use these methods in a
signal attached to the window, my first thought would be realize or show, but
there may be a more appropriate place.

No. You just to call them before you realize (or show, which will
realize implicitely) the window. The window will remeber.

Now, it only solves the first problem. For the other -- don't take
focus -- it's not likely gtk has the command. Look at the library that
gnome-panel uses for the extended wm hints. It's likely you will have to
get your hands dirty with C.

-------------------------------------------------------------------------------
                                                 Jan 'Bulb' Hudec <bulb ucw cz>

Attachment: signature.asc
Description: Digital signature



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