[gnome-robots] Fixed bug that opening settings menu resets game



commit ab5caae53dc4dfa71f242b7e83a40e650e825baf
Author: Mario Wenzel <maweki gmail com>
Date:   Mon Feb 3 22:04:38 2014 +0100

    Fixed bug that opening settings menu resets game
    
    https://bugzilla.gnome.org/show_bug.cgi?id=613077
    The change event was connected too soon.

 src/properties.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/properties.c b/src/properties.c
index c0a126c..bb5a107 100644
--- a/src/properties.c
+++ b/src/properties.c
@@ -417,11 +417,12 @@ show_properties_dialog (void)
   gtk_grid_attach (GTK_GRID (grid), label, 0, 0, 1, 1);
 
   typemenu = gtk_combo_box_text_new ();
-  g_signal_connect (G_OBJECT (typemenu), "changed",
-                   G_CALLBACK (type_selection), NULL);
   fill_typemenu (typemenu);
   gtk_grid_attach (GTK_GRID (grid), typemenu, 1, 0, 1, 1);
 
+  g_signal_connect (G_OBJECT (typemenu), "changed",
+                   G_CALLBACK (type_selection), NULL);
+
   chkbox = gtk_check_button_new_with_mnemonic (_("_Use safe moves"));
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (chkbox),
                                properties.safe_moves);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]