X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=gfio.c;h=37c1db6918d0f8e25280bceea5ec6735dcabee0d;hp=185dbd5c482456bc89d23ac14a041e79e2350a5a;hb=9342d5f807795f973fb76c89c48d8e4afd5e5887;hpb=49758e11f3658686ccd1c61724a5eba142f3ee4f diff --git a/gfio.c b/gfio.c index 185dbd5c..37c1db69 100644 --- a/gfio.c +++ b/gfio.c @@ -444,7 +444,7 @@ static int send_job_file(struct gui_entry *ge) while (!flist_empty(&gc->o_list)) { struct gfio_client_options *gco; - gco = flist_entry(gc->o_list.next, struct gfio_client_options, list); + gco = flist_first_entry(&gc->o_list, struct gfio_client_options, list); flist_del(&gco->list); free(gco); } @@ -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);