Re: Minimizing



"Shane Miller" <SMiller1 stvgb org> writes:
What signal fires to tell you a window minimized or maximized?  

In GTK 1.2, there is none for maximize, for minimize visibility_event
is your best bet probably though it will also happen for other reasons
the window is totally offscreen (e.g. switching workspaces).
What you want is GDK_VISIBILITY_FULLY_OBSCURED in event->state.

In GTK 2.0, there's a state_changed signal on GtkWidget that does
minimize and maximize. (Doesn't necessarily work with all window
managers though.)

Havoc



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