void-packages/srcpkgs/minitube/patches/patch-src_iconutils_cpp

26 lines
838 B
Plaintext

$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) {