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



commit a08f9ebc933ef86b5cf535c123cb1570d30dcc83
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 08107f4..8cb13dd 100644
--- a/aisleriot/window.c
+++ b/aisleriot/window.c
@@ -1115,7 +1115,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]