[gitg/vala] Depend on glib 2.32 for threads
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/vala] Depend on glib 2.32 for threads
- Date: Fri, 6 Jul 2012 17:37:00 +0000 (UTC)
commit 69ad1afc97fd9c50e4cf753a2e2f6a683fdd44c6
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Fri Jul 6 18:47:42 2012 +0200
Depend on glib 2.32 for threads
configure.ac | 3 ++-
libgitg-ext/Makefile.am | 1 +
libgitg-gtk/Makefile.am | 1 +
libgitg/Makefile.am | 1 +
libgitg/gitg-commit-model.vala | 4 ++--
5 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ae875df..0cce00b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,7 +83,7 @@ AC_DEFINE_UNQUOTED(GITG_LIBDIR,"$GITG_LIBDIR", [lib dir])
AC_CHECK_LIB([m], [sinf])
-GLIB_REQUIRED_VERSION=2.26
+GLIB_REQUIRED_VERSION=2.32
GTK_REQUIRED_VERSION=3.0.0
GTKSOURCEVIEW_REQUIRED_VERSION=3.1.3
INTROSPECTION_REQUIRED=0.10.1
@@ -216,6 +216,7 @@ GITG_PLUGIN_VALAFLAGS=" \
--pkg gtk+-3.0 \
--pkg libpeas-1.0 \
--pkg gee-1.0 \
+ --target-glib 2.32 \
--vapidir \$(top_srcdir)/vapi \
--girdir \$(top_builddir)/libgitg \
--girdir \$(top_builddir)/libgitg-gtk \
diff --git a/libgitg-ext/Makefile.am b/libgitg-ext/Makefile.am
index 2602755..ad23abf 100644
--- a/libgitg-ext/Makefile.am
+++ b/libgitg-ext/Makefile.am
@@ -13,6 +13,7 @@ VALAFLAGS = \
--pkg Gitg-1.0 \
--pkg gio-2.0 \
--pkg gtk+-3.0 \
+ --target-glib 2.32 \
--header libgitg-ext.h \
--includedir libgitg-ext \
--basedir $(top_srcdir) \
diff --git a/libgitg-gtk/Makefile.am b/libgitg-gtk/Makefile.am
index a6abab8..d559910 100644
--- a/libgitg-gtk/Makefile.am
+++ b/libgitg-gtk/Makefile.am
@@ -25,6 +25,7 @@ VALAFLAGS = \
--pkg Gitg-1.0 \
--pkg gtk+-3.0 \
--pkg gio-2.0 \
+ --target-glib 2.32 \
--header libgitg-gtk.h \
--includedir libgitg-gtk \
--basedir $(top_srcdir) \
diff --git a/libgitg/Makefile.am b/libgitg/Makefile.am
index 6848a8f..8012124 100644
--- a/libgitg/Makefile.am
+++ b/libgitg/Makefile.am
@@ -19,6 +19,7 @@ INST_H_FILES = \
VALAFLAGS = \
--pkg Ggit-1.0 \
--pkg gio-2.0 \
+ --target-glib 2.32 \
--header libgitg.h \
--includedir libgitg \
--basedir $(top_srcdir) \
diff --git a/libgitg/gitg-commit-model.vala b/libgitg/gitg-commit-model.vala
index 33a71a5..7080c58 100644
--- a/libgitg/gitg-commit-model.vala
+++ b/libgitg/gitg-commit-model.vala
@@ -25,7 +25,7 @@ public class CommitModel : Object
private Repository d_repository;
private Cancellable? d_cancellable;
private Gitg.Commit[] d_ids;
- private unowned Thread<void*>? d_thread;
+ private Thread<void*>? d_thread;
private Ggit.RevisionWalker? d_walker;
private uint d_advertized_size;
private uint d_idleid;
@@ -313,7 +313,7 @@ public class CommitModel : Object
try
{
- d_thread = Thread.create<void*>(run, true);
+ d_thread = new Thread<void*>.try("gitg-history-walk", run);
yield;
}
catch
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]