summaryrefslogtreecommitdiffstats
path: root/print/lyx15/files/patch-aa
blob: af9207168a483c0bb0351e6ce12f4c1f5887e830 (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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
--- src/LyXView.C.orig	Thu Jul  4 18:26:33 2002
+++ src/LyXView.C	Thu Jul  4 18:28:28 2002
@@ -19,7 +19,7 @@
 
 #include "LyXView.h"
 #include "lyx_main.h"
-#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
+#if (FL_VERSION == 0 && FL_REVISION < 89) || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
 #include "lyxlookup.h"
 #endif
 #include "minibuffer.h"
@@ -214,7 +214,7 @@
 {
 	fl_show_form(form_, place, border, title.c_str());
 	minibuffer->Init();
-#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
+#if (FL_VERSION == 0 && FL_REVISION < 89) || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
 	InitLyXLookup(fl_get_display(), form_->window);
 #endif
 }
--- src/WorkArea.C.orig2	Thu Jul  4 18:33:22 2002
+++ src/WorkArea.C	Thu Jul  4 18:36:02 2002
@@ -24,7 +24,7 @@
 #include "LyXView.h"
 #include "lyxfunc.h"
 
-#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
+#if (FL_VERSION == 0 && FL_REVISION < 89) || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
 #include "lyxlookup.h"
 #endif
 
@@ -323,7 +323,7 @@
 				      ev->xbutton.y - ob->y,
 				      ev->xbutton.button);
 		break;
-#if FL_REVISION < 89
+#if (FL_VERSION == 0 && FL_REVISION < 89)
 	case FL_MOUSE:
 #else
 	case FL_DRAG:
@@ -339,7 +339,7 @@
 					     ev->xbutton.state);
 		}
 		break;
-#if FL_REVISION < 89
+#if (FL_VERSION == 0 && FL_REVISION < 89)
 	case FL_KEYBOARD:
 #else
 	case FL_KEYPRESS:
@@ -350,7 +350,7 @@
 		KeySym keysym = 0;
 		char dummy[1];
 		XKeyEvent * xke = reinterpret_cast<XKeyEvent *>(ev);
-#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
+#if (FL_VERSION == 0 && FL_REVISION < 89) || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
 		// XForms < 0.89.5 does not have compose support
 		// so we are using our own compose support
 		LyXLookupString(ev, dummy, 1, &keysym);
@@ -369,7 +369,7 @@
 			       << keysym << "]" << endl;
 		}
 
-#if FL_REVISION < 89
+#if (FL_VERSION == 0 && FL_REVISION < 89)
 		if (keysym == NoSymbol) {
 			lyxerr[Debug::KEY]
 				<< "Empty kdb action (probably composing)"
@@ -446,7 +446,7 @@
 	}
 	break;
 
-#if FL_REVISION >= 89
+#if (FL_VERSION > 0 || FL_REVISION >= 89)
 	case FL_KEYRELEASE:
 		lyxerr << "Workarea event: KEYRELEASE" << endl;
 		break;
--- src/lyx_gui.C.orig2	Thu Jul  4 18:36:45 2002
+++ src/lyx_gui.C	Thu Jul  4 18:39:42 2002
@@ -36,7 +36,7 @@
 #include "lyxrc.h"
 #include "gettext.h"
 #include "lyx_gui_misc.h"
-#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
+#if (FL_VERSION == 0 && FL_REVISION < 89) || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
 #include "lyxlookup.h"
 #endif
 #include "bufferlist.h"
@@ -171,7 +171,7 @@
 	delete lyxserver;
 	lyxserver = 0;
 	delete lyxViews;
-#if FL_REVISION < 89 || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
+#if (FL_VERSION == 0 && FL_REVISION < 89) || (FL_REVISION == 89 && FL_FIXLEVEL < 5)
 	CloseLyXLookup();
 #endif
 }
--- src/insets/figinset.C.orig2	Thu Jul  4 18:40:17 2002
+++ src/insets/figinset.C	Thu Jul  4 18:42:08 2002
@@ -933,7 +933,7 @@
 					    tmpfig->inset->form->OkBtn);
 			fl_hide_form(tmpfig->inset->form->Figure);
 		}
-#if FL_REVISION == 89
+#if (FL_VERSION == 0 && FL_REVISION == 89)
 		// CHECK Reactivate this free_form calls
 #else
 		fl_free_form(tmpfig->inset->form->Figure);
