window: add an is-maximized property to GtkWindow

With proper notifications, plus an accessor method for that state. This
allows client to just listen to notify::is-maximized instead of tracking
window-state-event.

https://bugzilla.gnome.org/show_bug.cgi?id=698786
This commit is contained in:
Cosimo Cecchi
2013-04-24 15:45:49 -04:00
committed by Matthias Clasen
parent 1691bb741d
commit 197785744b
5 changed files with 41 additions and 5 deletions

View File

@ -467,6 +467,9 @@ GDK_AVAILABLE_IN_3_10
void gtk_window_set_titlebar (GtkWindow *window,
GtkWidget *titlebar);
GDK_AVAILABLE_IN_3_12
gboolean gtk_window_is_maximized (GtkWindow *window);
G_END_DECLS
#endif /* __GTK_WINDOW_H__ */