1
Descirption: Fix FTBFS with -Werror=deprecated-declarations.
2
* 'g_thread_init' is deprecated, no longer needed
3
* 'g_thread_create' is deprecated, using 'g_thread_new' instead.
4
Author: Leo Iannacone <l3on@ubuntu.com>
5
Bug-Ubuntu: https://bugs.launchpad.net/+bug/935136
10
1 file changed, 1 insertion(+), 2 deletions(-)
12
--- gnurobots.orig/src/main.c
13
+++ gnurobots/src/main.c
14
@@ -295,9 +295,8 @@ void main_prog(void *closure, gint argc,
18
- g_thread_init(NULL);
20
- g_thread_create(callback, &loading, FALSE, NULL);
21
+ g_thread_new(NULL, callback, &loading);
23
/* ensure the robot is placed properly */
24
MAP_SET_OBJECT(map, G_ROBOT_POSITION_Y(robot),