~l3on/ubuntu/precise/gnurobots/fix-ftbfs

« back to all changes in this revision

Viewing changes to debian/patches/02_fix_deprecated_declarations.patch

  • Committer: Leo Iannacone
  • Date: 2012-02-18 23:50:43 UTC
  • Revision ID: l3on@ubuntu.com-20120218235043-sklopiwjy5dbbmai
Fix FTBFS: replacing g_thread_* deprecated functions. 
(LP: #935136).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
6
Forwarded: no
 
7
 
 
8
---
 
9
 src/main.c |    3 +--
 
10
 1 file changed, 1 insertion(+), 2 deletions(-)
 
11
 
 
12
--- gnurobots.orig/src/main.c
 
13
+++ gnurobots/src/main.c
 
14
@@ -295,9 +295,8 @@ void main_prog(void *closure, gint argc,
 
15
                exit_nicely();
 
16
        }
 
17
 
 
18
-       g_thread_init(NULL);
 
19
        gdk_threads_init();
 
20
-       g_thread_create(callback, &loading, FALSE, NULL);
 
21
+       g_thread_new(NULL, callback, &loading);
 
22
 
 
23
        /* ensure the robot is placed properly */
 
24
        MAP_SET_OBJECT(map, G_ROBOT_POSITION_Y(robot),