[PATCH 08/13] view: g_type_init() is deprecated in glib >= 2.35

Jan Arne Petersen jpetersen at openismus.com
Tue Feb 19 10:27:02 PST 2013


From: Jan Arne Petersen <jpetersen at openismus.com>

Signed-off-by: Jan Arne Petersen <jpetersen at openismus.com>
---
 clients/view.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/clients/view.c b/clients/view.c
index 1bb9b9b..bfad897 100644
--- a/clients/view.c
+++ b/clients/view.c
@@ -293,7 +293,9 @@ main(int argc, char *argv[])
 	int i;
 	int view_counter = 0;
 
+#if !GLIB_CHECK_VERSION(2, 35, 0)
 	g_type_init();
+#endif
 
 	argc = parse_options(view_options,
 			     ARRAY_LENGTH(view_options), argc, argv);
-- 
1.8.1.2



More information about the wayland-devel mailing list