[librest] Drop obsolete g_thread_init()
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest] Drop obsolete g_thread_init()
- Date: Sat, 16 Jun 2012 09:36:12 +0000 (UTC)
commit 7ca54a3faae13ae505e521182a8c368fe4c619a9
Author: Martin Pitt <martin pitt ubuntu com>
Date: Tue Jan 3 14:59:08 2012 +0100
Drop obsolete g_thread_init()
Since version 2.2 g_type_init() initializes also the thread
system so g_thread_init() is not required anymore. It is deprecated since glib
2.31.
Bump glib requirement accordingly.
https://bugzilla.gnome.org/show_bug.cgi?id=650061
configure.ac | 2 +-
examples/continuous-twitter.c | 1 -
examples/get-fireeagle-location.c | 1 -
examples/get-flickr-favorites.c | 1 -
examples/lastfm-shout.c | 1 -
examples/post-twitter.c | 1 -
examples/test-raw.c | 1 -
examples/test-xml.c | 1 -
tests/custom-serialize.c | 1 -
tests/flickr.c | 1 -
tests/lastfm.c | 1 -
tests/oauth-async.c | 1 -
tests/oauth.c | 1 -
tests/oauth2.c | 1 -
tests/proxy-continuous.c | 1 -
tests/proxy.c | 1 -
tests/threaded.c | 1 -
tests/xml.c | 1 -
18 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6499fa7..f1105ae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,7 +40,7 @@ AM_PROG_CC_C_O
LT_PREREQ([2.2.6])
LT_INIT([disable-static])
-PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.22)
+PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.24)
PKG_CHECK_MODULES(SOUP, libsoup-2.4)
PKG_CHECK_MODULES(XML, libxml-2.0)
PKG_CHECK_MODULES(GTHREAD, gthread-2.0)
diff --git a/examples/continuous-twitter.c b/examples/continuous-twitter.c
index 6cd6209..712aa07 100644
--- a/examples/continuous-twitter.c
+++ b/examples/continuous-twitter.c
@@ -43,7 +43,6 @@ main (int argc, char **argv)
char pin[256];
GMainLoop *loop;
- g_thread_init (NULL);
g_type_init ();
loop = g_main_loop_new (NULL, FALSE);
diff --git a/examples/get-fireeagle-location.c b/examples/get-fireeagle-location.c
index a06edc3..664f264 100644
--- a/examples/get-fireeagle-location.c
+++ b/examples/get-fireeagle-location.c
@@ -34,7 +34,6 @@ main (int argc, char **argv)
RestXmlParser *parser;
RestXmlNode *root, *node;
- g_thread_init (NULL);
g_type_init ();
/* Create the proxy */
diff --git a/examples/get-flickr-favorites.c b/examples/get-flickr-favorites.c
index 5d4e802..956789b 100644
--- a/examples/get-flickr-favorites.c
+++ b/examples/get-flickr-favorites.c
@@ -106,7 +106,6 @@ main (int argc, char **argv)
char *frob, *url;
const char *token;
- g_thread_init (NULL);
g_type_init ();
proxy = flickr_proxy_new ("cf4e02fc57240a9b07346ad26e291080", "cdfa2329cb206e50");
diff --git a/examples/lastfm-shout.c b/examples/lastfm-shout.c
index b11b716..f1e5f69 100644
--- a/examples/lastfm-shout.c
+++ b/examples/lastfm-shout.c
@@ -87,7 +87,6 @@ main (int argc, char **argv)
{ NULL }
};
- g_thread_init (NULL);
g_type_init ();
context = g_option_context_new ("- send a shout to a Last.fm user");
diff --git a/examples/post-twitter.c b/examples/post-twitter.c
index 04c8d89..3f9cc73 100644
--- a/examples/post-twitter.c
+++ b/examples/post-twitter.c
@@ -31,7 +31,6 @@ main (int argc, char **argv)
GError *error = NULL;
char pin[256];
- g_thread_init (NULL);
g_type_init ();
if (argc != 2) {
diff --git a/examples/test-raw.c b/examples/test-raw.c
index fa6702e..ed8af75 100644
--- a/examples/test-raw.c
+++ b/examples/test-raw.c
@@ -48,7 +48,6 @@ main (gint argc, gchar **argv)
gssize len;
g_type_init ();
- g_thread_init (NULL);
loop = g_main_loop_new (NULL, FALSE);
diff --git a/examples/test-xml.c b/examples/test-xml.c
index f8460db..5e81625 100644
--- a/examples/test-xml.c
+++ b/examples/test-xml.c
@@ -114,7 +114,6 @@ main (gint argc, gchar **argv)
GMainLoop *loop;
g_type_init ();
- g_thread_init (NULL);
loop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/custom-serialize.c b/tests/custom-serialize.c
index f435070..3f8cb80 100644
--- a/tests/custom-serialize.c
+++ b/tests/custom-serialize.c
@@ -124,7 +124,6 @@ main (int argc, char **argv)
int i;
GError *error;
- g_thread_init (NULL);
g_type_init ();
session = soup_session_sync_new ();
diff --git a/tests/flickr.c b/tests/flickr.c
index 3b4c3a1..a34025e 100644
--- a/tests/flickr.c
+++ b/tests/flickr.c
@@ -36,7 +36,6 @@ main (int argc, char **argv)
RestXmlParser *parser;
RestXmlNode *root, *node;
- g_thread_init (NULL);
g_type_init ();
/* Create the proxy */
diff --git a/tests/lastfm.c b/tests/lastfm.c
index e8182b1..ab86575 100644
--- a/tests/lastfm.c
+++ b/tests/lastfm.c
@@ -37,7 +37,6 @@ main (int argc, char **argv)
RestXmlParser *parser;
RestXmlNode *root, *u_node, *node;
- g_thread_init (NULL);
g_type_init ();
/* Create the proxy */
diff --git a/tests/oauth-async.c b/tests/oauth-async.c
index c7f77b8..d6c9a0b 100644
--- a/tests/oauth-async.c
+++ b/tests/oauth-async.c
@@ -113,7 +113,6 @@ main (int argc, char **argv)
OAuthProxy *oproxy;
GError *error = NULL;
- g_thread_init (NULL);
g_type_init ();
/* Install a timeout so that we don't hang or infinite loop */
diff --git a/tests/oauth.c b/tests/oauth.c
index 5757946..eee4fa2 100644
--- a/tests/oauth.c
+++ b/tests/oauth.c
@@ -33,7 +33,6 @@ main (int argc, char **argv)
RestProxyCall *call;
GError *error = NULL;
- g_thread_init (NULL);
g_type_init ();
/* Create the proxy */
diff --git a/tests/oauth2.c b/tests/oauth2.c
index e992b6a..f4819ff 100644
--- a/tests/oauth2.c
+++ b/tests/oauth2.c
@@ -47,7 +47,6 @@ test_extract_token ()
int
main (int argc, char **argv)
{
- g_thread_init (NULL);
g_type_init ();
test_extract_token ();
diff --git a/tests/proxy-continuous.c b/tests/proxy-continuous.c
index 5eb52e0..2141dab 100644
--- a/tests/proxy-continuous.c
+++ b/tests/proxy-continuous.c
@@ -168,7 +168,6 @@ main (int argc, char **argv)
char *url;
RestProxy *proxy;
- g_thread_init (NULL);
g_type_init ();
loop = g_main_loop_new (NULL, FALSE);
diff --git a/tests/proxy.c b/tests/proxy.c
index 2beb146..6e630ff 100644
--- a/tests/proxy.c
+++ b/tests/proxy.c
@@ -283,7 +283,6 @@ main (int argc, char **argv)
char *url;
RestProxy *proxy;
- g_thread_init (NULL);
g_type_init ();
session = soup_session_async_new ();
diff --git a/tests/threaded.c b/tests/threaded.c
index f04a870..a0f5f0e 100644
--- a/tests/threaded.c
+++ b/tests/threaded.c
@@ -85,7 +85,6 @@ main (int argc, char **argv)
char *url;
int i;
- g_thread_init (NULL);
g_type_init ();
session = soup_session_sync_new ();
diff --git a/tests/xml.c b/tests/xml.c
index 4a5f2c0..85af973 100644
--- a/tests/xml.c
+++ b/tests/xml.c
@@ -33,7 +33,6 @@ main (int argc, char **argv)
RestXmlNode *root, *node;
char *xml;
- g_thread_init (NULL);
g_type_init ();
parser = rest_xml_parser_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]