summaryrefslogtreecommitdiff
path: root/x11/kdebase3/patches
diff options
context:
space:
mode:
authormarkd <markd>2004-06-10 11:51:51 +0000
committermarkd <markd>2004-06-10 11:51:51 +0000
commitcad9bbaac60e0c2a0cce1fbcb0d9ceea44dd9bd1 (patch)
treef0261f7aca7480a3761d6a2bebf4e002c0c553a4 /x11/kdebase3/patches
parent677406828a96b36e0d1120fd1f233a3d293870b5 (diff)
downloadpkgsrc-cad9bbaac60e0c2a0cce1fbcb0d9ceea44dd9bd1.tar.gz
update to kde 3.2.3
changes: * general: More and better usage of icons in different applications * general: Fix link order for IRIX * kappfinder: Fixed menu structure and added icons of several applications * kicker: Don't show unimplemented "About" and "Preferences" for universal sidebar * kicker: Fix two panels on different xinerama screens affecting their placement. * konqueror/kdesktop: Fix konqueror is ignoring umask when creating new files * konqueror/kdesktop: Fix filename suggestion when moving files applies to all subsequent files * konqueror: Made all items in the "Go" menu open in the current Konqueror window * konqueror: Now Ctrl+Enter opens a tab with default background setting * konqueror: Holding Shift while opening a tab inverses the "open tabs ini background" setting * konqueror: "[FMSettings] TabPosition=Bottom" in konquerorrc lets the tabbar appear at bottom * konqueror: Fix konqueror listview rightclick always selects file * konsole: Added the ability to fetch the shell PID per session via DCOP * konsole: Fix terminal size display is covered by kwin size display * konsole: Fix Default rendition should be used when clearing screen areas * konsole: Fix can't change/save Keytabs in the Session Editor * konsole: Fix for crashes on exit. * konsole: Fix transparant background updates * kio_fish: Fixes for copying into a symlink to a folder, and for copying over a directory that already exists * kwin: Keep properly splashscreens above their mainwindows. * kwin: Restore focus when a broken application sets it to nowhere. * kwin: Fix dialog placement problems with Konqueror with Qt-3.2.x . * kwin: Fix problem with minimizing xmms. * kwin: Fix active desktop borders while moving improper initialization. * kwin: Fix Shift+middle mouse button action in Konqueror. * klipper: Fix Klipper reacting to its own clipboard changes. * khotkeys: Mouse gestures are globally disabled by default. * drkonqi: Fix valid backtraces sometimes being reported as useless. * kcontrol: Fix colorsheme file name conflict
Diffstat (limited to 'x11/kdebase3/patches')
-rw-r--r--x11/kdebase3/patches/patch-ae13
-rw-r--r--x11/kdebase3/patches/patch-ah346
-rw-r--r--x11/kdebase3/patches/patch-ai80
3 files changed, 1 insertions, 438 deletions
diff --git a/x11/kdebase3/patches/patch-ae b/x11/kdebase3/patches/patch-ae
index 0fdc7a763d1..83169f2994a 100644
--- a/x11/kdebase3/patches/patch-ae
+++ b/x11/kdebase3/patches/patch-ae
@@ -1,18 +1,7 @@
-$NetBSD: patch-ae,v 1.5 2004/04/20 12:37:34 markd Exp $
+$NetBSD: patch-ae,v 1.6 2004/06/10 11:51:52 markd Exp $
--- kcontrol/krdb/krdb.cpp.orig 2004-04-04 19:42:18.000000000 +1200
+++ kcontrol/krdb/krdb.cpp
-@@ -343,8 +343,8 @@ static void createGtkrc( bool exportColo
- t << " base[NORMAL] = " << color( cg.base() ) << endl;
- t << " base[SELECTED] = " << color( cg.highlight() ) << endl;
- t << " base[INSENSITIVE] = " << color( cg.background() ) << endl;
-- t << " base[ACTIVE] = " << color( cg.base() ) << endl;
-- t << " base[PRELIGHT] = " << color( cg.base() ) << endl;
-+ t << " base[ACTIVE] = " << color( cg.highlight() ) << endl;
-+ t << " base[PRELIGHT] = " << color( cg.highlight() ) << endl;
- t << endl;
- t << " text[NORMAL] = " << color( cg.text() ) << endl;
- t << " text[SELECTED] = " << color( cg.highlightedText() ) << endl;
@@ -384,7 +384,14 @@ static void createGtkrc( bool exportColo
// not every button, checkbox, etc.
t << "style \"MenuItem\"" << endl;
diff --git a/x11/kdebase3/patches/patch-ah b/x11/kdebase3/patches/patch-ah
deleted file mode 100644
index cb739147f83..00000000000
--- a/x11/kdebase3/patches/patch-ah
+++ /dev/null
@@ -1,346 +0,0 @@
-$NetBSD: patch-ah,v 1.5 2004/05/01 07:32:15 tron Exp $
-
-Fixes build with Freetype-2.1.8, see:
-http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp
-
---- kcontrol/kfontinst/lib/FontEngine.cpp 2004/03/30 21:17:35 1.12.2.2
-+++ kcontrol/kfontinst/lib/FontEngine.cpp 2004/04/27 20:30:25 1.12.2.3
-@@ -522,14 +522,33 @@ void CFontEngine::createPreview(int widt
-
- FT_Face face;
- FT_Size size;
-- FTC_Image_Desc font;
-
-+#if KFI_FT_IS_GE(2, 1, 8)
-+ FTC_ScalerRec scaler;
-+ FTC_ImageTypeRec font;
-+#else
-+ FTC_Image_Desc font;
-+#endif
-+
-+#if KFI_FT_IS_GE(2, 1, 8)
-+ font.face_id=getId(itsPath, faceNo);
-+ font.width=font.height=point2Pixel(sizes[s].font);
-+ font.flags=FT_LOAD_DEFAULT;
-+ scaler.face_id=font.face_id;
-+ scaler.width=scaler.height=font.width;
-+ scaler.pixel=1;
-+#else
- font.font.face_id=getId(itsPath, faceNo);
- font.font.pix_width=font.font.pix_height=point2Pixel(sizes[s].font);
- font.image_type=ftc_image_grays;
-+#endif
-
- FT_F26Dot6 startX=sizes[s].offset,
-+#if KFI_FT_IS_GE(2, 1, 8)
-+ startY=sizes[s].offset+font.height,
-+#else
- startY=sizes[s].offset+font.font.pix_height,
-+#endif
- x=startX,
- y=startY;
-
-@@ -570,7 +589,12 @@ void CFontEngine::createPreview(int widt
- y+=startY;
- }
-
-+#if KFI_FT_IS_GE(2, 1, 8)
-+ if(!FTC_Manager_LookupFace(itsFt.cacheManager, scaler.face_id, &face) &&
-+ !FTC_Manager_LookupSize(itsFt.cacheManager, &scaler, &size))
-+#else
- if(!FTC_Manager_Lookup_Size(itsFt.cacheManager, &(font.font), &face, &size))
-+#endif
- {
- int i;
- FT_F26Dot6 stepY=size->metrics.y_ppem /*(size->metrics.height>>6)*/ + sizes[s].offset;
-@@ -585,14 +609,24 @@ void CFontEngine::createPreview(int widt
- unsigned int ch;
-
- for(ch=0; ch<quote.length(); ++ch)
-- if(drawGlyph(pix, font, size, FT_Get_Char_Index(face, quote[ch].unicode()),
-+ if(drawGlyph(pix, font, FT_Get_Char_Index(face, quote[ch].unicode()),
- x, y, width, height, startX, stepY, sizes[s].space))
- break;
- }
-
-+#if KFI_FT_IS_GE(2, 1, 8)
-+ font.width=font.height=point2Pixel((int)(sizes[s].font*0.75));
-+ scaler.width=scaler.height=font.width;
-+#else
- font.font.pix_width=font.font.pix_height=point2Pixel((int)(sizes[s].font*0.75));
-+#endif
-
-- if(y<height && !FTC_Manager_Lookup_Size(itsFt.cacheManager, &(font.font), &face, &size))
-+ if(y<height &&
-+#if KFI_FT_IS_GE(2, 1, 8)
-+ !FTC_Manager_LookupSize(itsFt.cacheManager, &scaler, &size))
-+#else
-+ !FTC_Manager_Lookup_Size(itsFt.cacheManager, &(font.font), &face, &size))
-+#endif
- {
- FT_F26Dot6 stepY=size->metrics.y_ppem /*(size->metrics.height>>6)*/ + sizes[s].offset;
-
-@@ -603,12 +637,15 @@ void CFontEngine::createPreview(int widt
- y+=stepY;
- x=startX;
- }
--
-+#if KFI_FT_IS_GE(2, 1, 8)
-+ y+=font.height;
-+#else
- y+=font.font.pix_height;
-+#endif
- }
-
- for(i=1; i<face->num_glyphs; ++i) // Glyph 0 is the NULL glyph
-- if(drawGlyph(pix, font, size, i, x, y, width, height, startX, stepY))
-+ if(drawGlyph(pix, font, i, x, y, width, height, startX, stepY))
- break;
- }
- }
-@@ -621,14 +658,14 @@ void CFontEngine::createPreview(int widt
- unsigned int ch;
-
- for(ch=0; ch<str.length(); ++ch)
-- if(drawGlyph(pix, font, size, FT_Get_Char_Index(face, str[ch].unicode()),
-+ if(drawGlyph(pix, font, FT_Get_Char_Index(face, str[ch].unicode()),
- x, y, width, height, startX, stepY))
- break;
-
- }
- else
- for(i=1; i<face->num_glyphs; ++i) // Glyph 0 is the NULL glyph
-- if(drawGlyph(pix, font, size, i, x, y, width, height, startX, stepY))
-+ if(drawGlyph(pix, font, i, x, y, width, height, startX, stepY))
- break;
- }
-
-@@ -2858,8 +2895,13 @@ FTC_FaceID CFontEngine::getId(const QStr
- return (FTC_FaceID)p;
- }
-
-+#if KFI_FT_IS_GE(2, 1, 8)
-+bool CFontEngine::getGlyphBitmap(FTC_ImageTypeRec &font, FT_ULong index, Bitmap &target, int &left, int &top,
-+ int &xAdvance, FT_Pointer *ptr)
-+#else
- bool CFontEngine::getGlyphBitmap(FTC_Image_Desc &font, FT_ULong index, Bitmap &target, int &left, int &top,
- int &xAdvance, FT_Pointer *ptr)
-+#endif
- {
- bool ok=false;
-
-@@ -2867,13 +2909,23 @@ bool CFontEngine::getGlyphBitmap(FTC_Ima
-
- //
- // Cache small glyphs, else render on demand...
-+#if KFI_FT_IS_GE(2, 1, 8)
-+ if(font.width<48 && font.height<48)
-+#else
- if(font.font.pix_width<48 && font.font.pix_height<48)
-+#endif
- {
- FTC_SBit sbit;
-
-- if(!FTC_SBit_Cache_Lookup(itsFt.sBitCache, &font, index, &sbit))
-+#if KFI_FT_IS_GE(2, 1, 8)
-+ if(!FTC_SBitCache_Lookup(itsFt.sBitCache, &font, index, &sbit, NULL) && sbit->buffer)
-+#else
-+ if(!FTC_SBit_Cache_Lookup(itsFt.sBitCache, &font, index, &sbit) && sbit->buffer)
-+#endif
- {
-- target.greys=ft_pixel_mode_mono==sbit->format ? 2 : 256;
-+ target.greys=sbit->max_grays+1; // ft_pixel_mode_mono==sbit->format ? 2 : 256;
-+ target.mono=ft_pixel_mode_mono==sbit->format ? true : false;
-+ target.pitch=sbit->pitch;
- target.height=sbit->height;
- target.width=sbit->width;
- target.buffer=sbit->buffer;
-@@ -2883,11 +2935,15 @@ bool CFontEngine::getGlyphBitmap(FTC_Ima
- ok=true;
- }
- }
-- else
-+ if(!ok)
- {
- FT_Glyph glyph;
-
-+#if KFI_FT_IS_GE(2, 1, 8)
-+ if(!FTC_ImageCache_Lookup(itsFt.imageCache, &font, index, &glyph, NULL))
-+#else
- if(!FTC_Image_Cache_Lookup(itsFt.imageCache, &font, index, &glyph))
-+#endif
- {
- ok=true;
-
-@@ -2896,12 +2952,14 @@ bool CFontEngine::getGlyphBitmap(FTC_Ima
- *ptr=glyph;
-
- if(ok)
-- if(ft_glyph_format_bitmap==glyph->format)
-+ if(ft_glyph_format_bitmap==glyph->format && ((FT_BitmapGlyph)glyph)->bitmap.buffer)
- {
- FT_BitmapGlyph bitmap=(FT_BitmapGlyph)glyph;
- FT_Bitmap *source=&(bitmap->bitmap);
-
-- target.greys= (ft_pixel_mode_mono==(FT_Pixel_Mode_) source->pixel_mode) ? 1 : source->num_grays;
-+ target.greys=ft_pixel_mode_mono==(FT_Pixel_Mode_) source->pixel_mode ? 2 : source->num_grays;
-+ target.mono=ft_pixel_mode_mono==(FT_Pixel_Mode_) source->pixel_mode ? true : false;
-+ target.pitch=source->pitch;
- target.height=source->rows;
- target.width=source->width;
- target.buffer=source->buffer;
-@@ -2919,14 +2977,12 @@ bool CFontEngine::getGlyphBitmap(FTC_Ima
-
- void CFontEngine::align32(Bitmap &bmp)
- {
-- int mod=bmp.width%4;
-+ // Pitch = number of bytes per row of the bitmap. This needs to fall on a 32bit (4byte) boundary.
-+ int padBytes=4-(bmp.pitch%4);
-
-- if(mod)
-+ if(padBytes<4)
- {
-- bmp.mod=4-mod;
--
-- int width=bmp.width+bmp.mod,
-- size=(bmp.width+bmp.mod)*bmp.height,
-+ int size=(bmp.pitch+padBytes)*bmp.height,
- row;
-
- if(size>itsFt.bufferSize)
-@@ -2939,20 +2995,23 @@ void CFontEngine::align32(Bitmap &bmp)
- itsFt.buffer=new unsigned char [itsFt.bufferSize];
- }
-
-- memset(itsFt.buffer, 0, itsFt.bufferSize);
-+ //memset(itsFt.buffer, 0, itsFt.bufferSize);
- for(row=0; row<bmp.height; ++row)
-- memcpy(&(itsFt.buffer[row*width]), &bmp.buffer[row*bmp.width], bmp.width);
-+ memcpy(&(itsFt.buffer[row*(bmp.pitch+padBytes)]), &bmp.buffer[row*bmp.pitch], bmp.pitch);
-
- bmp.buffer=itsFt.buffer;
-- bmp.width+=bmp.mod;
- }
-- else
-- bmp.mod=0;
- }
-
--bool CFontEngine::drawGlyph(QPixmap &pix, FTC_Image_Desc &font, FT_Size &size, int glyphNum,
-+#if KFI_FT_IS_GE(2, 1, 8)
-+bool CFontEngine::drawGlyph(QPixmap &pix, FTC_ImageTypeRec &font, int glyphNum,
-+ FT_F26Dot6 &x, FT_F26Dot6 &y, FT_F26Dot6 width, FT_F26Dot6 height,
-+ FT_F26Dot6 startX, FT_F26Dot6 stepY, int space)
-+#else
-+bool CFontEngine::drawGlyph(QPixmap &pix, FTC_Image_Desc &font, int glyphNum,
- FT_F26Dot6 &x, FT_F26Dot6 &y, FT_F26Dot6 width, FT_F26Dot6 height,
- FT_F26Dot6 startX, FT_F26Dot6 stepY, int space)
-+#endif
- {
- int left,
- top,
-@@ -2962,45 +3021,38 @@ bool CFontEngine::drawGlyph(QPixmap &pix
-
- if(getGlyphBitmap(font, glyphNum, bmp, left, top, xAdvance, &glyph) && bmp.width>0 && bmp.height>0)
- {
-- if(2==bmp.greys)
-+ if(x+xAdvance+1>width)
- {
-- QPixmap glyphPix(QBitmap(bmp.width, bmp.height, bmp.buffer));
-+ x=startX;
-+ y+=stepY;
-
-- bitBlt(&pix, x+left, y-top, &glyphPix, 0, 0, bmp.width, bmp.height, Qt::AndROP);
-+ if(y>height)
-+ return true;
- }
-- else
-- {
-- static QRgb clut[256];
-- static bool clutSetup=false;
-
-- if(!clutSetup)
-- {
-- int j;
-- for(j=0; j<256; j++)
-- clut[j]=qRgb(255-j, 255-j, 255-j);
-- clutSetup=true;
-- }
-+ static QRgb clut8[256];
-+ static QRgb clut1[2]={ qRgb(255, 255, 255), qRgb(0, 0, 0) };
-+ static bool clut8Setup=false;
-
-- align32(bmp);
-+ if(!bmp.mono && !clut8Setup)
-+ {
-+ int j;
-+ for(j=0; j<256; j++)
-+ clut8[j]=qRgb(255-j, 255-j, 255-j);
-+ clut8Setup=true;
-+ }
-
-- QPixmap glyphPix(QImage(bmp.buffer, bmp.width, bmp.height, 8, clut , bmp.greys, QImage::IgnoreEndian));
-+ align32(bmp);
-
-- bitBlt(&pix, x+left, y-top, &glyphPix, 0, 0, bmp.width, bmp.height, Qt::AndROP);
-- }
-+ QPixmap glyphPix(QImage(bmp.buffer, bmp.width, bmp.height, bmp.mono ? 1 : 8, bmp.mono ? clut1 : clut8, bmp.mono ? 2 : bmp.greys,
-+ QImage::BigEndian));
-+
-+ bitBlt(&pix, x+left, y-top, &glyphPix, 0, 0, glyphPix.width(), glyphPix.height(), Qt::AndROP);
-
- if(glyph)
- FT_Done_Glyph((FT_Glyph)glyph);
-
- x+=xAdvance+1;
--
-- if(x+size->metrics.x_ppem>width)
-- {
-- x=startX;
-- y+=stepY;
--
-- if(y>height)
-- return true;
-- }
- }
- else if(x!=startX)
- x+=space;
-@@ -3015,7 +3067,6 @@ CFontEngine::TFtData::TFtData()
- , buffer(NULL),
- bufferSize(0)
- #endif
--
- {
- if(FT_Init_FreeType(&library))
- {
-@@ -3024,9 +3075,29 @@ CFontEngine::TFtData::TFtData()
- }
- #ifdef HAVE_FT_CACHE
- ids.setAutoDelete(true);
-- FTC_Manager_New(library, 0, 0, 0, face_requester, 0, &cacheManager);
-- FTC_SBit_Cache_New(cacheManager, &sBitCache);
-- FTC_Image_Cache_New(cacheManager, &imageCache);
-+ if(FTC_Manager_New(library, 0, 0, 0, face_requester, 0, &cacheManager))
-+ {
-+ std::cerr << "ERROR: Could not initliaze FreeType2 cache manager\n";
-+ exit(0);
-+ }
-+#if KFI_FT_IS_GE(2, 1, 8)
-+ if(FTC_SBitCache_New(cacheManager, &sBitCache))
-+#else
-+ if(FTC_SBit_Cache_New(cacheManager, &sBitCache))
-+#endif
-+ {
-+ std::cerr << "ERROR: Could not initliaze FreeType2 small bitmaps cache\n";
-+ exit(0);
-+ }
-+#if KFI_FT_IS_GE(2, 1, 8)
-+ if(FTC_ImageCache_New(cacheManager, &imageCache))
-+#else
-+ if(FTC_Image_Cache_New(cacheManager, &imageCache))
-+#endif
-+ {
-+ std::cerr << "ERROR: Could not initliaze FreeType2 glyph image cache\n";
-+ exit(0);
-+ }
- #endif
- }
diff --git a/x11/kdebase3/patches/patch-ai b/x11/kdebase3/patches/patch-ai
deleted file mode 100644
index cf4e62b7ddb..00000000000
--- a/x11/kdebase3/patches/patch-ai
+++ /dev/null
@@ -1,80 +0,0 @@
-$NetBSD: patch-ai,v 1.11 2004/05/01 07:32:15 tron Exp $
-
-Fixes build with Freetype-2.1.8, see:
-http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdebase/kcontrol/kfontinst/lib/FontEngine.h
-
---- kcontrol/kfontinst/lib/FontEngine.h 2003/11/29 01:41:14 1.5
-+++ kcontrol/kfontinst/lib/FontEngine.h 2004/04/27 20:30:25 1.5.2.1
-@@ -34,6 +34,7 @@
- #endif
-
- #include "Encodings.h"
-+#include <kdeversion.h>
- #include <ft2build.h>
- #include FT_FREETYPE_H
- #include <qstring.h>
-@@ -50,6 +51,10 @@
- #include <qpaintdevice.h>
- #endif
-
-+// OK - some macros to make determining the FreeType version easier...
-+#define KFI_FREETYPE_VERSION KDE_MAKE_VERSION(FREETYPE_MAJOR, FREETYPE_MINOR, FREETYPE_PATCH)
-+#define KFI_FT_IS_GE(a,b,c) (KFI_FREETYPE_VERSION >= KDE_MAKE_VERSION(a,b,c))
-+
- class CFontEngine
- {
- public:
-@@ -178,8 +183,15 @@ class CFontEngine
- bool open;
- #ifdef HAVE_FT_CACHE
- FTC_Manager cacheManager;
-+
-+#if KFI_FT_IS_GE(2, 1, 8)
-+ FTC_ImageCache imageCache;
-+ FTC_SBitCache sBitCache;
-+#else
- FTC_Image_Cache imageCache;
- FTC_SBit_Cache sBitCache;
-+#endif
-+
- QPtrList<TId> ids;
- unsigned char *buffer;
- int bufferSize;
-@@ -191,7 +203,8 @@ class CFontEngine
- int width,
- height,
- greys,
-- mod;
-+ pitch;
-+ bool mono;
- unsigned char *buffer;
- };
-
-@@ -348,11 +361,25 @@ class CFontEngine
- private:
-
- FTC_FaceID getId(const QString &f, int faceNo);
-+
-+#if KFI_FT_IS_GE(2, 1, 8)
-+ bool getGlyphBitmap(FTC_ImageTypeRec &font, FT_ULong index, Bitmap &target, int &left, int &top,
-+ int &xAdvance, FT_Pointer *ptr);
-+#else
- bool getGlyphBitmap(FTC_Image_Desc &font, FT_ULong index, Bitmap &target, int &left, int &top,
- int &xAdvance, FT_Pointer *ptr);
-+#endif
-+
- void align32(Bitmap &bmp);
-- bool drawGlyph(QPixmap &pix, FTC_Image_Desc &font, FT_Size &size, int glyphNum, FT_F26Dot6 &x, FT_F26Dot6 &y,
-+
-+#if KFI_FT_IS_GE(2, 1, 8)
-+ bool drawGlyph(QPixmap &pix, FTC_ImageTypeRec &font, int glyphNum, FT_F26Dot6 &x, FT_F26Dot6 &y,
- FT_F26Dot6 width, FT_F26Dot6 height, FT_F26Dot6 startX, FT_F26Dot6 stepY, int space=0);
-+#else
-+ bool drawGlyph(QPixmap &pix, FTC_Image_Desc &font, int glyphNum, FT_F26Dot6 &x, FT_F26Dot6 &y,
-+ FT_F26Dot6 width, FT_F26Dot6 height, FT_F26Dot6 startX, FT_F26Dot6 stepY, int space=0);
-+#endif
-+
- #endif
-
- private:
-