Re: check if gtkWindow is maximized

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

 



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@xxxxxxxxx
tadej.borovsak@xxxxxxxxx
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux