artwork: crash fix when file mask is empty (bug #1177)
gtkui: workaround for bug #1183, use gdk_threads_init/enter/leave in correct way