summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2015-09-02 14:14:46 +0200
committerinfirit <[email protected]>2015-09-06 13:08:32 +0200
commita3362f16408b7d4e36c917e384dd346cc8cc40c4 (patch)
treeb26c9c3e8170db2e7b576fddef2711dd20e1fa50
parentf63ce7c886a645dcdde4002c2c1727d3aea102d9 (diff)
downloadeom-a3362f16408b7d4e36c917e384dd346cc8cc40c4.tar.bz2
eom-a3362f16408b7d4e36c917e384dd346cc8cc40c4.tar.xz
Gtk3: Don't call gdk_threads_init()
taken from: https://git.gnome.org/browse/eog/commit/?id=757128b
-rw-r--r--src/eom-image.c6
-rw-r--r--src/main.c1
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)