[four-in-a-row/gnome-3-12] Settings now start with correct opponent value.
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [four-in-a-row/gnome-3-12] Settings now start with correct opponent value.
- Date: Mon, 16 Jun 2014 23:23:39 +0000 (UTC)
commit 7518f685a4af234a8aeb5a12acf9106faad15c74
Author: Nikhar Agrawal <nikharagrawal2006 gmail com>
Date: Sat Jun 14 15:08:52 2014 +0530
Settings now start with correct opponent value.
src/prefs.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/prefs.c b/src/prefs.c
index 411df84..92521dd 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -206,19 +206,19 @@ prefsbox_open (void)
gtk_combo_box_set_model (GTK_COMBO_BOX (combobox), GTK_TREE_MODEL (model));
gtk_list_store_append (model, &iter);
gtk_list_store_set (model, &iter, 0, _("Human"), 1, LEVEL_HUMAN, -1);
- if (p.level[PLAYER1] == LEVEL_HUMAN)
+ if (p.level[PLAYER2] == LEVEL_HUMAN)
gtk_combo_box_set_active_iter (GTK_COMBO_BOX (combobox), &iter);
gtk_list_store_append (model, &iter);
gtk_list_store_set (model, &iter, 0, _("Level one"), 1, LEVEL_WEAK, -1);
- if (p.level[PLAYER1] == LEVEL_WEAK)
+ if (p.level[PLAYER2] == LEVEL_WEAK)
gtk_combo_box_set_active_iter (GTK_COMBO_BOX (combobox), &iter);
gtk_list_store_append (model, &iter);
gtk_list_store_set (model, &iter, 0, _("Level two"), 1, LEVEL_MEDIUM, -1);
- if (p.level[PLAYER1] == LEVEL_MEDIUM)
+ if (p.level[PLAYER2] == LEVEL_MEDIUM)
gtk_combo_box_set_active_iter (GTK_COMBO_BOX (combobox), &iter);
gtk_list_store_append (model, &iter);
gtk_list_store_set (model, &iter, 0, _("Level three"), 1, LEVEL_STRONG, -1);
- if (p.level[PLAYER1] == LEVEL_STRONG)
+ if (p.level[PLAYER2] == LEVEL_STRONG)
gtk_combo_box_set_active_iter (GTK_COMBO_BOX (combobox), &iter);
g_signal_connect (combobox, "changed", G_CALLBACK (on_select_opponent), NULL);
gtk_grid_attach (GTK_GRID (grid), combobox, 1, 0, 1, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]