[eog] Don't lock GDK around g_application_run()
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Don't lock GDK around g_application_run()
- Date: Wed, 2 Nov 2011 22:08:20 +0000 (UTC)
commit ee4f6b27027421ee1e7cb14948f587da83171668
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Nov 2 10:08:14 2011 -0400
Don't lock GDK around g_application_run()
An unintended interaction between GtkApplication and GDK threading made
this necessary before. That code has since been simplified, breaking
this formerly-working code.
https://bugzilla.gnome.org/show_bug.cgi?id=662630
src/main.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 4e78732..e83abed 100644
--- a/src/main.c
+++ b/src/main.c
@@ -161,8 +161,6 @@ main (int argc, char **argv)
"gtk-application-prefer-dark-theme", TRUE,
NULL);
- gdk_threads_enter ();
-
EOG_APP->flags = flags;
if (force_new_instance) {
GApplicationFlags app_flags = g_application_get_flags (G_APPLICATION (EOG_APP));
@@ -173,8 +171,6 @@ main (int argc, char **argv)
g_application_run (G_APPLICATION (EOG_APP), argc, argv);
g_object_unref (EOG_APP);
- gdk_threads_leave ();
-
if (startup_files)
g_strfreev (startup_files);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]