patch-src_iconutils_cpp 838 B

1234567891011121314151617181920212223242526
  1. $OpenBSD: patch-src_iconutils_cpp,v 1.1 2014/12/01 14:35:59 dcoppa Exp $
  2. Use the Adwaita icon theme unconditionally: fixes a problem with
  3. minitube GUI not having icons when executed outside of a Desktop
  4. Environment
  5. Do not use symbolic icons
  6. --- src/iconutils.cpp.orig Mon Dec 1 05:23:52 2014
  7. +++ src/iconutils.cpp Mon Dec 1 05:25:00 2014
  8. @@ -21,12 +21,8 @@ $END_LICENSE */
  9. #include "iconutils.h"
  10. QIcon IconUtils::fromTheme(const QString &name) {
  11. - const QLatin1String symbolic("-symbolic");
  12. - if (name.endsWith(symbolic)) return QIcon::fromTheme(name);
  13. - QIcon icon;
  14. - icon = QIcon::fromTheme(name + symbolic);
  15. - if (icon.isNull()) return QIcon::fromTheme(name);
  16. - return icon;
  17. + QIcon::setThemeName("Adwaita");
  18. + return QIcon::fromTheme(name);
  19. }
  20. QIcon IconUtils::fromResources(const QString &name) {