@@ -1769,7 +1769,7 @@
 			if (arg == 8) {
 				fl_set_focus_object(form->Figure, form->OkBtn);
 				fl_hide_form(form->Figure);
-#if FL_REVISION == 89
+#if (FL_VERSION == 0 && FL_REVISION == 89)
 				// CHECK Reactivate this free_form calls
 #else
 				fl_free_form(form->Figure);
@@ -1786,7 +1786,7 @@
 	case 9:				/* cancel = restore and close */
 		fl_set_focus_object(form->Figure, form->OkBtn);
 		fl_hide_form(form->Figure);
-#if FL_REVISION == 89
+#if (FL_VERSION == 0 && FL_REVISION == 89)
 		// CHECK Reactivate this free_form calls
 		// Jug, is this still a problem?
 #else
--- src/frontends/kde/GUIRunTime.C.orig	Thu Jul  4 18:43:25 2002
+++ src/frontends/kde/GUIRunTime.C	Thu Jul  4 18:44:57 2002
@@ -26,7 +26,7 @@
 
 // I keep these here so that it will be processed as early in
 // the compilation process as possible.
-#if !defined(FL_REVISION) || FL_REVISION < 88 || FL_VERSION != 0
+#if !defined(FL_REVISION) || (FL_REVISION < 88 && FL_VERSION == 0)
 #error LyX will not compile with this version of XForms.\
        Please get version 0.89.\
        If you want to try to compile anyway, delete this test in src/frontends/kde/GUIRunTime.C.
--- src/frontends/gnome/GUIRunTime.C.orig	Thu Jul  4 18:46:08 2002
+++ src/frontends/gnome/GUIRunTime.C	Thu Jul  4 18:47:23 2002
@@ -25,7 +25,7 @@
 
 // I keep these here so that it will be processed as early in
 // the compilation process as possible.
-#if !defined(FL_REVISION) || FL_REVISION < 88 || FL_VERSION != 0
+#if !defined(FL_REVISION) || (FL_REVISION < 88 && FL_VERSION == 0)
 #error LyX will not compile with this version of XForms.\
        Please get version 0.89.\
        If you want to try to compile anyway, delete this test in src/frontends/gnome/GUIRunTime.C.
--- src/frontends/xforms/GUIRunTime.C.orig	Thu Jul  4 18:47:48 2002
+++ src/frontends/xforms/GUIRunTime.C	Thu Jul  4 18:48:18 2002
@@ -19,7 +19,7 @@
 
 // I keep these here so that it will be processed as early in
 // the compilation process as possible.
-#if !defined(FL_REVISION) || FL_REVISION < 88 || FL_VERSION != 0
+#if !defined(FL_REVISION) || (FL_REVISION < 88 && FL_VERSION == 0)
 #error LyX will not compile with this version of XForms.\
        Please get version 0.89.\
        If you want to try to compile anyway, delete this test in src/frontends/xforms/GUIRunTime.C.
--- src/frontends/xforms/Menubar_pimpl.C.orig	Thu Jul  4 18:49:05 2002
+++ src/frontends/xforms/Menubar_pimpl.C	Thu Jul  4 18:50:18 2002
@@ -219,7 +219,7 @@
 static inline
 string const fixlabel(string const & str)
 {
-#if FL_REVISION < 89
+#if (FL_VERSION == 0 && FL_REVISION < 89)
 	return subst(str, '%', '?');
 #else
 	return subst(str, "%", "%%");
--- src/frontends/xforms/Toolbar_pimpl.C.orig	Thu Jul  4 18:50:40 2002
+++ src/frontends/xforms/Toolbar_pimpl.C	Thu Jul  4 18:52:37 2002
@@ -84,13 +84,13 @@
 	: owner(o), sxpos(x), sypos(y)
 {
 	combox = 0;
-#if FL_REVISION < 89
+#if (FL_VERSION == 0 && FL_REVISION < 89)
 	bubble_timer = 0;
 #endif
 }
 
 
-#if FL_REVISION < 89
+#if (FL_VERSION == 0 && FL_REVISION < 89)
 // timer-cb for bubble-help (Matthias)
 static 
 void BubbleTimerCB(FL_OBJECT *, long data)
@@ -339,7 +339,7 @@
 		fl_addto_form(owner->getForm());
 	}
 
-#if FL_REVISION < 89
+#if (FL_VERSION == 0 && FL_REVISION < 89)
 	// add the time if it don't exist
 	if (bubble_timer == 0)
 		bubble_timer = fl_add_timer(FL_HIDDEN_TIMER,
@@ -383,7 +383,7 @@
 			fl_set_pixmapbutton_focus_outline(obj, 0);
 
 			// Set the tooltip
-#if FL_REVISION >= 89
+#if (FL_VERSION > 0 || FL_REVISION >= 89)
 			string help = _(lyxaction.helpText(item->action));
 			fl_set_object_helper(obj, help.c_str());	
 #else
--- src/frontends/xforms/Toolbar_pimpl.h.orig	Thu Jul  4 18:52:55 2002
+++ src/frontends/xforms/Toolbar_pimpl.h	Thu Jul  4 18:53:40 2002
@@ -93,7 +93,7 @@
 	ToolbarList toollist;
 	///
 	LyXView * owner;
-#if FL_REVISION < 89
+#if (FL_VERSION == 0 && FL_REVISION < 89)
 	///
 	FL_OBJECT * bubble_timer;
 #endif
OpenPOWER on IntegriCloud