void-packages/srcpkgs/minitube/patches/patch-src_iconutils_cpp
Alessio Sergi 447e0afcb9 minitube: clean deps
Add patches via OpenBSD to fix a problem with minitube GUI not having
icons when executed outside of a desktop environment.
2014-11-04 16:25:46 +01:00

25 lines
838 B
Text

$OpenBSD: patch-src_iconutils_cpp,v 1.1 2014/10/29 08:18:23 dcoppa Exp $
Use the Adwaita icon theme unconditionally: fixes a problem with
minitube GUI not having icons when executed outside of a Desktop
Environment
Do not use symbolic icons
--- src/iconutils.cpp.orig Thu Oct 23 12:47:15 2014
+++ src/iconutils.cpp Sat Oct 25 19:55:31 2014
@@ -21,12 +21,8 @@ $END_LICENSE */
#include "iconutils.h"
QIcon IconUtils::fromTheme(const QString &name) {
- const QLatin1String symbolic("-symbolic");
- if (name.endsWith(symbolic)) return QIcon::fromTheme(name);
- QIcon icon;
- icon = QIcon::fromTheme(name + symbolic);
- if (icon.isNull()) return QIcon::fromTheme(name);
- return icon;
+ QIcon::setThemeName("Adwaita");
+ return QIcon::fromTheme(name);
}
QIcon IconUtils::fromResources(const QString &name) {