From d35cdb07e0735b463bb5963b4ca5615630ad8a13 Mon Sep 17 00:00:00 2001 From: Caleb Tennis Date: Fri, 3 Sep 2004 14:03:32 +0000 Subject: Patch to fix bug #62120 --- kde-base/kdesdk/files/3.3.0-kbabel.diff | 55 +++++++++++++++++++++++++++++++++ kde-base/kdesdk/kdesdk-3.3.0.ebuild | 10 ++++-- 2 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 kde-base/kdesdk/files/3.3.0-kbabel.diff (limited to 'kde-base') diff --git a/kde-base/kdesdk/files/3.3.0-kbabel.diff b/kde-base/kdesdk/files/3.3.0-kbabel.diff new file mode 100644 index 000000000000..5b1c8cdeba24 --- /dev/null +++ b/kde-base/kdesdk/files/3.3.0-kbabel.diff @@ -0,0 +1,55 @@ +diff -ur kdesdk-3.3.0/kbabel/kbabel/kbhighlighting.cpp kdesdk-3.3.0_patched/kbabel/kbabel/kbhighlighting.cpp +--- kdesdk-3.3.0/kbabel/kbabel/kbhighlighting.cpp 2004-08-05 21:27:09.000000000 +0200 ++++ kdesdk-3.3.0_patched/kbabel/kbabel/kbhighlighting.cpp 2004-08-29 18:06:57.000000000 +0200 +@@ -67,6 +67,7 @@ + + void KBabelHighlighter::highlight( ) + { ++ kdDebug(KBABEL) << this << ": Highlight started" << endl; + // no updates while we're highlighting + _edit->blockSignals( true ); + _edit->setUpdatesEnabled( false ); +@@ -140,6 +141,8 @@ + _edit->blockSignals( false ); + _edit->updateContents( ); + _edit->ensureCursorVisible(); ++ ++ kdDebug(KBABEL) << this << ": Highlight finished" << endl; + } + + void KBabelHighlighter::doHighlighting( HighlightType type, int pos, int length ) +diff -ur kdesdk-3.3.0/kbabel/kbabel/mymultilineedit.cpp kdesdk-3.3.0_patched/kbabel/kbabel/mymultilineedit.cpp +--- kdesdk-3.3.0/kbabel/kbabel/mymultilineedit.cpp 2004-05-22 22:58:49.000000000 +0200 ++++ kdesdk-3.3.0_patched/kbabel/kbabel/mymultilineedit.cpp 2004-08-29 18:08:53.000000000 +0200 +@@ -561,6 +561,7 @@ + _diffAddColor(Qt::darkGreen), + _diffDelColor(Qt::darkRed), + _currentUnicodeNumber(0), ++ highlighter(0), + _tagStartPara(0), _tagStartIndex(0), _tagEndPara(0), _tagEndIndex(0) + { + diffPos.setAutoDelete(true); +@@ -594,6 +595,12 @@ + connect( this, SIGNAL( textChanged() ), this, SLOT( emittedTextChanged() ) ); + } + ++MsgMultiLineEdit::~MsgMultiLineEdit () ++{ ++ if(highlighter) ++ delete highlighter; ++} ++ + void MsgMultiLineEdit::setText(const QString& s) + { + QString str = s; +diff -ur kdesdk-3.3.0/kbabel/kbabel/mymultilineedit.h kdesdk-3.3.0_patched/kbabel/kbabel/mymultilineedit.h +--- kdesdk-3.3.0/kbabel/kbabel/mymultilineedit.h 2004-05-22 22:58:49.000000000 +0200 ++++ kdesdk-3.3.0_patched/kbabel/kbabel/mymultilineedit.h 2004-08-29 18:09:31.000000000 +0200 +@@ -144,6 +144,7 @@ + enum TextColor { NormalColor, ErrorColor }; + + MsgMultiLineEdit(int ID, KSpell* spell=0, QWidget* parent=0,const char* name=0); ++ virtual ~MsgMultiLineEdit(); + + /** is displaying surrounding quotes enabled? */ + bool quotes() const { return _quotes;} diff --git a/kde-base/kdesdk/kdesdk-3.3.0.ebuild b/kde-base/kdesdk/kdesdk-3.3.0.ebuild index dc1907b5adc4..cf4ea6b8de0f 100644 --- a/kde-base/kdesdk/kdesdk-3.3.0.ebuild +++ b/kde-base/kdesdk/kdesdk-3.3.0.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdesdk/kdesdk-3.3.0.ebuild,v 1.4 2004/09/03 13:37:52 caleb Exp $ -inherit kde-dist +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdesdk/kdesdk-3.3.0.ebuild,v 1.5 2004/09/03 14:03:32 caleb Exp $ +inherit eutils kde-dist IUSE="" DESCRIPTION="KDE SDK: kbabel, ..." @@ -14,3 +14,9 @@ DEPEND="!dev-util/kcachegrind RDEPEND="$DEPEND dev-util/cvs" + +src_unpack() +{ + kde_src_unpack + epatch ${FILESDIR}/3.3.0-kbabel.diff +} -- cgit v1.2.3-65-gdbad