From dc1417ba724309955dd8d12bf38eaeccc106129d Mon Sep 17 00:00:00 2001 From: Quentin Glidic Date: Fri, 2 Jun 2017 14:27:47 +0200 Subject: drun: Fix thread function signature Signed-off-by: Quentin Glidic --- source/dialogs/drun.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/dialogs/drun.c b/source/dialogs/drun.c index 83aabef4..51aba5e1 100644 --- a/source/dialogs/drun.c +++ b/source/dialogs/drun.c @@ -420,7 +420,7 @@ static void get_apps ( DRunModePrivateData *pd ) TICK_N ( "Get Desktop apps (system dirs)" ); } -static void drun_icon_fetch ( gpointer data ) +static gpointer drun_icon_fetch ( gpointer data ) { // as long as dr->icon is updated atomicly.. (is a pointer write atomic?) // this should be fine running in another thread. @@ -462,6 +462,7 @@ static void drun_icon_fetch ( gpointer data ) rofi_view_reload (); g_log ( G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "elapsed: %f\n", g_timer_elapsed ( t, NULL ) ); g_timer_destroy ( t ); + return NULL; } static int drun_mode_init ( Mode *sw ) -- cgit v1.2.3