gitmodules: Update libnkutils

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2017-06-11 18:39:26 +02:00
parent 067544120f
commit 19a2d37df3
No known key found for this signature in database
GPG key ID: AC203F96E2C34BB7
2 changed files with 11 additions and 10 deletions

View file

@ -459,14 +459,10 @@ static gpointer drun_icon_fetch ( gpointer data )
// this should be fine running in another thread.
DRunModePrivateData *pd = (DRunModePrivateData *) data;
DRunModeEntry *dr;
gsize i = 0;
const gchar *themes[4];
if ( config.drun_icon_theme != NULL ) {
themes[i++] = config.drun_icon_theme;
}
themes[i++] = "Adwaita";
themes[i++] = "gnome";
themes[i] = NULL;
const gchar *themes[2] = {
config.drun_icon_theme,
NULL
};
while ( ( dr = g_async_queue_pop ( pd->icon_fetch_queue ) ) != &( pd->quit_entry ) ) {
if ( dr->icon_name == NULL ) {
@ -509,10 +505,15 @@ static gpointer drun_icon_fetch ( gpointer data )
static int drun_mode_init ( Mode *sw )
{
if ( mode_get_private_data ( sw ) == NULL ) {
static const gchar * const drun_icon_fallback_themes[] = {
"Adwaita",
"gnome",
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 ();
pd->xdg_context = nk_xdg_theme_context_new ( drun_icon_fallback_themes, NULL );
get_apps ( pd );
pd->icon_fetch_queue = g_async_queue_new ( );
}

@ -1 +1 @@
Subproject commit e66c49bb944d1c77f23e7da5277b863a5fca8d2d
Subproject commit 35919169b202e4b4560d8039167e4acdd7952e79