Re: check if gtkWindow is maximized



Hello.

> how could I query if a GtkWindow is maximized without trigger the
> window-state-event?

Code snippet like this one should give you the information you need.
---- CODE ----
gint f = gdk_window_get_state( gdk_window );
gboolean max = f & GDK_WINDOW_STATE_MAXIMIZED;
---- CODE ----

To see this kind of code used in context, have a look here:
http://imagination.svn.sf.net/viewvc/imagination/trunk/src/callbacks.c?view=markup
(line 2529)

Tadej

-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com


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