Freecell bug..




as of a few hours back, freecell failed to see more than the first
digit in the seed. This is due to the fact that GTK_ENTRY(data)->text
seems to be using wchars(?) instead of char*, so atoi(...) only gives
the first digit...

Patch follows... (I'm presuming this is the right thing to do? the
code in the gtkentry.c seems to ok this usage... )


Index: freecell/src/io-gtk.c
===================================================================
RCS file: /cvs/gnome/gnome-games/freecell/src/io-gtk.c,v
retrieving revision 1.19
diff -u -r1.19 io-gtk.c
--- io-gtk.c    1998/12/06 17:23:08     1.19
+++ io-gtk.c    1998/12/11 11:41:09
@@ -372,7 +372,7 @@
   int seed;
   char buffer[64];
 
-  seed = atoi (GTK_ENTRY(data)->text);
+  seed = atoi (gtk_entry_get_text(GTK_ENTRY(data)));
   
   if (freecellgame)
     freecellgame_delete (freecellgame);



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