[eog] Remove usage of g_thread_init
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Remove usage of g_thread_init
- Date: Wed, 8 Feb 2012 19:32:38 +0000 (UTC)
commit 9edf86217f5e2d2ff028146e62a6636a82be4207
Author: Felix Riemann <friemann gnome org>
Date: Wed Feb 8 16:37:44 2012 +0100
Remove usage of g_thread_init
g_thread_init() has become obsolete with the current glib releases.
This clears eog from the direct dependency on libgthread.
configure.ac | 1 -
src/eog-job-queue.c | 2 --
src/main.c | 3 ---
3 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b039221..bbcd703 100644
--- a/configure.ac
+++ b/configure.ac
@@ -99,7 +99,6 @@ EOG_MODULES="gtk+-3.0 >= $GTK_REQUIRED \
glib-2.0 >= $GLIB_REQUIRED \
gio-2.0 >= $GLIB_REQUIRED \
gio-unix-2.0 >= $GLIB_REQUIRED \
- gthread-2.0 >= $GLIB_REQUIRED \
gnome-desktop-3.0 >= $GNOME_DESKTOP_REQUIRED \
gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED \
gtk+-unix-print-3.0 >= $GTK_PRINT_REQUIRED \
diff --git a/src/eog-job-queue.c b/src/eog-job-queue.c
index f6d8d69..f38ddcb 100644
--- a/src/eog-job-queue.c
+++ b/src/eog-job-queue.c
@@ -154,8 +154,6 @@ eog_render_thread (gpointer data)
void
eog_job_queue_init (void)
{
- if (!g_thread_supported ()) g_thread_init (NULL);
-
render_cond = g_cond_new ();
eog_queue_mutex = g_mutex_new ();
diff --git a/src/main.c b/src/main.c
index ece7026..2fca663 100644
--- a/src/main.c
+++ b/src/main.c
@@ -104,9 +104,6 @@ main (int argc, char **argv)
GtkSettings *settings;
GtkCssProvider *provider;
- if (!g_thread_supported ())
- g_thread_init (NULL);
-
bindtextdomain (PACKAGE, EOG_LOCALE_DIR);
bind_textdomain_codeset (PACKAGE, "UTF-8");
textdomain (PACKAGE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]