--- np2/x11/gtk2/gtk_main.c 2004/07/14 16:01:40 1.1 +++ np2/x11/gtk2/gtk_main.c 2007/01/02 14:37:29 1.3 @@ -1,4 +1,4 @@ -/* $Id: gtk_main.c,v 1.1 2004/07/14 16:01:40 monaka Exp $ */ +/* $Id: gtk_main.c,v 1.3 2007/01/02 14:37:29 monaka Exp $ */ /* * Copyright (c) 2004 NONAKA Kimihiro @@ -12,8 +12,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES @@ -196,6 +194,23 @@ button_release_evhandler(GtkWidget *w, G return TRUE; } +/* + - Signal: gboolean GtkWidget::window_state_event (GtkWidget *widget, + GdkEventWindowState *event, gpointer user_data) +*/ +static gboolean +window_state_evhandler(GtkWidget *w, GdkEventWindowState *ev, gpointer p) +{ + + UNUSED(w); + UNUSED(p); + + if (ev->new_window_state & GDK_WINDOW_STATE_FULLSCREEN) { + /* Nothing to do. */ + } + return TRUE; +} + /* * misc @@ -319,6 +334,8 @@ gui_gtk_widget_create(void) GTK_SIGNAL_FUNC(button_press_evhandler), NULL); g_signal_connect(GTK_OBJECT(main_window), "button_release_event", GTK_SIGNAL_FUNC(button_release_evhandler), NULL); + g_signal_connect(GTK_OBJECT(main_window), "window_state_event", + GTK_SIGNAL_FUNC(window_state_evhandler), NULL); g_signal_connect(GTK_OBJECT(drawarea), "configure_event", GTK_SIGNAL_FUNC(configure_evhandler), NULL);