Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 76804 Details for
Bug 118610
Patch to remove startup and shutdown animations from kmplayer
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
kmplayer-0.9.1a-remove_animations.patch
kmplayer-0.9.1a-remove_animation.patch (text/plain), 4.19 KB, created by
Scott Jubenville
on 2006-01-10 20:13:22 UTC
(
hide
)
Description:
kmplayer-0.9.1a-remove_animations.patch
Filename:
MIME Type:
Creator:
Scott Jubenville
Created:
2006-01-10 20:13:22 UTC
Size:
4.19 KB
patch
obsolete
>diff -Naur kmplayer-old/src/kmplayerapp.cpp kmplayer-new/src/kmplayerapp.cpp >--- kmplayer-old/src/kmplayerapp.cpp 2005-11-27 10:59:21.000000000 -0500 >+++ kmplayer-new/src/kmplayerapp.cpp 2006-01-10 20:19:51.000000000 -0500 >@@ -357,31 +357,7 @@ > if (file.exists () && file.open (IO_ReadOnly)) { > QTextStream ts (&file); > KMPlayer::readXML (m_document, ts, QString::null); >- } else { >- QString smil = QString::fromLatin1 ("<smil><head><layout>" >- "<root-layout width='320' height='240' background-color='black'/>" >- "<region id='image1' left='31.25%' top='25%' width='37.5%' height='50%' z-order='1'/>" >- "<region id='reg1' top='10%' height='80%' z-order='2'>" >- "<region id='image2' left='128' top='136' width='64' bottom='56'/>" >- "</region>" >- "</layout></head><body><excl><seq>" >- "<img src='%1' region='image1' dur='0.5s' fit='fill'/>" >- "<par>" >- "<animate target='image1' attribute='width' from='37.5%' to='1%' dur='0.5' fill='freeze'/>" >- "<animate target='image1' attribute='left' from='31.25%' to='50%' dur='0.5' fill='freeze'/>" >- "<animate target='image1' attribute='height' from='50%' to='1%' dur='0.5' fill='freeze'/>" >- "<animate target='image1' attribute='top' from='25%' to='50%' dur='0.5' fill='freeze'/>" >- "<set target='image1' attribute='background-color' to='white' dur='0.5'/>" >- "</par>" >- "<par>" >- "<animate target='reg1' attribute='background-color' calcMode='discrete' values='#000000;#000000;#020202;#060606;#0B0B0B;#111111;#191919;#222222;#2D2D2D;#393939;#464646;#555555;#656565;#777777;#8A8A8A;#9E9E9E;#B4B4B4;#CCCCCC;#E4E4E4;#FFFFFF' dur='0.6'/>" >- "<animate target='image2' attribute='top' from='136' to='72' dur='0.4' fill='freeze'/>" >- "<img src='%2' region='image2' dur='0.6' fit='hidden'/>" >- "</par></seq><seq begin='reg1.activateEvent'/>" >- "</excl></body></smil>").arg (locate ("data", "kmplayer/noise.gif")).arg (KGlobal::iconLoader()->iconPath (QString::fromLatin1 ("kmplayer"), -64)); >- QTextStream ts (smil.utf8 (), IO_ReadOnly); >- KMPlayer::readXML (m_document, ts, QString::null); >- } >+ } > //m_document->normalize (); > m_current = m_document; //mrl->self (); > if (m_document && m_document->firstChild ()) { >@@ -662,40 +638,7 @@ > }; > > KDE_NO_EXPORT void ExitSource::activate () { >- m_document = new KMPlayer::Document (QString (""), this); >- QString exitfile = locate ("data", "kmplayer/exit.xml"); >- QFile file (exitfile); >- if (file.exists () && file.open (IO_ReadOnly)) { >- QTextStream ts (&file); >- KMPlayer::readXML (m_document, ts, QString::null); >- } else { >- QString smil = QString::fromLatin1 ("<smil><head><layout>" >- "<root-layout width='320' height='240' background-color='black'/>" >- "<region id='reg1' top='10%' height='80%' z-order='2'>" >- "<region id='image' left='128' top='72' width='64' bottom='56'/>" >- "</region>" >- "</layout></head><body>" >- "<par>" >- "<animate target='reg1' attribute='background-color' calcMode='discrete' values='#FFFFFF;#E4E4E4;#CCCCCC;#B4B4B4;#9E9E9E;#8A8A8A;#777777;#656565;#555555;#464646;#393939;#2D2D2D;#222222;#191919;#111111;#0B0B0B;#060606;#020202;#000000;#000000' dur='0.6'/>" >- "<animate target='image' attribute='top' from='72' to='136' dur='0.4' fill='freeze'/>" >- "<img src='%2' region='image' dur='0.6' fit='hidden'/>" >- "</par>" >- "</body></smil>").arg (KGlobal::iconLoader()->iconPath (QString::fromLatin1 ("kmplayer"), -64)); >- QTextStream ts (smil.utf8 (), IO_ReadOnly); >- KMPlayer::readXML (m_document, ts, QString::null); >- } >- //m_document->normalize (); >- m_current = m_document; >- if (m_document && m_document->firstChild ()) { >- KMPlayer::Mrl * mrl = m_document->firstChild ()->mrl (); >- if (mrl) { >- setDimensions (m_document->firstChild (), mrl->width, mrl->height); >- m_player->updateTree (); >- m_current->activate (); >- emit startPlaying (); >- return; >- } >- } >+ > qApp->quit (); > } >
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 118610
: 76804