1 |
pacho 14/07/01 15:38:30 |
2 |
|
3 |
Added: abiword-3.0.0-fix-redraw.patch |
4 |
abiword-3.0.0-bison30.patch |
5 |
abiword-3.0.0-fix-shortcut.patch |
6 |
abiword-3.0.0-pdf-crash.patch |
7 |
abiword-3.0.0-boost54.patch |
8 |
Log: |
9 |
Apply some Ubuntu patches fixing some bugs like crash when saving as PDF (#515990 by cowhead) |
10 |
|
11 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
12 |
|
13 |
Revision Changes Path |
14 |
1.1 app-office/abiword/files/abiword-3.0.0-fix-redraw.patch |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/abiword/files/abiword-3.0.0-fix-redraw.patch?rev=1.1&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/abiword/files/abiword-3.0.0-fix-redraw.patch?rev=1.1&content-type=text/plain |
18 |
|
19 |
Index: abiword-3.0.0-fix-redraw.patch |
20 |
=================================================================== |
21 |
From c260e8d107a8708d57a60fbc18ef71ffeb88fcf1 Mon Sep 17 00:00:00 2001 |
22 |
From: Hubert Figuiere <hub@××××××××.net> |
23 |
Date: Sat, 22 Feb 2014 18:42:56 +0000 |
24 |
Subject: [PATCH] Bug 13582 - Fix redraw region in custom widget. |
25 |
|
26 |
Cherry-picked from trunk@33870 and reworked for 3.0.x |
27 |
|
28 |
git-svn-id: svn+ssh://svn.abisource.com/svnroot/abiword/branches/ABI-3-0-0-STABLE@33871 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6 |
29 |
--- |
30 |
src/af/gr/gtk/gr_UnixCairoGraphics.cpp | 2 +- |
31 |
src/af/xap/gtk/xap_UnixCustomWidget.cpp | 10 ++++++---- |
32 |
2 files changed, 7 insertions(+), 5 deletions(-) |
33 |
|
34 |
diff --git a/src/af/gr/gtk/gr_UnixCairoGraphics.cpp b/src/af/gr/gtk/gr_UnixCairoGraphics.cpp |
35 |
index 4c8d23c..15d7a7d 100644 |
36 |
--- a/src/af/gr/gtk/gr_UnixCairoGraphics.cpp |
37 |
+++ b/src/af/gr/gtk/gr_UnixCairoGraphics.cpp |
38 |
@@ -520,7 +520,7 @@ void GR_UnixCairoGraphics::_beginPaint() |
39 |
{ |
40 |
UT_ASSERT(ev->type == GDK_EXPOSE || ev->type == GDK_DAMAGE); |
41 |
if (ev->type == GDK_EXPOSE || ev->type == GDK_DAMAGE) |
42 |
- UT_ASSERT(ev->expose.window == m_pWin); |
43 |
+ UT_ASSERT(ev->expose.window == m_pWin || ev->expose.window == gdk_window_get_effective_parent (m_pWin)); |
44 |
} |
45 |
} |
46 |
#endif |
47 |
diff --git a/src/af/xap/gtk/xap_UnixCustomWidget.cpp b/src/af/xap/gtk/xap_UnixCustomWidget.cpp |
48 |
index b0b7015..5150afe 100644 |
49 |
--- a/src/af/xap/gtk/xap_UnixCustomWidget.cpp |
50 |
+++ b/src/af/xap/gtk/xap_UnixCustomWidget.cpp |
51 |
@@ -45,16 +45,18 @@ void XAP_UnixCustomWidget::_fe::expose(XAP_UnixCustomWidget *self, GdkEventExpos |
52 |
#endif |
53 |
{ |
54 |
#if GTK_CHECK_VERSION(3,0,0) |
55 |
- GdkEventExpose *ev = reinterpret_cast<GdkEventExpose *>(gtk_get_current_event()); |
56 |
-#endif |
57 |
+ self->m_cr = cr; |
58 |
+ double x1, y1, x2, y2; |
59 |
+ cairo_clip_extents(cr, &x1, &y1, &x2, &y2); |
60 |
+ |
61 |
+ UT_Rect r(x1, y1, x2 - x1, y2 - y1); |
62 |
+#else |
63 |
UT_Rect r( |
64 |
ev->area.x, |
65 |
ev->area.y, |
66 |
ev->area.width, |
67 |
ev->area.height |
68 |
); |
69 |
-#if GTK_CHECK_VERSION(3,0,0) |
70 |
- self->m_cr = cr; |
71 |
#endif |
72 |
self->draw(&r); |
73 |
} |
74 |
-- |
75 |
1.9.1 |
76 |
|
77 |
|
78 |
|
79 |
|
80 |
1.1 app-office/abiword/files/abiword-3.0.0-bison30.patch |
81 |
|
82 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/abiword/files/abiword-3.0.0-bison30.patch?rev=1.1&view=markup |
83 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/abiword/files/abiword-3.0.0-bison30.patch?rev=1.1&content-type=text/plain |
84 |
|
85 |
Index: abiword-3.0.0-bison30.patch |
86 |
=================================================================== |
87 |
Last-update: 2014-02-02 |
88 |
Author: Dimitri John Ledkov <xnox@××××××.com> |
89 |
Description: Cherrypick patch from NetBSD, to fix FTBFS with bison 3.0. |
90 |
|
91 |
--- a/plugins/mathview/itex2mml/itex2MML.y |
92 |
+++ b/plugins/mathview/itex2mml/itex2MML.y |
93 |
@@ -1,8 +1,10 @@ |
94 |
/* itex2MML 1.4.8 |
95 |
* itex2MML.y last modified 9/21/2011 |
96 |
*/ |
97 |
|
98 |
+%parse-param {char **ret_str} |
99 |
+ |
100 |
%{ |
101 |
#include <stdio.h> |
102 |
#include <string.h> |
103 |
#include <stdlib.h> |
104 |
@@ -26,9 +28,9 @@ |
105 |
} |
106 |
|
107 |
void (*itex2MML_error) (const char * msg) = itex2MML_default_error; |
108 |
|
109 |
- static void yyerror (char * s) |
110 |
+ static void yyerror (char **ret_str, char * s) |
111 |
{ |
112 |
char * msg = itex2MML_copy3 (s, " at token ", yytext); |
113 |
if (itex2MML_error) |
114 |
(*itex2MML_error) (msg); |
115 |
|
116 |
|
117 |
|
118 |
1.1 app-office/abiword/files/abiword-3.0.0-fix-shortcut.patch |
119 |
|
120 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/abiword/files/abiword-3.0.0-fix-shortcut.patch?rev=1.1&view=markup |
121 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/abiword/files/abiword-3.0.0-fix-shortcut.patch?rev=1.1&content-type=text/plain |
122 |
|
123 |
Index: abiword-3.0.0-fix-shortcut.patch |
124 |
=================================================================== |
125 |
Description: Upstream-derived patch to fix SHIFT-CTRL-CURSOR_KEY shortcut combos. |
126 |
Origin: upstream, http://bugzilla.abisource.com/attachment.cgi?id=5695&action=view |
127 |
Bug: http://bugzilla.abisource.com/show_bug.cgi?id=13596 |
128 |
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1315949 |
129 |
|
130 |
Index: b/src/af/ev/gtk/ev_UnixKeyboard.cpp |
131 |
=================================================================== |
132 |
--- a/src/af/ev/gtk/ev_UnixKeyboard.cpp |
133 |
+++ b/src/af/ev/gtk/ev_UnixKeyboard.cpp |
134 |
@@ -87,17 +87,20 @@ |
135 |
{ |
136 |
state |= EV_EMS_CONTROL; |
137 |
|
138 |
- // Gdk does us the favour of working out a translated keyvalue for us, |
139 |
- // but with the Ctrl keys, we do not want that -- see bug 9545 |
140 |
- Display * display = GDK_DISPLAY_XDISPLAY(gdk_window_get_display(e->window)); |
141 |
- KeySym sym = XkbKeycodeToKeysym(display, |
142 |
- e->hardware_keycode, |
143 |
- e->state & GDK_SHIFT_MASK ? 1 : 0, 0); |
144 |
- xxx_UT_DEBUGMSG(("ev_UnixKeyboard::keyPressEvent: keyval %d, hardware_keycode %d\n" |
145 |
- " sym: 0x%x\n", |
146 |
- e->keyval, e->hardware_keycode, sym)); |
147 |
+ if (!s_isVirtualKeyCode(charData)) |
148 |
+ { |
149 |
+ // Gdk does us the favour of working out a translated keyvalue for us, |
150 |
+ // but with the Ctrl keys, we do not want that -- see bug 9545 |
151 |
+ Display * display = GDK_DISPLAY_XDISPLAY(gdk_window_get_display(e->window)); |
152 |
+ KeySym sym = XkbKeycodeToKeysym(display, |
153 |
+ e->hardware_keycode, |
154 |
+ e->state & GDK_SHIFT_MASK ? 1 : 0, 0); |
155 |
+ xxx_UT_DEBUGMSG(("ev_UnixKeyboard::keyPressEvent: keyval %d, hardware_keycode %d\n" |
156 |
+ " sym: 0x%x\n", |
157 |
+ e->keyval, e->hardware_keycode, sym)); |
158 |
|
159 |
- charData = sym; |
160 |
+ charData = sym; |
161 |
+ } |
162 |
} |
163 |
if (e->state & (s_alt_mask)) |
164 |
state |= EV_EMS_ALT; |
165 |
|
166 |
|
167 |
|
168 |
1.1 app-office/abiword/files/abiword-3.0.0-pdf-crash.patch |
169 |
|
170 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/abiword/files/abiword-3.0.0-pdf-crash.patch?rev=1.1&view=markup |
171 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/abiword/files/abiword-3.0.0-pdf-crash.patch?rev=1.1&content-type=text/plain |
172 |
|
173 |
Index: abiword-3.0.0-pdf-crash.patch |
174 |
=================================================================== |
175 |
From 128dfbc82cbd5c2c1bb6d0cde238a933639fba50 Mon Sep 17 00:00:00 2001 |
176 |
From: Hubert Figuiere <hub@××××××××.net> |
177 |
Date: Sat, 28 Dec 2013 02:05:23 +0000 |
178 |
Subject: [PATCH] Bug 13586 - We don't have a frame when printing. |
179 |
|
180 |
UPLIFTED from trunk |
181 |
|
182 |
git-svn-id: svn+ssh://svn.abisource.com/svnroot/abiword/branches/ABI-3-0-0-STABLE@33663 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6 |
183 |
--- |
184 |
src/text/fmt/gtk/fv_UnixSelectionHandles.cpp | 44 +++++++++++++++++++++------- |
185 |
1 file changed, 33 insertions(+), 11 deletions(-) |
186 |
|
187 |
diff --git a/src/text/fmt/gtk/fv_UnixSelectionHandles.cpp b/src/text/fmt/gtk/fv_UnixSelectionHandles.cpp |
188 |
index a3a3347..8bc187c 100644 |
189 |
--- a/src/text/fmt/gtk/fv_UnixSelectionHandles.cpp |
190 |
+++ b/src/text/fmt/gtk/fv_UnixSelectionHandles.cpp |
191 |
@@ -36,42 +36,60 @@ static void handle_dragged_cb (FvTextHandle *handle, |
192 |
|
193 |
mode = _fv_text_handle_get_mode (handle); |
194 |
|
195 |
- if (pos == FV_TEXT_HANDLE_POSITION_SELECTION_START) |
196 |
+ if (pos == FV_TEXT_HANDLE_POSITION_SELECTION_START) { |
197 |
handles->updateSelectionStart ((UT_sint32)x, (UT_sint32)y); |
198 |
+ } |
199 |
else { |
200 |
- if (mode == FV_TEXT_HANDLE_MODE_SELECTION) |
201 |
+ if (mode == FV_TEXT_HANDLE_MODE_SELECTION) { |
202 |
handles->updateSelectionEnd ((UT_sint32)x, (UT_sint32)y); |
203 |
- else |
204 |
+ } |
205 |
+ else { |
206 |
handles->updateCursor((UT_sint32)x, (UT_sint32)y); |
207 |
+ } |
208 |
} |
209 |
} |
210 |
|
211 |
FV_UnixSelectionHandles::FV_UnixSelectionHandles(FV_View *view, FV_Selection selection) |
212 |
: FV_SelectionHandles (view, selection) |
213 |
+ , m_text_handle(NULL) |
214 |
{ |
215 |
XAP_Frame * pFrame = static_cast<XAP_Frame*>(m_pView->getParentData()); |
216 |
- XAP_UnixFrameImpl * pFrameImpl =static_cast<XAP_UnixFrameImpl *>( pFrame->getFrameImpl()); |
217 |
- GtkWidget * pWidget = pFrameImpl->getViewWidget(); |
218 |
- |
219 |
- m_text_handle = _fv_text_handle_new (pWidget); |
220 |
- _fv_text_handle_set_relative_to (m_text_handle, |
221 |
- gtk_widget_get_window (pWidget)); |
222 |
- g_signal_connect (m_text_handle, "handle-dragged", |
223 |
- G_CALLBACK(handle_dragged_cb), this); |
224 |
+ // When saving to PDF (and printing) we don't have a frame |
225 |
+ // See bug 13586 |
226 |
+ if (pFrame) { |
227 |
+ XAP_UnixFrameImpl * pFrameImpl = static_cast<XAP_UnixFrameImpl *>(pFrame->getFrameImpl()); |
228 |
+ GtkWidget * pWidget = pFrameImpl->getViewWidget(); |
229 |
+ |
230 |
+ m_text_handle = _fv_text_handle_new (pWidget); |
231 |
+ _fv_text_handle_set_relative_to (m_text_handle, |
232 |
+ gtk_widget_get_window (pWidget)); |
233 |
+ g_signal_connect (m_text_handle, "handle-dragged", |
234 |
+ G_CALLBACK(handle_dragged_cb), this); |
235 |
+ } |
236 |
} |
237 |
|
238 |
FV_UnixSelectionHandles::~FV_UnixSelectionHandles() |
239 |
{ |
240 |
+ if(!m_text_handle) { |
241 |
+ return; |
242 |
+ } |
243 |
g_object_unref (m_text_handle); |
244 |
} |
245 |
|
246 |
void FV_UnixSelectionHandles::hide() |
247 |
{ |
248 |
+ if(!m_text_handle) { |
249 |
+ return; |
250 |
+ } |
251 |
_fv_text_handle_set_mode (m_text_handle, FV_TEXT_HANDLE_MODE_NONE); |
252 |
} |
253 |
|
254 |
void FV_UnixSelectionHandles::setCursorCoords(UT_sint32 x, UT_sint32 y, UT_uint32 height, bool visible) |
255 |
{ |
256 |
+ if(!m_text_handle) { |
257 |
+ return; |
258 |
+ } |
259 |
+ |
260 |
GdkRectangle rect; |
261 |
|
262 |
_fv_text_handle_set_mode(m_text_handle, FV_TEXT_HANDLE_MODE_CURSOR); |
263 |
@@ -92,6 +110,10 @@ void FV_UnixSelectionHandles::setCursorCoords(UT_sint32 x, UT_sint32 y, UT_uint3 |
264 |
void FV_UnixSelectionHandles::setSelectionCoords(UT_sint32 start_x, UT_sint32 start_y, UT_uint32 start_height, bool start_visible, |
265 |
UT_sint32 end_x, UT_sint32 end_y, UT_uint32 end_height, bool end_visible) |
266 |
{ |
267 |
+ if(!m_text_handle) { |
268 |
+ return; |
269 |
+ } |
270 |
+ |
271 |
GdkRectangle rect; |
272 |
|
273 |
_fv_text_handle_set_mode(m_text_handle, FV_TEXT_HANDLE_MODE_SELECTION); |
274 |
-- |
275 |
1.9.1 |
276 |
|
277 |
|
278 |
|
279 |
|
280 |
1.1 app-office/abiword/files/abiword-3.0.0-boost54.patch |
281 |
|
282 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/abiword/files/abiword-3.0.0-boost54.patch?rev=1.1&view=markup |
283 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/abiword/files/abiword-3.0.0-boost54.patch?rev=1.1&content-type=text/plain |
284 |
|
285 |
Index: abiword-3.0.0-boost54.patch |
286 |
=================================================================== |
287 |
Last-Update: 2014-02-05 |
288 |
Forwarded: yes |
289 |
Author: Dmitry Smirnov <onlyjob@××××××××××.org> |
290 |
Bug-Debian: http://bugs.debian.org/737551 |
291 |
Bug-Abiword: http://bugzilla.abisource.com/13602 |
292 |
Description: fix FTBFS with libboost1.54-dev |
293 |
|
294 |
--- a/plugins/collab/core/sync/xp/SynchronizedQueue.h |
295 |
+++ b/plugins/collab/core/sync/xp/SynchronizedQueue.h |
296 |
@@ -21,8 +21,9 @@ |
297 |
|
298 |
#include <deque> |
299 |
#include <boost/bind.hpp> |
300 |
#include <boost/function.hpp> |
301 |
+#include <boost/noncopyable.hpp> |
302 |
#include <sync/xp/lock.h> |
303 |
#include <sync/xp/Synchronizer.h> |
304 |
|
305 |
class EmptyQueueException {}; |
306 |
--- a/plugins/collab/backends/tcp/xp/Session.h |
307 |
+++ b/plugins/collab/backends/tcp/xp/Session.h |
308 |
@@ -21,8 +21,9 @@ |
309 |
|
310 |
#include <boost/function.hpp> |
311 |
#include <boost/bind.hpp> |
312 |
#include <boost/enable_shared_from_this.hpp> |
313 |
+#include <boost/noncopyable.hpp> |
314 |
#include <deque> |
315 |
#include <sync/xp/lock.h> |
316 |
#include <sync/xp/Synchronizer.h> |