monkey-bubble r275 - in trunk: . src/ui
- From: herzi svn gnome org
- To: svn-commits-list gnome org
- Subject: monkey-bubble r275 - in trunk: . src/ui
- Date: Thu, 7 Feb 2008 00:21:05 +0000 (GMT)
Author: herzi
Date: Thu Feb 7 00:21:05 2008
New Revision: 275
URL: http://svn.gnome.org/viewvc/monkey-bubble?rev=275&view=rev
Log:
2008-02-07 Sven Herzberg <sven imendio com>
* src/ui/ui-main.c: (ui_main_new), (new_1_player_game): prepared
new_1_player_game() for the usage with GtkActions; drop game_new_cb()
which was a wrapper - now the signatures are identical
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 Thu Feb 7 00:21:05 2008
@@ -65,7 +65,8 @@
void ui_main_game_changed(Game * game,UiMain * ui_main);
-static void new_1_player_game (UiMain* uimain);
+static void new_1_player_game (GtkAction* action,
+ UiMain * uimain);
#ifdef GNOME
static void new_2_player_game(gpointer callback_data,
guint callback_action,
@@ -208,13 +209,6 @@
#ifdef MAEMO
static void
-game_new_cb (GtkAction* action,
- UiMain * ui)
-{
- new_1_player_game (ui);
-}
-
-static void
game_pause_cb (GtkAction* action,
UiMain * ui)
{
@@ -245,7 +239,7 @@
#ifdef MAEMO
{"GameNew", NULL, N_("New Game"),
NULL, NULL,
- G_CALLBACK (game_new_cb)
+ G_CALLBACK (new_1_player_game)
},
{"GameJoin", NULL, N_("Join network game"),
NULL, NULL,
@@ -380,7 +374,8 @@
PRIVATE(ui_main)->accel_group);
item = glade_xml_get_widget(PRIVATE(ui_main)->glade_xml,"new_1_player");
- g_signal_connect_swapped( item,"activate",GTK_SIGNAL_FUNC(new_1_player_game),ui_main);
+ g_signal_connect (item, "activate",
+ G_CALLBACK (new_1_player_game), ui_main);
gtk_menu_item_set_accel_path( GTK_MENU_ITEM(item),
ACCEL_PATH_NEW_1_PLAYER);
@@ -574,7 +569,8 @@
}
static void
-new_1_player_game (UiMain* ui_main)
+new_1_player_game (GtkAction* action,
+ UiMain * ui_main)
{
#ifdef MAEMO
state_clear();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]