diff options
Diffstat (limited to 'debian/patches')
| -rw-r--r-- | debian/patches/gtk2-platformtheme-compat.patch | 48 | ||||
| -rw-r--r-- | debian/patches/series | 1 |
2 files changed, 49 insertions, 0 deletions
diff --git a/debian/patches/gtk2-platformtheme-compat.patch b/debian/patches/gtk2-platformtheme-compat.patch new file mode 100644 index 0000000..30a5985 --- /dev/null +++ b/debian/patches/gtk2-platformtheme-compat.patch @@ -0,0 +1,48 @@ +Description: Also allow using 'gtk2' as a trigger key, for compatibility with qt5-gtk2-platformtheme. +Author: Unit 193 <unit193@unit193.net> +Origin: vendor +Forwarded: not-needed + +--- + src/qt5gtk2-qtplugin/main.cpp | 2 +- + src/qt5gtk2-qtplugin/qt5gtk2.json | 2 +- + src/qt5gtk2-style/plugin.cpp | 2 +- + src/qt5gtk2-style/qt5gtk2.json | 2 +- + 4 files changed, 4 insertions(+), 4 deletions(-) + +--- a/src/qt5gtk2-qtplugin/qt5gtk2.json 2023-01-09 23:24:08.923845343 -0500 ++++ b/src/qt5gtk2-qtplugin/qt5gtk2.json 2023-01-09 23:24:08.911845273 -0500 +@@ -1,3 +1,3 @@ + { +- "Keys": [ "qt5gtk2" ] ++ "Keys": [ "gtk2", "qt5gtk2" ] + } +--- a/src/qt5gtk2-style/plugin.cpp 2023-01-09 23:24:08.923845343 -0500 ++++ b/src/qt5gtk2-style/plugin.cpp 2023-01-09 23:24:08.911845273 -0500 +@@ -34,7 +34,7 @@ + + QStyle *Qt5Gtk2StylePlugin::create(const QString &key) + { +- if (key == "qt5gtk2") ++ if (key == "gtk2" || key == "qt5gtk2") + return new QGtkStyle; + return 0; + } +--- a/src/qt5gtk2-style/qt5gtk2.json 2023-01-09 23:24:08.923845343 -0500 ++++ b/src/qt5gtk2-style/qt5gtk2.json 2023-01-09 23:24:08.911845273 -0500 +@@ -1,3 +1,3 @@ + { +- "Keys": [ "qt5gtk2" ] ++ "Keys": [ "gtk2", "qt5gtk2" ] + } +--- a/src/qt5gtk2-qtplugin/main.cpp 2022-06-04 02:58:43.000000000 -0400 ++++ b/src/qt5gtk2-qtplugin/main.cpp 2023-01-09 23:25:17.736251794 -0500 +@@ -35,7 +35,7 @@ + QPlatformTheme *Qt5Gtk2ThemePlugin::create(const QString &key, const QStringList ¶ms) + { + Q_UNUSED(params); +- if (!key.compare(QLatin1String(Qt5Gtk2Theme::name), Qt::CaseInsensitive)) ++ if (key.toLower() == QStringLiteral("gtk2") || key.toLower() == QStringLiteral("qt5gtk2")) + return new Qt5Gtk2Theme; + + return 0; diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..4f99e84 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +gtk2-platformtheme-compat.patch |
