monkey-bubble r311 - in trunk: . src/ui
- From: bellau svn gnome org
- To: svn-commits-list gnome org
- Subject: monkey-bubble r311 - in trunk: . src/ui
- Date: Fri, 8 Feb 2008 21:59:27 +0000 (GMT)
Author: bellau
Date: Fri Feb 8 21:59:26 2008
New Revision: 311
URL: http://svn.gnome.org/viewvc/monkey-bubble?rev=311&view=rev
Log:
2008-02-08 Laurent Belmonte <laurent belmonte gmail com>
* src/ui/ui-main.c: (ui_main_new), (frame_event): listen window state,
dummy code behind
Modified:
trunk/ChangeLog
trunk/src/ui/ui-main.c
Modified: trunk/src/ui/ui-main.c
==============================================================================
--- trunk/src/ui/ui-main.c (original)
+++ trunk/src/ui/ui-main.c Fri Feb 8 21:59:26 2008
@@ -110,6 +110,10 @@
static void fullscreen (GtkAction* action,
UiMain * uimain);
+
+static void window_state_event (GtkWindow *window,
+ GdkEvent *event,
+ UiMain * uimain);
#endif
static void ui_main_new_1_player_game(UiMain * ui_main);
@@ -278,6 +282,8 @@
#ifdef GNOME
PRIVATE (ui_main)->window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_title (GTK_WINDOW (PRIVATE (ui_main)->window), _("Monkey Bubble"));
+ g_signal_connect (G_OBJECT(PRIVATE (ui_main)->window), "window-state-event",
+ G_CALLBACK (window_state_event), ui_main);
#endif
vbox = gtk_vbox_new (FALSE, 0);
@@ -830,4 +836,11 @@
{
// TODO : do something here
}
+
+static void window_state_event (GtkWindow *window,
+ GdkEvent *event,
+ UiMain * uimain)
+{
+ // TODO : do something here
+}
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]