X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=gfio.c;h=65302e6075a01daad0b794417909e0e213b4f66a;hp=185dbd5c482456bc89d23ac14a041e79e2350a5a;hb=135be493d843d4cae2966a35cbd22a3058ec8e4b;hpb=f681d0bac9c42e5d6bcb3601d2f3cfaa1c2cefb4 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);