gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog server/edit_text_character.cpp ...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog server/edit_text_character.cpp ...
Date: Wed, 19 Sep 2007 10:54:09 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/09/19 10:54:09

Modified files:
        .              : ChangeLog 
        server         : edit_text_character.cpp 
        testsuite/misc-swfc.all: edittext_test1.sc 

Log message:
                * server/edit_text_character.cpp (set_variable_name): 
reinitialize
                  text to default value.
                * testsuite/misc-swfc.all/edittext_test1.sc: more successes.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4351&r2=1.4352
http://cvs.savannah.gnu.org/viewcvs/gnash/server/edit_text_character.cpp?cvsroot=gnash&r1=1.115&r2=1.116
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/edittext_test1.sc?cvsroot=gnash&r1=1.2&r2=1.3

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4351
retrieving revision 1.4352
diff -u -b -r1.4351 -r1.4352
--- ChangeLog   19 Sep 2007 10:32:52 -0000      1.4351
+++ ChangeLog   19 Sep 2007 10:54:09 -0000      1.4352
@@ -1,5 +1,11 @@
 2007-09-19 Sandro Santilli <address@hidden>
 
+       * server/edit_text_character.cpp (set_variable_name): reinitialize
+         text to default value.
+       * testsuite/misc-swfc.all/edittext_test1.sc: more successes.
+
+2007-09-19 Sandro Santilli <address@hidden>
+
        * gui/gtk.cpp (setInterval): add a note about the fact that the 
          current way of setting up the FPS timer is bogus. Note that the
          problem is related to A/V syncing...

Index: server/edit_text_character.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/edit_text_character.cpp,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -b -r1.115 -r1.116
--- server/edit_text_character.cpp      19 Sep 2007 10:17:03 -0000      1.115
+++ server/edit_text_character.cpp      19 Sep 2007 10:54:09 -0000      1.116
@@ -17,7 +17,7 @@
 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 //
 
-/* $Id: edit_text_character.cpp,v 1.115 2007/09/19 10:17:03 strk Exp $ */
+/* $Id: edit_text_character.cpp,v 1.116 2007/09/19 10:54:09 strk Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -1526,6 +1526,9 @@
        {
                _variable_name = newname;
                _text_variable_registered = false;
+               set_text_value(m_def->get_default_text().c_str());
+               registerTextVariable();
+               //reset_bounding_box(0, 0); // does this make sense ? it's 
called in the constructor...
        }
 }
 

Index: testsuite/misc-swfc.all/edittext_test1.sc
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-swfc.all/edittext_test1.sc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- testsuite/misc-swfc.all/edittext_test1.sc   19 Sep 2007 10:17:03 -0000      
1.2
+++ testsuite/misc-swfc.all/edittext_test1.sc   19 Sep 2007 10:54:09 -0000      
1.3
@@ -72,8 +72,8 @@
     check_equals(edtext1.variable, 'textVar2');
     // textVar2 automatically initialized to 'Hello'
     // (the InitialText in DefineTextField tag, make sense!)
-    xcheck_equals(_root.textVar2, 'Hello');
-    xcheck_equals(edtext1.text, 'Hello');
+    check_equals(_root.textVar2, 'Hello');
+    check_equals(edtext1.text, 'Hello');
     xcheck_equals(_root.textVar1, 'new-string-frame3');
   .end
 
@@ -99,7 +99,7 @@
     edtext1.variable = 'textVar3'; 
     // textVar3 automatically initialized to 'Hello'
     // (the InitialText in DefineTextField tag, make sense!)
-    xcheck_equals(_root.textVar3, 'Hello');
+    check_equals(_root.textVar3, 'Hello');
     xcheck_equals(_root.textVar1, 'new-string-frame6');
   .end
   




reply via email to

[Prev in Thread] Current Thread [Next in Thread]