mirror of https://github.com/davatorium/rofi.git
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:
parent
ef88423445
commit
b9097dc488
|
@ -510,10 +510,15 @@ static int drun_mode_init ( Mode *sw )
|
||||||
"gnome",
|
"gnome",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
const gchar *themes[2] = {
|
||||||
|
config.drun_icon_theme,
|
||||||
|
NULL
|
||||||
|
};
|
||||||
DRunModePrivateData *pd = g_malloc0 ( sizeof ( *pd ) );
|
DRunModePrivateData *pd = g_malloc0 ( sizeof ( *pd ) );
|
||||||
pd->disabled_entries = g_hash_table_new_full ( g_str_hash, g_str_equal, g_free, NULL );
|
pd->disabled_entries = g_hash_table_new_full ( g_str_hash, g_str_equal, g_free, NULL );
|
||||||
mode_set_private_data ( sw, (void *) pd );
|
mode_set_private_data ( sw, (void *) pd );
|
||||||
pd->xdg_context = nk_xdg_theme_context_new ( drun_icon_fallback_themes, NULL );
|
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 );
|
get_apps ( pd );
|
||||||
pd->icon_fetch_queue = g_async_queue_new ( );
|
pd->icon_fetch_queue = g_async_queue_new ( );
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit d09ef1d62699077a83776accc4c96740a18ce7b1
|
Subproject commit 3467c6a4ee3b7a2f53dfd0e15cd72f00d782a0dd
|
Loading…
Reference in New Issue