diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2017-10-06 15:46:52 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2017-10-06 15:47:06 +0200 |
commit | 28306987b459dbb068bb794fc6b45963838def96 (patch) | |
tree | 568f56423e6bb3194d0cabb87bb57481c6b0386f /media-video/smplayer/files | |
parent | dev-db/pgadmin4: 2.0 Version Bump (diff) | |
download | gentoo-28306987b459dbb068bb794fc6b45963838def96.tar.gz gentoo-28306987b459dbb068bb794fc6b45963838def96.tar.bz2 gentoo-28306987b459dbb068bb794fc6b45963838def96.zip |
media-video/smplayer: Bump to version 17.10.0 (bug #614888).
Removed qt4 dependency.
Package-Manager: Portage-2.3.11, Repoman-2.3.3
Diffstat (limited to 'media-video/smplayer/files')
-rw-r--r-- | media-video/smplayer/files/smplayer-17.1.0-advertisement_crap.patch | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/media-video/smplayer/files/smplayer-17.1.0-advertisement_crap.patch b/media-video/smplayer/files/smplayer-17.1.0-advertisement_crap.patch new file mode 100644 index 000000000000..2792d189b097 --- /dev/null +++ b/media-video/smplayer/files/smplayer-17.1.0-advertisement_crap.patch @@ -0,0 +1,85 @@ +--- smplayer-17.1.0/src/basegui.cpp ++++ smplayer-17.1.0/src/basegui.cpp +@@ -906,9 +906,11 @@ + connect( showConfigAct, SIGNAL(triggered()), + this, SLOT(helpShowConfig()) ); + ++#ifdef DONATE_REMINDER + donateAct = new MyAction( this, "donate" ); + connect( donateAct, SIGNAL(triggered()), + this, SLOT(helpDonate()) ); ++#endif + + aboutThisAct = new MyAction( this, "about_smplayer" ); + connect( aboutThisAct, SIGNAL(triggered()), +@@ -1846,8 +1848,10 @@ + #ifdef SHARE_ACTIONS + donateAct->change( Images::icon("donate"), tr("&Donate / Share with your friends") ); + #else ++#ifdef DONATE_REMINDER + donateAct->change( Images::icon("donate"), tr("&Donate") ); + #endif ++#endif + aboutThisAct->change( Images::icon("logo"), tr("About &SMPlayer") ); + + #ifdef SHARE_MENU +@@ -2993,8 +2997,10 @@ + helpMenu->addAction(showConfigAct); + helpMenu->addSeparator(); + } ++ #ifdef DONATE_REMINDER + helpMenu->addAction(donateAct); + helpMenu->addSeparator(); ++ #endif + helpMenu->addAction(aboutThisAct); + + // Access menu +@@ -4489,6 +4495,7 @@ + } + } + #else ++#ifdef DONATE_REMINDER + void BaseGui::helpDonate() { + qDebug("BaseGui::helpDonate"); + +@@ -4530,6 +4537,7 @@ + if (accepted != 0) *accepted = result; + } + #endif ++#endif + + void BaseGui::helpAbout() { + About d(this); +--- smplayer-17.1.0/src/basegui.h ++++ smplayer-17.1.0/src/basegui.h +@@ -73,10 +73,6 @@ + class ShareWidget; + #endif + +-#ifndef SHARE_WIDGET +-#define DONATE_REMINDER +-#endif +- + class BaseGui : public QMainWindow + { + Q_OBJECT +@@ -129,8 +125,8 @@ + virtual void helpFAQ(); + virtual void helpCLOptions(); + virtual void helpCheckUpdates(); ++#ifdef DONATE_REMINDER + virtual void helpDonate(); +-#ifndef SHARE_ACTIONS + void showHelpDonateDialog(bool * accepted = 0); + #endif + virtual void helpShowConfig(); +@@ -574,7 +570,9 @@ + MyAction * updateYTAct; + #endif + MyAction * showConfigAct; ++#ifdef DONATE_REMINDER + MyAction * donateAct; ++#endif + MyAction * aboutThisAct; + + #ifdef SHARE_MENU |