[Tux4kids-commits] r1208 - in tuxtype/branches/gsoc-sarah: doc src

Sarah Frisk fou_fou-guest at alioth.debian.org
Tue Jul 14 22:36:34 UTC 2009


Author: fou_fou-guest
Date: 2009-07-14 22:36:34 +0000 (Tue, 14 Jul 2009)
New Revision: 1208

Modified:
   tuxtype/branches/gsoc-sarah/doc/ChangeLog
   tuxtype/branches/gsoc-sarah/src/titlescreen.c
Log:
Made it so the first word in a wordlist cannot be edited.  This will later become the name of the wordlist

Modified: tuxtype/branches/gsoc-sarah/doc/ChangeLog
===================================================================
--- tuxtype/branches/gsoc-sarah/doc/ChangeLog	2009-07-14 22:03:58 UTC (rev 1207)
+++ tuxtype/branches/gsoc-sarah/doc/ChangeLog	2009-07-14 22:36:34 UTC (rev 1208)
@@ -1,3 +1,8 @@
+14 July 2009(svn.debian.org/tux4kids - revision 1208)
+[Sarah Frisk <ssfrisk at gmail.com> ]
+	- made it so you can't edit the first word in a wordlist, since this is the title.
+	- fixed a few bugs.
+
 13 July 2009 (svn.debian.org/tux4kids - revision 1191)
 [Sarah Frisk <ssfrisk at gmail.com> ]
 	-changed the names of the word*.png files to fit the list*.png conventions 

Modified: tuxtype/branches/gsoc-sarah/src/titlescreen.c
===================================================================
--- tuxtype/branches/gsoc-sarah/src/titlescreen.c	2009-07-14 22:03:58 UTC (rev 1207)
+++ tuxtype/branches/gsoc-sarah/src/titlescreen.c	2009-07-14 22:36:34 UTC (rev 1208)
@@ -1857,7 +1857,7 @@
         {
 	
           	len = ConvertFromUTF8(temp, words_in_list[loc], FNLEN); 
-          	if (len > 1 && number_of_words > 1) {                               
+          	if (len > 1 && number_of_words > 1 && loc > 0) {                               
             // remove the last character from the string
             	temp[len - 1] = temp[len];
             	len = ConvertToUTF8(temp, words_in_list[loc], FNLEN);
@@ -1869,7 +1869,7 @@
             // we have to remove the word from the list // 
 				fprintf(stderr, "The number of words is %i\n", number_of_words);
 				fprintf(stderr, "The length is %i \n", len);
-			if (number_of_words > 1)
+			if (number_of_words > 1 && loc > 0)
 			{	
 				int x = 0;
 				number_of_words--;




More information about the Tux4kids-commits mailing list