1
From 6f4e66f87ccf10d8dff6b764ece0ad33b2191b63 Mon Sep 17 00:00:00 2001
2
From: Martin Pitt <martin.pitt@ubuntu.com>
3
Date: Tue, 3 Jan 2012 14:59:08 +0100
4
Subject: [PATCH] Drop obsolete g_thread_init()
6
Since version 2.2 g_type_init() initializes also the thread
7
system so g_thread_init() is not required anymore. It is deprecated since glib
10
Bump glib requirement accordingly.
12
https://bugzilla.gnome.org/show_bug.cgi?id=650061
15
examples/continuous-twitter.c | 1 -
16
examples/get-fireeagle-location.c | 1 -
17
examples/get-flickr-favorites.c | 1 -
18
examples/lastfm-shout.c | 1 -
19
examples/post-twitter.c | 1 -
20
examples/test-raw.c | 1 -
21
examples/test-xml.c | 1 -
22
tests/custom-serialize.c | 1 -
25
tests/oauth-async.c | 1 -
28
tests/proxy-continuous.c | 1 -
30
tests/threaded.c | 1 -
32
18 files changed, 1 insertions(+), 18 deletions(-)
34
Index: librest-0.7.12/examples/continuous-twitter.c
35
===================================================================
36
--- librest-0.7.12.orig/examples/continuous-twitter.c 2012-05-27 21:38:06.167613589 +0800
37
+++ librest-0.7.12/examples/continuous-twitter.c 2012-05-27 21:38:16.607431425 +0800
42
- g_thread_init (NULL);
45
loop = g_main_loop_new (NULL, FALSE);
46
Index: librest-0.7.12/examples/get-fireeagle-location.c
47
===================================================================
48
--- librest-0.7.12.orig/examples/get-fireeagle-location.c 2012-05-27 21:38:06.167613589 +0800
49
+++ librest-0.7.12/examples/get-fireeagle-location.c 2012-05-27 21:38:16.607431425 +0800
51
RestXmlParser *parser;
52
RestXmlNode *root, *node;
54
- g_thread_init (NULL);
57
/* Create the proxy */
58
Index: librest-0.7.12/examples/get-flickr-favorites.c
59
===================================================================
60
--- librest-0.7.12.orig/examples/get-flickr-favorites.c 2012-05-27 21:38:06.167613589 +0800
61
+++ librest-0.7.12/examples/get-flickr-favorites.c 2012-05-27 21:38:16.611431356 +0800
66
- g_thread_init (NULL);
69
proxy = flickr_proxy_new ("cf4e02fc57240a9b07346ad26e291080", "cdfa2329cb206e50");
70
Index: librest-0.7.12/examples/lastfm-shout.c
71
===================================================================
72
--- librest-0.7.12.orig/examples/lastfm-shout.c 2012-05-27 21:38:06.167613589 +0800
73
+++ librest-0.7.12/examples/lastfm-shout.c 2012-05-27 21:38:16.611431356 +0800
78
- g_thread_init (NULL);
81
context = g_option_context_new ("- send a shout to a Last.fm user");
82
Index: librest-0.7.12/examples/post-twitter.c
83
===================================================================
84
--- librest-0.7.12.orig/examples/post-twitter.c 2012-05-27 21:38:06.167613589 +0800
85
+++ librest-0.7.12/examples/post-twitter.c 2012-05-27 21:38:16.611431356 +0800
90
- g_thread_init (NULL);
94
Index: librest-0.7.12/examples/test-raw.c
95
===================================================================
96
--- librest-0.7.12.orig/examples/test-raw.c 2012-05-27 21:38:06.167613589 +0800
97
+++ librest-0.7.12/examples/test-raw.c 2012-05-27 21:38:16.611431356 +0800
102
- g_thread_init (NULL);
104
loop = g_main_loop_new (NULL, FALSE);
106
Index: librest-0.7.12/examples/test-xml.c
107
===================================================================
108
--- librest-0.7.12.orig/examples/test-xml.c 2012-05-27 21:38:06.167613589 +0800
109
+++ librest-0.7.12/examples/test-xml.c 2012-05-27 21:38:16.611431356 +0800
114
- g_thread_init (NULL);
116
loop = g_main_loop_new (NULL, FALSE);
118
Index: librest-0.7.12/tests/custom-serialize.c
119
===================================================================
120
--- librest-0.7.12.orig/tests/custom-serialize.c 2012-05-27 21:38:06.167613589 +0800
121
+++ librest-0.7.12/tests/custom-serialize.c 2012-05-27 21:38:16.611431356 +0800
126
- g_thread_init (NULL);
129
session = soup_session_sync_new ();
130
Index: librest-0.7.12/tests/flickr.c
131
===================================================================
132
--- librest-0.7.12.orig/tests/flickr.c 2012-05-27 21:38:06.167613589 +0800
133
+++ librest-0.7.12/tests/flickr.c 2012-05-27 21:38:16.611431356 +0800
135
RestXmlParser *parser;
136
RestXmlNode *root, *node;
138
- g_thread_init (NULL);
141
/* Create the proxy */
142
Index: librest-0.7.12/tests/lastfm.c
143
===================================================================
144
--- librest-0.7.12.orig/tests/lastfm.c 2012-05-27 21:38:06.167613589 +0800
145
+++ librest-0.7.12/tests/lastfm.c 2012-05-27 21:38:16.611431356 +0800
147
RestXmlParser *parser;
148
RestXmlNode *root, *u_node, *node;
150
- g_thread_init (NULL);
153
/* Create the proxy */
154
Index: librest-0.7.12/tests/oauth-async.c
155
===================================================================
156
--- librest-0.7.12.orig/tests/oauth-async.c 2012-05-27 21:38:06.167613589 +0800
157
+++ librest-0.7.12/tests/oauth-async.c 2012-05-27 21:38:16.611431356 +0800
160
GError *error = NULL;
162
- g_thread_init (NULL);
165
/* Install a timeout so that we don't hang or infinite loop */
166
Index: librest-0.7.12/tests/oauth.c
167
===================================================================
168
--- librest-0.7.12.orig/tests/oauth.c 2012-05-27 21:38:06.167613589 +0800
169
+++ librest-0.7.12/tests/oauth.c 2012-05-27 21:38:16.611431356 +0800
172
GError *error = NULL;
174
- g_thread_init (NULL);
177
/* Create the proxy */
178
Index: librest-0.7.12/tests/oauth2.c
179
===================================================================
180
--- librest-0.7.12.orig/tests/oauth2.c 2012-05-27 21:38:06.167613589 +0800
181
+++ librest-0.7.12/tests/oauth2.c 2012-05-27 21:38:16.611431356 +0800
184
main (int argc, char **argv)
186
- g_thread_init (NULL);
189
test_extract_token ();
190
Index: librest-0.7.12/tests/proxy-continuous.c
191
===================================================================
192
--- librest-0.7.12.orig/tests/proxy-continuous.c 2012-05-27 21:38:06.167613589 +0800
193
+++ librest-0.7.12/tests/proxy-continuous.c 2012-05-27 21:38:16.611431356 +0800
198
- g_thread_init (NULL);
200
loop = g_main_loop_new (NULL, FALSE);
202
Index: librest-0.7.12/tests/proxy.c
203
===================================================================
204
--- librest-0.7.12.orig/tests/proxy.c 2012-05-27 21:38:06.167613589 +0800
205
+++ librest-0.7.12/tests/proxy.c 2012-05-27 21:38:16.611431356 +0800
210
- g_thread_init (NULL);
213
session = soup_session_async_new ();
214
Index: librest-0.7.12/tests/threaded.c
215
===================================================================
216
--- librest-0.7.12.orig/tests/threaded.c 2012-05-27 21:38:06.167613589 +0800
217
+++ librest-0.7.12/tests/threaded.c 2012-05-27 21:38:16.611431356 +0800
222
- g_thread_init (NULL);
225
session = soup_session_sync_new ();
226
Index: librest-0.7.12/tests/xml.c
227
===================================================================
228
--- librest-0.7.12.orig/tests/xml.c 2012-05-27 21:38:06.167613589 +0800
229
+++ librest-0.7.12/tests/xml.c 2012-05-27 21:38:16.611431356 +0800
231
RestXmlNode *root, *node;
234
- g_thread_init (NULL);
237
parser = rest_xml_parser_new ();