Re: check if gtkWindow is maximized
- From: Tadej Borovšak <tadeboro gmail com>
- To: aheise lists gmail com
- Cc: gtk-list gnome org
- Subject: Re: check if gtkWindow is maximized
- Date: Tue, 29 Dec 2009 10:19:53 +0100
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]