[lasem] all: fix deprecation warnings related to g_type_init
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem] all: fix deprecation warnings related to g_type_init
- Date: Mon, 5 May 2014 20:18:31 +0000 (UTC)
commit c49375094b0e37f3d161ee8317366fefc527c732
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Mon May 5 22:17:59 2014 +0200
all: fix deprecation warnings related to g_type_init
src/lasemrender.c | 2 ++
tests/dom.c | 2 ++
tests/lsmtest.c | 3 +++
tests/str.c | 2 ++
tests/suite.c | 2 ++
5 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/lasemrender.c b/src/lasemrender.c
index d0accf1..ec9a41f 100644
--- a/src/lasemrender.c
+++ b/src/lasemrender.c
@@ -94,7 +94,9 @@ int main(int argc, char **argv)
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
+#if !GLIB_CHECK_VERSION(2,36,0)
g_type_init ();
+#endif
context = g_option_context_new (NULL);
g_option_context_add_main_entries (context, entries, NULL);
diff --git a/tests/dom.c b/tests/dom.c
index 1ed9e9b..1187178 100644
--- a/tests/dom.c
+++ b/tests/dom.c
@@ -262,7 +262,9 @@ main (int argc, char *argv[])
g_test_add_func ("/dom/node-list", node_list_test);
g_test_add_func ("/dom/insert-before", insert_before_test);
+#if !GLIB_CHECK_VERSION(2,36,0)
g_type_init ();
+#endif
result = g_test_run();
diff --git a/tests/lsmtest.c b/tests/lsmtest.c
index ea18ac8..960a9c5 100644
--- a/tests/lsmtest.c
+++ b/tests/lsmtest.c
@@ -540,7 +540,10 @@ main (int argc, char **argv)
lasem_test_html ("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n");
lasem_test_html ("<body>\n");
+#if !GLIB_CHECK_VERSION(2,36,0)
g_type_init ();
+#endif
+
context = g_option_context_new (NULL);
g_option_context_add_main_entries (context, entries, NULL);
diff --git a/tests/str.c b/tests/str.c
index d954a00..b70cdd9 100644
--- a/tests/str.c
+++ b/tests/str.c
@@ -36,7 +36,9 @@ main (int argc, char *argv[])
g_test_add_func ("/str/str-consolidate", str_consolidate_test);
+#if !GLIB_CHECK_VERSION(2,36,0)
g_type_init ();
+#endif
result = g_test_run();
diff --git a/tests/suite.c b/tests/suite.c
index 7ecd41e..b8b9af8 100644
--- a/tests/suite.c
+++ b/tests/suite.c
@@ -103,7 +103,9 @@ main (int argc, char *argv[])
GSList *files;
int result;
+#if !GLIB_CHECK_VERSION(2,36,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]