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



commit b07e4e158f32ea018106dc36fc65864d952a372e
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 8983973..7ea6eb0 100644
--- a/aisleriot/window.c
+++ b/aisleriot/window.c
@@ -1305,7 +1305,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]