Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 5191 Details for
Bug 9423
kdebase 3.0.x does not like new Xfree 4.2.1 (solution found)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
kde-xft1.1-fix.patch
kde-xft1.1-fix.patch (text/plain), 3.06 KB, created by
Martin Schlemmer (RETIRED)
on 2002-10-29 17:14:24 UTC
(
hide
)
Description:
kde-xft1.1-fix.patch
Filename:
MIME Type:
Creator:
Martin Schlemmer (RETIRED)
Created:
2002-10-29 17:14:24 UTC
Size:
3.06 KB
patch
obsolete
>--- kdebase-3.0.4/kcontrol/kfontinst/kfontinst/XftConfig.cpp.orig 2002-10-30 00:53:18.000000000 +0200 >+++ kdebase-3.0.4/kcontrol/kfontinst/kfontinst/XftConfig.cpp 2002-10-30 01:01:49.000000000 +0200 >@@ -276,7 +276,7 @@ > } > case XftTypeString: > str+="\""; >- str+=test->value.u.s; >+ str+=(QCString &)test->value.u.s; > str+="\""; > break; > case XftTypeBool: >@@ -554,7 +554,7 @@ > XftValue value; > CXftConfig::TEntry *entry=new CXftConfig::TEntry; > >- value.u.s=sval; >+ (char *)value.u.s=sval; > value.type=XftTypeString; > entry->test=XftTestCreate(XftQualAny, "family", XftOpEqual, value); > >@@ -780,7 +780,7 @@ > > for(entry=itsList.first(); entry; entry=itsList.next()) > if(entry->test && 0==CMisc::stricmp(entry->test->field, "family") && XftTypeString==entry->test->value.type && >- 0==CMisc::stricmp(entry->test->value.u.s, family.latin1()) && entry->edit && >+ 0==CMisc::stricmp((char *)entry->test->value.u.s, family.latin1()) && entry->edit && > 0==CMisc::stricmp(entry->edit->field, field) && XftOpAssign==entry->edit->op && entry->edit->expr) > break; > >@@ -798,7 +798,7 @@ > free(test->field); > > if(XftTypeString==test->value.type) >- free(test->value.u.s); >+ free((void *)test->value.u.s); > } > } > >--- kdebase-3.0.4/kcontrol/kfontinst/kfontinst/XftConfigEditor.cpp.orig 2002-10-30 01:03:25.000000000 +0200 >+++ kdebase-3.0.4/kcontrol/kfontinst/kfontinst/XftConfigEditor.cpp 2002-10-30 01:07:27.000000000 +0200 >@@ -469,7 +469,7 @@ > break; > case XftTypeString: > expr->op=XftOpString; >- expr->u.sval=val.u.s; >+ expr->u.sval=(char *)val.u.s; > break; > case XftTypeBool: > default: >@@ -655,12 +655,12 @@ > if("foundry"==field || "family"==field || "encoding"==field || "style"==field) > { > val.type=XftTypeString; >- val.u.s=(char *)malloc(edit ? strVal.length()+1 : strVal.length()-1); >+ (char *)val.u.s=(char *)malloc(edit ? strVal.length()+1 : strVal.length()-1); > > if(edit) >- strcpy(val.u.s, strVal.local8Bit()); >+ strcpy((char *)val.u.s, strVal.local8Bit()); > else >- strcpy(val.u.s, strVal.mid(1, strVal.length()-2).local8Bit()); // Need to remove quotes from each end of the string... >+ strcpy((char *)val.u.s, strVal.mid(1, strVal.length()-2).local8Bit()); // Need to remove quotes from each end of the string... > } > else if("spacing"==field) > { >@@ -747,8 +747,8 @@ > { > // Not sure about this... > val.type=XftTypeString; >- val.u.s=(char *)malloc(strVal.length()+1); >- strcpy(val.u.s, strVal.local8Bit()); >+ (char *)val.u.s=(char *)malloc(strVal.length()+1); >+ strcpy((char *)val.u.s, strVal.local8Bit()); > } > else if("rgba"==field) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 9423
:
4981
|
4982
|
4983
|
4984
|
5007
|
5188
|
5189
|
5190
|
5191
|
6724