summaryrefslogtreecommitdiff
path: root/recipes/gpe-beam/gpe-beam-0.2.6/vcard-send.patch
blob: 1a2c66f82125a1c8a593a59f17240ea074974b65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Index: main.c
===================================================================
RCS file: /cvs/gpe/base/gpe-beam/main.c,v
retrieving revision 1.26
diff -u -r1.26 main.c
--- main.c	16 Oct 2004 12:17:51 -0000	1.26
+++ main.c	17 Oct 2004 12:43:16 -0000
@@ -632,7 +632,7 @@
 
 
 static void
-send_vcard (void)
+do_send_vcard (void)
 {
 	if (!radio_is_on)
 		radio_on ();
@@ -651,6 +651,16 @@
 	}
 }
 
+static void
+send_vcard (void)
+{
+	scan_thread =
+		g_thread_create ((GThreadFunc)
+				 do_send_vcard, NULL, FALSE, NULL);
+	if (scan_thread == NULL)
+		gpe_perror_box (_("Unable to start sender."));
+}
+
 
 static gboolean
 get_irstatus (void)