diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2010-02-03 20:27:25 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2010-02-03 20:27:25 +0000 |
commit | 7522be9b775079c2efb6d0ba7c90712c8b269f0d (patch) | |
tree | d74c91f53f425847e9645d08e20bde66cdc26579 /kde-base/plasma-workspace | |
parent | amd64 stable, bug #300686 (diff) | |
download | gentoo-2-7522be9b775079c2efb6d0ba7c90712c8b269f0d.tar.gz gentoo-2-7522be9b775079c2efb6d0ba7c90712c8b269f0d.tar.bz2 gentoo-2-7522be9b775079c2efb6d0ba7c90712c8b269f0d.zip |
I patched wrong package?! And it was not pointed out by base eclass?! my tools fail me :/
(Portage version: 2.2_rc62/cvs/Linux x86_64)
Diffstat (limited to 'kde-base/plasma-workspace')
-rw-r--r-- | kde-base/plasma-workspace/ChangeLog | 8 | ||||
-rw-r--r-- | kde-base/plasma-workspace/files/4.3.5-magiclamp-minimize.patch | 151 | ||||
-rw-r--r-- | kde-base/plasma-workspace/plasma-workspace-4.3.5.ebuild (renamed from kde-base/plasma-workspace/plasma-workspace-4.3.5-r1.ebuild) | 4 |
3 files changed, 8 insertions, 155 deletions
diff --git a/kde-base/plasma-workspace/ChangeLog b/kde-base/plasma-workspace/ChangeLog index 9ac7b5b3ca26..438d6764fc1c 100644 --- a/kde-base/plasma-workspace/ChangeLog +++ b/kde-base/plasma-workspace/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for kde-base/plasma-workspace # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/plasma-workspace/ChangeLog,v 1.55 2010/02/03 19:18:39 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/plasma-workspace/ChangeLog,v 1.56 2010/02/03 20:27:22 scarabeus Exp $ + + 03 Feb 2010; Tomáš Chvátal <scarabeus@gentoo.org> + -files/4.3.5-magiclamp-minimize.patch, +plasma-workspace-4.3.5.ebuild, + -plasma-workspace-4.3.5-r1.ebuild: + I patched wrong package?! And it was not pointed out by base eclass?! my + tools fail me :/ *plasma-workspace-4.3.5-r1 (03 Feb 2010) diff --git a/kde-base/plasma-workspace/files/4.3.5-magiclamp-minimize.patch b/kde-base/plasma-workspace/files/4.3.5-magiclamp-minimize.patch deleted file mode 100644 index b3901f0c98b5..000000000000 --- a/kde-base/plasma-workspace/files/4.3.5-magiclamp-minimize.patch +++ /dev/null @@ -1,151 +0,0 @@ -diff --git a/kwin/effects/magiclamp/magiclamp.cpp b/kwin/effects/magiclamp/magiclamp.cpp -index e1572cb..44406a2 100644 ---- a/kwin/effects/magiclamp/magiclamp.cpp -+++ b/kwin/effects/magiclamp/magiclamp.cpp -@@ -301,6 +301,11 @@ void MagicLampEffect::postPaintScreen() - effects->postPaintScreen(); - } - -+void MagicLampEffect::windowDeleted( EffectWindow* w ) -+{ -+ mTimeLineWindows.remove( w ); -+} -+ - void MagicLampEffect::windowMinimized( EffectWindow* w ) - { - mTimeLineWindows[w].setCurveShape(TimeLine::LinearCurve); -diff --git a/kwin/effects/magiclamp/magiclamp.h b/kwin/effects/magiclamp/magiclamp.h -index a7f134d..84bfa7e 100644 ---- a/kwin/effects/magiclamp/magiclamp.h -+++ b/kwin/effects/magiclamp/magiclamp.h -@@ -38,6 +38,7 @@ class MagicLampEffect - virtual void paintWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data ); - virtual void postPaintScreen(); - -+ virtual void windowDeleted( EffectWindow* c ); - virtual void windowMinimized( EffectWindow* c ); - virtual void windowUnminimized( EffectWindow* c ); - -diff --git a/kwin/effects/minimizeanimation/minimizeanimation.cpp b/kwin/effects/minimizeanimation/minimizeanimation.cpp -index 9432504..905a64b 100644 ---- a/kwin/effects/minimizeanimation/minimizeanimation.cpp -+++ b/kwin/effects/minimizeanimation/minimizeanimation.cpp -@@ -39,34 +39,39 @@ void MinimizeAnimationEffect::prePaintScreen( ScreenPrePaintData& data, int time - // whole screen won't be repainted, resulting in artefacts - data.mask |= PAINT_SCREEN_WITH_TRANSFORMED_WINDOWS; - -- effects->prePaintScreen(data, time); -- } -- --void MinimizeAnimationEffect::prePaintWindow( EffectWindow* w, WindowPrePaintData& data, int time ) -- { -- if( mTimeLineWindows.contains( w )) -+ QHash< EffectWindow*, TimeLine >::iterator entry = mTimeLineWindows.begin(); -+ bool erase = false; -+ while( entry != mTimeLineWindows.end() ) - { -- if( w->isMinimized() ) -+ TimeLine &timeline = entry.value(); -+ if( entry.key()->isMinimized() ) - { -- mTimeLineWindows[w].addTime(time); -- if( mTimeLineWindows[w].progress() >= 1.0f ) -- mTimeLineWindows.remove( w ); -+ timeline.addTime(time); -+ erase = (timeline.progress() >= 1.0f); - } - else - { -- mTimeLineWindows[w].removeTime(time); -- if( mTimeLineWindows[w].progress() <= 0.0f ) -- mTimeLineWindows.remove( w ); -+ timeline.removeTime(time); -+ erase = (timeline.progress() <= 0.0f); - } -+ if( erase ) -+ entry = mTimeLineWindows.erase( entry ); -+ else -+ ++entry; -+ } - -- // Schedule window for transformation if the animation is still in -- // progress -- if( mTimeLineWindows.contains( w )) -- { -- // We'll transform this window -- data.setTransformed(); -- w->enablePainting( EffectWindow::PAINT_DISABLED_BY_MINIMIZE ); -- } -+ effects->prePaintScreen(data, time); -+ } -+ -+void MinimizeAnimationEffect::prePaintWindow( EffectWindow* w, WindowPrePaintData& data, int time ) -+ { -+ // Schedule window for transformation if the animation is still in -+ // progress -+ if( mTimeLineWindows.contains( w ) ) -+ { -+ // We'll transform this window -+ data.setTransformed(); -+ w->enablePainting( EffectWindow::PAINT_DISABLED_BY_MINIMIZE ); - } - - effects->prePaintWindow( w, data, time ); -@@ -74,10 +79,11 @@ void MinimizeAnimationEffect::prePaintWindow( EffectWindow* w, WindowPrePaintDat - - void MinimizeAnimationEffect::paintWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data ) - { -- if( mTimeLineWindows.contains( w )) -+ QHash< EffectWindow*, TimeLine >::const_iterator entry = mTimeLineWindows.find(w); -+ if( entry != mTimeLineWindows.constEnd() ) - { - // 0 = not minimized, 1 = fully minimized -- double progress = mTimeLineWindows[w].value(); -+ double progress = entry->value(); - - QRect geo = w->geometry(); - QRect icon = w->iconGeometry(); -@@ -107,18 +113,25 @@ void MinimizeAnimationEffect::postPaintScreen() - effects->postPaintScreen(); - } - -+void MinimizeAnimationEffect::windowDeleted( EffectWindow* w ) -+ { -+ mTimeLineWindows.remove( w ); -+ } -+ - void MinimizeAnimationEffect::windowMinimized( EffectWindow* w ) - { -- mTimeLineWindows[w].setCurveShape(TimeLine::EaseInCurve); -- mTimeLineWindows[w].setDuration( animationTime( 250 )); -- mTimeLineWindows[w].setProgress(0.0f); -+ TimeLine &timeline = mTimeLineWindows[w]; -+ timeline.setCurveShape(TimeLine::EaseInCurve); -+ timeline.setDuration( animationTime( 250 )); -+ timeline.setProgress(0.0f); - } - - void MinimizeAnimationEffect::windowUnminimized( EffectWindow* w ) - { -- mTimeLineWindows[w].setCurveShape(TimeLine::EaseOutCurve); -- mTimeLineWindows[w].setDuration( animationTime( 250 )); -- mTimeLineWindows[w].setProgress(1.0f); -+ TimeLine &timeline = mTimeLineWindows[w]; -+ timeline.setCurveShape(TimeLine::EaseOutCurve); -+ timeline.setDuration( animationTime( 250 )); -+ timeline.setProgress(1.0f); - } - - } // namespace -diff --git a/kwin/effects/minimizeanimation/minimizeanimation.h b/kwin/effects/minimizeanimation/minimizeanimation.h -index d8abd8c..96e4578 100644 ---- a/kwin/effects/minimizeanimation/minimizeanimation.h -+++ b/kwin/effects/minimizeanimation/minimizeanimation.h -@@ -42,6 +42,7 @@ class MinimizeAnimationEffect - virtual void paintWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data ); - virtual void postPaintScreen(); - -+ virtual void windowDeleted( EffectWindow* c ); - virtual void windowMinimized( EffectWindow* c ); - virtual void windowUnminimized( EffectWindow* c ); - diff --git a/kde-base/plasma-workspace/plasma-workspace-4.3.5-r1.ebuild b/kde-base/plasma-workspace/plasma-workspace-4.3.5.ebuild index 8be4ad74e114..d188d6493fb2 100644 --- a/kde-base/plasma-workspace/plasma-workspace-4.3.5-r1.ebuild +++ b/kde-base/plasma-workspace/plasma-workspace-4.3.5.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/plasma-workspace/plasma-workspace-4.3.5-r1.ebuild,v 1.1 2010/02/03 19:18:39 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/plasma-workspace/plasma-workspace-4.3.5.ebuild,v 1.3 2010/02/03 20:27:22 scarabeus Exp $ EAPI="2" @@ -57,8 +57,6 @@ KMEXTRACTONLY=" KMLOADLIBS="libkworkspace libplasmaclock libtaskmanager" -PATCHES=( "${FILESDIR}/${PV}-magiclamp-minimize.patch" ) - src_configure() { mycmakeargs=( $(cmake-utils_use_with google-gadgets Googlegadgets) |