Re: Determining if a GtkWindow is maximised?
- From: Daniel Pekelharing <legendstar gmail com>
- To: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: Determining if a GtkWindow is maximised?
- Date: Sat, 09 Jul 2005 14:54:17 +0200
On Sat, 2005-07-09 at 12:41 +0200, Daniel Pekelharing wrote:
Hi all,
I'd like my app to "remember" the maximised state of the main window,
I can't seem to figure it out..
I have a callback attached to "configure_event" on the main window:
gboolean main_window_move(GtkWidget *widget, GdkEventWindowState *event,
gpointer *data)
I'm trying to determine the state like this
if (event->new_window_state & GDK_WINDOW_STATE_MAXIMIZED) {..}
But this test seems to prove true almost always - event when I just
shift the (unmaximised) window around?
Am I doing something wrong?
Thanks
Never mind..
I just figured it out,
It seems I should attach to the "window_state_changed" signal instead..
it's working now.
--
Daniel Pekelharing
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]