FreeBSD Bugzilla – Attachment 155794 Details for
Bug 199549
audio/cantata: looks icons from /usr/share/icons
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
PORTREVISION+upstream patch
patch-add-upstream-prefix-patch-2 (text/plain), 2.71 KB, created by
Tobias Berner
on 2015-04-21 07:34:48 UTC
(
hide
)
Description:
PORTREVISION+upstream patch
Filename:
MIME Type:
Creator:
Tobias Berner
Created:
2015-04-21 07:34:48 UTC
Size:
2.71 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 384406) >+++ Makefile (working copy) >@@ -2,6 +2,7 @@ > > PORTNAME= cantata > PORTVERSION= 1.5.1 >+PORTREVISION= 1 > CATEGORIES= audio kde > MASTER_SITES= https://drive.google.com/uc?export=download&id=0Bzghs6gQWi60UktwaTRMTjRIUW8&dummy= > >Index: files/patch-svn-5739-gui__application_qt.cpp >=================================================================== >--- files/patch-svn-5739-gui__application_qt.cpp (revision 0) >+++ files/patch-svn-5739-gui__application_qt.cpp (working copy) >@@ -0,0 +1,39 @@ >+Look for icons in more than just /usr/share -- upstream svn patch: >+Log message >+ >+- When checking for icon themes, also check in $PREFIX >+- Also ensure path is in QIcon's theme path >+ >+https://code.google.com/p/cantata/source/detail?r=5740 >+ >+ >+Index: gui/application_qt.cpp >+=================================================================== >+--- gui/application_qt.cpp (revision 5739) >++++ gui/application_qt.cpp (working copy) >+@@ -45,11 +45,21 @@ >+ // or gnome icon themes are installed, and set theme to one of those. >+ if (!QIcon::hasThemeIcon("document-save-as")) { >+ QStringList themes=QStringList() << QLatin1String("oxygen") << QLatin1String("gnome"); >++ QStringList prefixes=QStringList() << QLatin1String("/usr") << QLatin1String("/usr/local"); >++ if (!prefixes.contains(QLatin1String(INSTALL_PREFIX))) { >++ prefixes+=QLatin1String(INSTALL_PREFIX); >++ } >+ foreach (const QString &theme, themes) { >+- QString dir(QLatin1String("/usr/share/icons/")+theme); >+- if (QDir(dir).exists()) { >+- QIcon::setThemeName(theme); >+- return; >++ foreach (const QString &prefix, prefixes) { >++ QString dir(prefix+QLatin1String("/share/icons/")+theme); >++ if (QDir(dir).exists()) { >++ QIcon::setThemeName(theme); >++ // Add to theme search paths, if it is not there already... >++ if (!QIcon::themeSearchPaths().contains(prefix+QLatin1String("/share/icons"))) { >++ QIcon::setThemeSearchPaths(QIcon::themeSearchPaths() << QString(prefix+QLatin1String("/share/icons"))); >++ } >++ return; >++ } >+ } >+ } >+ } > >Property changes on: files/patch-svn-5739-gui__application_qt.cpp >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
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 199549
:
155759
|
155777
| 155794