[grilo-plugins] test: g_type_init() is deprecated
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] test: g_type_init() is deprecated
- Date: Fri, 19 Oct 2012 10:50:30 +0000 (UTC)
commit c387bbdc673989ab4e0a93f1a536d4888e3069fc
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Fri Oct 19 10:03:26 2012 +0000
test: g_type_init() is deprecated
For glib >= 2.35.0.
test/main.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/test/main.c b/test/main.c
index 87322f5..95e6fc6 100644
--- a/test/main.c
+++ b/test/main.c
@@ -181,7 +181,10 @@ main (void)
{
GList *keys;
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
+
grl_init (NULL, NULL);
GRL_LOG_DOMAIN_INIT (test_main_log_domain, "test-main");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]