[Tomoe-cvs 1091] CVS update: tomoe/lib

Zurück zum Archiv-Index

Kouhei Sutou kous****@users*****
2006年 11月 27日 (月) 13:23:47 JST


Index: tomoe/lib/tomoe-writing.c
diff -u tomoe/lib/tomoe-writing.c:1.8 tomoe/lib/tomoe-writing.c:1.9
--- tomoe/lib/tomoe-writing.c:1.8	Mon Nov 27 11:02:57 2006
+++ tomoe/lib/tomoe-writing.c	Mon Nov 27 13:23:47 2006
@@ -18,7 +18,7 @@
  *  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  *  Boston, MA  02111-1307  USA
  *
- *  $Id: tomoe-writing.c,v 1.8 2006/11/27 02:02:57 kous Exp $
+ *  $Id: tomoe-writing.c,v 1.9 2006/11/27 04:23:47 kous Exp $
  */
 
 #include <stdlib.h>
@@ -185,27 +185,29 @@
     priv = TOMOE_WRITING_GET_PRIVATE(writing);
     if (!priv->stroke_first) return NULL;
 
-    output = g_string_new ("    <strokelist>\n");
+    output = g_string_new ("    <strokes>\n");
     for (stroke_list = priv->stroke_first;
          stroke_list;
          stroke_list = g_list_next (stroke_list)) {
         GList *point_list = stroke_list->data;
 
         if (!point_list) continue;
-        g_string_append (output, "      <s>");
+        g_string_append (output, "      <stroke>\n");
 
         for (; point_list; point_list = g_list_next (point_list)) {
             TomoePoint *p = point_list->data;
 
             if (!p) continue;
 
-            g_string_append_printf (output, "(%d %d) ", p->x, p->y);
+            g_string_append_printf (output,
+                                    "        <point x=\"%d\" y=\"%d\"/>\n",
+                                    p->x, p->y);
         }
 
-        g_string_append (output, "</s>\n");
+        g_string_append (output, "      </stroke>\n");
     }
 
-    g_string_append (output, "    </strokelist>\n");
+    g_string_append (output, "    </strokes>\n");
 
     return g_string_free (output, FALSE);
 }


tomoe-cvs メーリングリストの案内
Zurück zum Archiv-Index