[Buoh-dev] CVS commit to /cvsroot/buoh/buoh/src by carlosgc



CVS commit to /cvsroot/buoh/buoh/src by carlosgc

Modified Files:
	buoh.c 
Log Message:
2005-11-21  Carlos Garcia Campos  <carlosgc gnome org>
	* src/buoh.c: Do disk access in an idle function when saving comic
	list changes.

===================================================================
RCS file: /cvsroot/buoh/buoh/src/buoh.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- /cvsroot/buoh/buoh/src/buoh.c	2005/11/16 20:40:22	1.26
+++ /cvsroot/buoh/buoh/src/buoh.c	2005/11/21 19:44:13	1.27
@@ -290,11 +290,8 @@
 	return visible;
 }
 
-static void
-buoh_save_comic_list (GtkTreeModel *model,
-		      GtkTreePath  *arg1,
-		      GtkTreeIter  *arg2,
-		      gpointer      gdata)
+static gboolean
+save_comic_list (gpointer gdata)
 {
 	Buoh             *buoh = BUOH_BUOH (gdata);
 	xmlTextWriterPtr  writer;
@@ -343,6 +340,17 @@
 	xmlTextWriterEndElement (writer);
 	xmlTextWriterEndDocument (writer);
 	xmlFreeTextWriter (writer);
+
+	return FALSE;
+}
+
+static void
+buoh_save_comic_list (GtkTreeModel *model,
+		      GtkTreePath  *arg1,
+		      GtkTreeIter  *arg2,
+		      gpointer      gdata)
+{
+	g_idle_add ((GSourceFunc) save_comic_list, gdata);
 }
 
 static gboolean



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