1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

drun: Preload icon themes

This will allow multi-thread icon loading.

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2017-06-25 20:10:23 +02:00
parent ef88423445
commit b9097dc488
No known key found for this signature in database
GPG key ID: AC203F96E2C34BB7
2 changed files with 6 additions and 1 deletions

View file

@ -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 ( );
}

@ -1 +1 @@
Subproject commit d09ef1d62699077a83776accc4c96740a18ce7b1
Subproject commit 3467c6a4ee3b7a2f53dfd0e15cd72f00d782a0dd