From b11bd8d8b784feb591b3904ca787c42b3799a8cf Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 3 Dec 2012 21:12:59 +0100 Subject: [PATCH] gfio: add check for unnecessary g_thread_init() call Annoying gtk likes to spew annoying deprecated warnings. Signed-off-by: Jens Axboe --- gfio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfio.c b/gfio.c index 185dbd5c..65302e60 100644 --- a/gfio.c +++ b/gfio.c @@ -1677,8 +1677,11 @@ static void init_ui(int *argc, char **argv[], struct gui *ui) * Without it, the update that happens in gfio_update_thread_status * doesn't really happen in a timely fashion, you need expose events */ +#if !GTK_CHECK_VERSION(2, 24, 0) if (!g_thread_supported()) g_thread_init(NULL); +#endif + gdk_threads_init(); gtk_init(argc, argv); -- 2.25.1