Merge branch 'next' into next

This commit is contained in:
giomatfois62 2024-03-03 10:05:33 +01:00 committed by GitHub
commit f5227ccf86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -245,6 +245,11 @@ static gboolean rofi_icon_fetcher_create_thumbnail(const gchar *mime_type,
return thumbnail_created;
}
static void rofi_icon_fetch_thread_pool_entry_remove(gpointer data) {
IconFetcherNameEntry *entry = (IconFetcherNameEntry *)data;
// Mark it in a way it should be re-fetched on next query?
}
static void rofi_icon_fetch_entry_free(gpointer data) {
IconFetcherNameEntry *entry = (IconFetcherNameEntry *)data;
@ -765,7 +770,7 @@ uint32_t rofi_icon_fetcher_query_advanced(const char *name, const int wsize,
// Push into fetching queue.
sentry->state.callback = rofi_icon_fetcher_worker;
sentry->state.free = rofi_icon_fetch_entry_free;
sentry->state.free = rofi_icon_fetch_thread_pool_entry_remove;
sentry->state.priority = G_PRIORITY_LOW;
g_thread_pool_push(tpool, sentry, NULL);