diff options
author | Quentin Glidic <sardemff7+git@sardemff7.net> | 2017-06-25 20:10:23 +0200 |
---|---|---|
committer | Quentin Glidic <sardemff7+git@sardemff7.net> | 2017-06-25 20:12:35 +0200 |
commit | b9097dc4888e7f90a38e4b50e40b0e8e72345a87 (patch) | |
tree | 8df8824f6885159037fdd3a57351a42a9c708100 | |
parent | ef88423445595f0c9627b974c1fc21c07a16804e (diff) |
drun: Preload icon themes
This will allow multi-thread icon loading.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
-rw-r--r-- | source/dialogs/drun.c | 5 | ||||
m--------- | subprojects/libnkutils | 0 |
2 files changed, 5 insertions, 0 deletions
diff --git a/source/dialogs/drun.c b/source/dialogs/drun.c index e5419ea4..883d7ca7 100644 --- a/source/dialogs/drun.c +++ b/source/dialogs/drun.c @@ -510,10 +510,15 @@ static int drun_mode_init ( Mode *sw ) "gnome", NULL }; + const gchar *themes[2] = { + config.drun_icon_theme, + NULL + }; DRunModePrivateData *pd = g_malloc0 ( sizeof ( *pd ) ); pd->disabled_entries = g_hash_table_new_full ( g_str_hash, g_str_equal, g_free, NULL ); mode_set_private_data ( sw, (void *) pd ); pd->xdg_context = nk_xdg_theme_context_new ( drun_icon_fallback_themes, NULL ); + nk_xdg_theme_preload_themes_icon ( pd->xdg_context, themes ); get_apps ( pd ); pd->icon_fetch_queue = g_async_queue_new ( ); } diff --git a/subprojects/libnkutils b/subprojects/libnkutils -Subproject d09ef1d62699077a83776accc4c96740a18ce7b +Subproject 3467c6a4ee3b7a2f53dfd0e15cd72f00d782a0d |