[gnome-games/gnome-2-26] aisleriot: Fix option menu for games with more than three options



commit 4fb597e3b5dcaf47fdf988ffcf37ca4411159316
Author: KÃ¥re Fiedler Chrisitiansen <gnome kaarefc dk>
Date:   Mon Feb 7 17:51:10 2011 +0100

    aisleriot: Fix option menu for games with more than three options
    
    This was broken by commit 0e48565dc26fbe7b6a0fd2c411406b3c7744b721.
    
    Bug #641702.

 aisleriot/window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/aisleriot/window.c b/aisleriot/window.c
index 6bb3b38..a24e0f1 100644
--- a/aisleriot/window.c
+++ b/aisleriot/window.c
@@ -1196,7 +1196,7 @@ apply_option (GtkToggleAction *action,
   active = gtk_toggle_action_get_active (action);
 
   action_name = gtk_action_get_name (GTK_ACTION (action));
-  value = g_ascii_strtoull (action_name + strlen ("Option"), NULL, 16);
+  value = g_ascii_strtoull (action_name + strlen ("Option"), NULL, 10);
 
   g_print ("option %s changed, value=%x set=%d\n", action_name, value, active);
 



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