summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-09-18 13:24:39 (GMT)
committerSung-jae Park <nicesj.park@samsung.com>2013-09-18 13:24:39 (GMT)
commit2b898b7ec721d4dd5b8988cbc1e95e6ea406b774 (patch)
tree7b0167245e93ac4e245a1b2599ddfa1bf62904c8
parent01cbd1f5849f3a6afdf9550b85bd271d60b876cf (diff)
downloaddata-provider-master-2b898b7ec721d4dd5b8988cbc1e95e6ea406b774.zip
data-provider-master-2b898b7ec721d4dd5b8988cbc1e95e6ea406b774.tar.gz
data-provider-master-2b898b7ec721d4dd5b8988cbc1e95e6ea406b774.tar.bz2
g_type_init is deprecated.
Check the glib version before call it. Change-Id: Id7ce4e1d59b611844920d72c7901361361a4572e
-rw-r--r--src/main.c2
-rw-r--r--util_liveinfo/src/liveinfo.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 6e3e298..18fa179 100644
--- a/src/main.c
+++ b/src/main.c
@@ -338,7 +338,9 @@ int main(int argc, char *argv[])
return -EFAULT;
}
+#if (GLIB_MAJOR_VERSION <= 2 && GLIB_MINOR_VERSION < 36)
g_type_init();
+#endif
/*!
* \note
diff --git a/util_liveinfo/src/liveinfo.c b/util_liveinfo/src/liveinfo.c
index 0e38a7c..9ca53b3 100644
--- a/util_liveinfo/src/liveinfo.c
+++ b/util_liveinfo/src/liveinfo.c
@@ -1764,7 +1764,10 @@ int main(int argc, char *argv[])
} while (c != -1);
ecore_init();
+
+#if (GLIB_MAJOR_VERSION <= 2 && GLIB_MINOR_VERSION < 36)
g_type_init();
+#endif
com_core_add_event_callback(CONNECTOR_DISCONNECTED, disconnected_cb, NULL);
com_core_add_event_callback(CONNECTOR_CONNECTED, connected_cb, NULL);