summaryrefslogtreecommitdiff
path: root/chinese/reciteword/files/patch-src_shooting.cpp
blob: ce6a98dbe35be7cdc06d748b15d4a03f0ddae80f (plain) (blame)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
--- src/shooting.cpp.orig	2005-10-06 15:32:10.000000000 +0800
+++ src/shooting.cpp	2007-07-30 16:38:45.000000000 +0800
@@ -93,7 +93,7 @@
 void
 tLabelItem::create (GtkWidget * pfixed, gint x, gint y, gint w, gint h,
 		    GdkPixmap * pix_1, GdkPixmap * pix_2, gchar * str,
-		    void (*func1) (gint), void (*func2) (gint), gint data)
+		    void (*func1) (glong), void (*func2) (glong), gint data)
 {
 	init ();
 
@@ -512,7 +512,7 @@
 draw_right_pixmap (gpointer data)
 {
 	CShooting *parent = g_pReciteWord->shooting;
-	gint index = (gint) data;
+	glong index = (glong) data;
 	GtkWidget *right_pixmap =
 		parent->right_pixmap[parent->
 				     tested_wordlist_item[parent->
@@ -563,7 +563,7 @@
 draw_shooting (gpointer data)
 {
 	CShooting *parent = g_pReciteWord->shooting;
-	gint index = (gint) data;
+	glong index = (glong) data;
 	GtkWidget *shoot_pixmap = parent->shoot_pixmap[index];
 	GtkWidget *wordlist_head = parent->wordlist_head[index].event_box;
 
@@ -620,7 +620,7 @@
 }
 
 static void
-draw_shoot_pixmap (gint type, gint index)
+draw_shoot_pixmap (gint type, glong index)
 {
 	CShooting *parent = g_pReciteWord->shooting;
 	parent->timer_type = type;
@@ -664,7 +664,7 @@
 }
 
 static void
-on_shooting_wordlistitem_clicked (gint index)
+on_shooting_wordlistitem_clicked (glong index)
 {
 	CShooting *parent = g_pReciteWord->shooting;
 
@@ -697,7 +697,7 @@
 }
 
 static void
-on_shooting_wordlistitem_active (gint index)
+on_shooting_wordlistitem_active (glong index)
 {
 	if (g_pReciteWord->shooting->wordlist_item[g_pReciteWord->shooting->active_wordlist_item].active)
 	{
@@ -733,7 +733,7 @@
 static void
 on_shooting_wordlisthead_button_press (gpointer data)
 {
-	on_shooting_wordlistitem_clicked ((gint) data);
+	on_shooting_wordlistitem_clicked ((glong) data);
 }
 
 
@@ -743,7 +743,7 @@
 {
 	if (g_pReciteWord->shooting->shoot_pixmap_timer)	//when mouse button press and release,the enter_notify and leave_notift event will happen too.
 		return true;
-	gint index = (gint) func_data;
+	glong index = (glong) func_data;
 	if (!g_pReciteWord->shooting->wordlist_head[index].enable)
 		return true;
 	on_shooting_wordlistitem_active (index);
@@ -758,7 +758,7 @@
 {
 	if (g_pReciteWord->shooting->shoot_pixmap_timer)
 		return true;
-	gint index = (gint) func_data;
+	glong index = (glong) func_data;
 	if (!g_pReciteWord->shooting->wordlist_head[index].enable)
 		return true;
 	g_pReciteWord->shooting->wordlist_item[index].active = FALSE;
@@ -999,7 +999,7 @@
 				 Skin->shooting.wordlist_head[3].p[0], NULL, NULL,
 				 on_shooting_wordlisthead_button_press,
 				 GINT_TO_POINTER (3));
-	int i;
+	glong i;
 	for (i = 0; i < 4; i++)
 	{
 		g_signal_connect (G_OBJECT (wordlist_head[i].event_box),
@@ -1014,7 +1014,7 @@
 				  (void *) i);
 	}
 /*
-	int i;
+	glong i;
 	GtkWidget *pixmap_widget;
 	for (i=0;i<4;i++)
 	{