aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-04 13:16:40 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-04 13:16:40 +0200
commit27dcf87a642f6b5d63a1a4e5884d7a319a7601a2 (patch)
treed3a2b78fda398d4e63e389be5a388280f042973a /src/utils.c
parent7ef502759e5f4cbcf0afa8ce8623ec386f419f90 (diff)
downloadtdv-27dcf87a642f6b5d63a1a4e5884d7a319a7601a2.tar.gz
tdv-27dcf87a642f6b5d63a1a4e5884d7a319a7601a2.tar.xz
tdv-27dcf87a642f6b5d63a1a4e5884d7a319a7601a2.zip
sdgui: load dictionaries asynchronously
This is a must when loading huge dictionaries, where not even parallelization helps much.
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/utils.c b/src/utils.c
index 6a32bda..5542202 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -269,7 +269,6 @@ load_dictionaries_sequentially (GPtrArray *dictionaries, GError **e)
}
// Parallelize dictionary loading if possible, because of collation reindexing
-#if GLIB_CHECK_VERSION (2, 36, 0)
static void
load_worker (gpointer data, gpointer user_data)
{
@@ -304,10 +303,3 @@ load_dictionaries (GPtrArray *dictionaries, GError **e)
g_async_queue_unref (error_queue);
return result;
}
-#else // GLib < 2.36
-gboolean
-load_dictionaries (GPtrArray *dictionaries, GError **e)
-{
- return load_dictionaries_sequentially (dictionaries, e);
-}
-#endif // GLib < 2.36