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

Back to archive index

Hiroyuki Ikezoe ikezo****@users*****
2006年 11月 23日 (木) 10:38:41 JST


Index: tomoe/lib/tomoe-shelf.c
diff -u tomoe/lib/tomoe-shelf.c:1.5 tomoe/lib/tomoe-shelf.c:1.6
--- tomoe/lib/tomoe-shelf.c:1.5	Tue Nov 21 13:03:11 2006
+++ tomoe/lib/tomoe-shelf.c	Thu Nov 23 10:38:41 2006
@@ -17,7 +17,7 @@
  *  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  *  Boston, MA  02111-1307  USA
  *
- *  $Id: tomoe-shelf.c,v 1.5 2006/11/21 04:03:11 kous Exp $
+ *  $Id: tomoe-shelf.c,v 1.6 2006/11/23 01:38:41 ikezoe Exp $
  */
 
 #include "tomoe-dict.h"
@@ -124,7 +124,7 @@
 tomoe_shelf_collect_dict_name (gpointer key, gpointer value, gpointer user_data)
 {
     gchar *name = key;
-    GList **names = user_data;
+    GList **names = (GList **) user_data;
     
     *names = g_list_prepend(*names, g_strdup(name));
 }
Index: tomoe/lib/tomoe-writing.c
diff -u tomoe/lib/tomoe-writing.c:1.3 tomoe/lib/tomoe-writing.c:1.4
--- tomoe/lib/tomoe-writing.c:1.3	Wed Nov 22 15:42:47 2006
+++ tomoe/lib/tomoe-writing.c	Thu Nov 23 10:38:41 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.3 2006/11/22 06:42:47 ikezoe Exp $
+ *  $Id: tomoe-writing.c,v 1.4 2006/11/23 01:38:41 ikezoe Exp $
  */
 
 #include <stdlib.h>
@@ -253,16 +253,23 @@
     g_free (s);
 }
 
-const GList *
+GList *
 tomoe_writing_get_strokes (TomoeWriting  *writing)
 {
     TomoeWritingPrivate *priv;
+    GList *strokes = NULL;
+    GList *list;
 
     g_return_val_if_fail (TOMOE_IS_WRITING (writing), NULL);
 
     priv = TOMOE_WRITING_GET_PRIVATE(writing);
 
-    return priv->stroke_first;
+    for (list = priv->stroke_last; list; list = g_list_previous (list)) {
+        TomoeStroke *stroke = (TomoeStroke *) list->data;
+        strokes = g_list_prepend (strokes, stroke->point_first);
+    }
+
+    return strokes;
 }
 
 static TomoePoint *
Index: tomoe/lib/tomoe-writing.h
diff -u tomoe/lib/tomoe-writing.h:1.2 tomoe/lib/tomoe-writing.h:1.3
--- tomoe/lib/tomoe-writing.h:1.2	Wed Nov 22 15:19:19 2006
+++ tomoe/lib/tomoe-writing.h	Thu Nov 23 10:38:41 2006
@@ -18,7 +18,7 @@
  *  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  *  Boston, MA  02111-1307  USA
  *
- *  $Id: tomoe-writing.h,v 1.2 2006/11/22 06:19:19 makeinu Exp $
+ *  $Id: tomoe-writing.h,v 1.3 2006/11/23 01:38:41 ikezoe Exp $
  */
 
 /** @file tomoe-handwrite.h
@@ -84,7 +84,7 @@
                                                  gint          *y);
 void            tomoe_writing_remove_last_stroke(TomoeWriting  *writing);
 
-const GList    *tomoe_writing_get_strokes       (TomoeWriting  *writing);
+GList          *tomoe_writing_get_strokes       (TomoeWriting  *writing);
 
 G_END_DECLS
 


tomoe-cvs メーリングリストの案内
Back to archive index