Author: post
Date: 2010-12-29 21:14:10 +0100 (Wed, 29 Dec 2010)
New Revision: 3722
Modified:
trunk/src/rs-store.c
Log:
Use async job for restoring tags to database to avoid long GUI lockup, if tags
are being re-added.
Modified: trunk/src/rs-store.c
===================================================================
--- trunk/src/rs-store.c 2010-12-29 20:13:39 UTC (rev 3721)
+++ trunk/src/rs-store.c 2010-12-29 20:14:10 UTC (rev 3722)
@@ -112,6 +112,7 @@
/* Classes to user for io-system */
#define PRELOAD_CLASS (82764283)
#define METADATA_CLASS (542344)
+#define RESTORE_TAGS_CLASS (4845658)
/* Define the boiler plate stuff using the predefined macro */
G_DEFINE_TYPE (RSStore, rs_store, GTK_TYPE_HBOX);
@@ -1187,7 +1188,7 @@
gchar *path_normalized = rs_normalize_path(path);
- rs_library_restore_tags(path_normalized);
+ rs_io_idle_restore_tags(path_normalized, RESTORE_TAGS_CLASS);
dir = g_dir_open(path_normalized, 0, NULL); /* FIXME: check errors */
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit