1 |
voyageur 12/08/29 10:59:23 |
2 |
|
3 |
Added: textedit-0.95_pre20100427-gcc47.patch |
4 |
Log: |
5 |
Fix compilation with gcc-4.7, bug #427374 |
6 |
|
7 |
(Portage version: 2.2.0_alpha123/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 gnustep-apps/textedit/files/textedit-0.95_pre20100427-gcc47.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnustep-apps/textedit/files/textedit-0.95_pre20100427-gcc47.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnustep-apps/textedit/files/textedit-0.95_pre20100427-gcc47.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: textedit-0.95_pre20100427-gcc47.patch |
16 |
=================================================================== |
17 |
--- textedit.app-4.0+20061029.orig/Document.m |
18 |
+++ textedit.app-4.0+20061029/Document.m |
19 |
@@ -1361,13 +1361,13 @@ validateToggleItem (NSMenuItem *aCell, B |
20 |
{ |
21 |
SEL action = [aCell action]; |
22 |
#ifdef GNUSTEP |
23 |
- const char *sel_name = sel_get_name (action); |
24 |
+ const char *sel_name = sel_getName (action); |
25 |
|
26 |
- if (!strcmp (sel_name, sel_get_name (@selector (toggleRich:)))) { |
27 |
+ if (!strcmp (sel_name, sel_getName (@selector (toggleRich:)))) { |
28 |
validateToggleItem (aCell, [self isRichText], _(@"&Make Plain Text"), _(@"&Make Rich Text")); |
29 |
- } else if (!strcmp (sel_name, sel_get_name (@selector (togglePageBreaks:)))) { |
30 |
+ } else if (!strcmp (sel_name, sel_getName (@selector (togglePageBreaks:)))) { |
31 |
validateToggleItem (aCell, [self hasMultiplePages], _(@"&Wrap to Window"), _(@"&Wrap to Page")); |
32 |
- } else if (!strcmp (sel_name, sel_get_name (@selector (toggleHyphenation:)))) { |
33 |
+ } else if (!strcmp (sel_name, sel_getName (@selector (toggleHyphenation:)))) { |
34 |
if (!hyphenationSupported()) // Disable it |
35 |
return NO; |
36 |
validateToggleItem (aCell, ([self hyphenationFactor] > 0.0), _(@"Disallow &Hyphenation"), _(@"Allow &Hyphenation")); |