summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliot Fairweather <elliot.fairweather@collabora.co.uk>2008-07-31 23:38:39 (GMT)
committerElliot Fairweather <elliot.fairweather@collabora.co.uk>2008-07-31 23:38:39 (GMT)
commit90c1bdd36ad14fa9c187aa024be8eb6db4b451e2 (patch)
tree42990d9592cf06cf0db580004f1b8b1e3ad4bcf5
parentb95c03c1171ebc20074077c18dc8152f8f4b8c6b (diff)
downloadtictactube-90c1bdd36ad14fa9c187aa024be8eb6db4b451e2.tar.gz
tictactube-90c1bdd36ad14fa9c187aa024be8eb6db4b451e2.tar.xz
remove switch symbols from game API
20080731233839-82d1e-e8273c9eeb87a92c302dc9b95d713182ca23c355.gz
-rw-r--r--src/ttt-game.c5
-rw-r--r--src/ttt-game.h1
-rw-r--r--src/ttt-ui.c1
3 files changed, 4 insertions, 3 deletions
diff --git a/src/ttt-game.c b/src/ttt-game.c
index f0fd835..665a863 100644
--- a/src/ttt-game.c
+++ b/src/ttt-game.c
@@ -96,6 +96,7 @@ static void ttt_game_net_player_moved_cb (TttNetStreamTube *net,
guint player_number, TttModelCoord *coord, gpointer data);
static void ttt_game_ready_check (TttGame *game);
+static void ttt_game_switch_symbols (TttGame *game);
static void
ttt_game_class_init (TttGameClass *klass)
@@ -362,6 +363,7 @@ ttt_game_model_iface_won_cb (TttModelIface *iface,
g_signal_emit (game, signals[MODEL_UPDATED], 0);
g_signal_emit (game, signals[ENDED], 0,
priv->current_player->number);
+ ttt_game_switch_symbols (game);
}
@@ -378,6 +380,7 @@ ttt_game_model_iface_drawn_cb (TttModelIface *iface,
ttt_model_iface_print (priv->model);
g_signal_emit (game, signals[MODEL_UPDATED], 0);
g_signal_emit (game, signals[ENDED], 0, 0);
+ ttt_game_switch_symbols (game);
}
@@ -465,7 +468,7 @@ ttt_game_net_player_moved_cb (TttNetStreamTube *net,
}
-void
+static void
ttt_game_switch_symbols (TttGame *game)
{
TttGamePriv *priv = GET_PRIV (game);
diff --git a/src/ttt-game.h b/src/ttt-game.h
index e84f552..d32febd 100644
--- a/src/ttt-game.h
+++ b/src/ttt-game.h
@@ -76,7 +76,6 @@ TttGame *ttt_game_new (TttModelIface *model, TttNetStreamTube *net);
void ttt_game_make_move (TttGame *game, TttModelCoord coord);
void ttt_game_ready (TttGame *game);
-void ttt_game_switch_symbols (TttGame *game);
void ttt_game_add_player (TttGame *game, gchar *name, guint number,
gboolean local);
TttGamePlayer *ttt_game_get_player_by_number (TttGame *game, guint number);
diff --git a/src/ttt-ui.c b/src/ttt-ui.c
index edb166e..84201a0 100644
--- a/src/ttt-ui.c
+++ b/src/ttt-ui.c
@@ -705,7 +705,6 @@ ttt_ui_restart_dialog_response_cb (GtkDialog *dialog,
if (response == GTK_RESPONSE_YES)
{
- ttt_game_switch_symbols (priv->game);
ttt_game_ready (priv->game);
}
else