From a3362f16408b7d4e36c917e384dd346cc8cc40c4 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 2 Sep 2015 14:14:46 +0200 Subject: Gtk3: Don't call gdk_threads_init() taken from: https://git.gnome.org/browse/eog/commit/?id=757128b --- src/eom-image.c | 6 +++--- src/main.c | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/eom-image.c b/src/eom-image.c index a3ba6bc..3cd8e34 100644 --- a/src/eom-image.c +++ b/src/eom-image.c @@ -478,9 +478,9 @@ do_emit_size_prepared_signal (EomImage *img) static void eom_image_emit_size_prepared (EomImage *img) { - gdk_threads_add_idle_full (G_PRIORITY_DEFAULT_IDLE, - (GSourceFunc) do_emit_size_prepared_signal, - g_object_ref (img), g_object_unref); + g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, + (GSourceFunc) do_emit_size_prepared_signal, + g_object_ref (img), g_object_unref); } static gboolean diff --git a/src/main.c b/src/main.c index 99d01d2..a581e55 100644 --- a/src/main.c +++ b/src/main.c @@ -245,7 +245,6 @@ main (int argc, char **argv) #endif eom_debug_init (); eom_job_queue_init (); - gdk_threads_init (); eom_thumbnail_init (); #if GTK_CHECK_VERSION (3, 0, 0) -- cgit v1.2.1