[network-manager-iodine] Don't invoke g_type_init for recent glib
- From: Guido Günther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-iodine] Don't invoke g_type_init for recent glib
- Date: Sat, 11 May 2013 15:04:40 +0000 (UTC)
commit efba86e8beb680aa4f83dd0ee6ef3b753011d745
Author: Guido Günther <agx sigxcpu org>
Date: Fri May 10 16:42:36 2013 +0200
Don't invoke g_type_init for recent glib
Since it it's not needed and causes a deprecation warning.
Debian-Bug: #707469
src/nm-iodine-service.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/nm-iodine-service.c b/src/nm-iodine-service.c
index b55ca2d..c99c384 100644
--- a/src/nm-iodine-service.c
+++ b/src/nm-iodine-service.c
@@ -687,7 +687,9 @@ int main (int argc, char *argv[])
NMIODINEPlugin *plugin;
GMainLoop *main_loop;
+#if !GLIB_CHECK_VERSION(2,36,0)
g_type_init ();
+#endif
plugin = nm_iodine_plugin_new ();
if (!plugin)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]