summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/unx/gtk/gtkinst.cxx4
-rw-r--r--vcl/unx/gtk3_kde5/gtk3_kde5_gtkinst.cxx2
2 files changed, 5 insertions, 1 deletions
diff --git a/vcl/unx/gtk/gtkinst.cxx b/vcl/unx/gtk/gtkinst.cxx
index 959e387633ec..1d3dbf2f0294 100644
--- a/vcl/unx/gtk/gtkinst.cxx
+++ b/vcl/unx/gtk/gtkinst.cxx
@@ -179,7 +179,9 @@ void GtkInstance::EnsureInit()
ImplSVData* pSVData = ImplGetSVData();
delete pSVData->maAppData.mpToolkitName;
-#if GTK_CHECK_VERSION(3,0,0)
+#ifdef GTK_TOOLKIT_NAME
+ pSVData->maAppData.mpToolkitName = new OUString(GTK_TOOLKIT_NAME);
+#elif GTK_CHECK_VERSION(3,0,0)
pSVData->maAppData.mpToolkitName = new OUString("gtk3");
#else
pSVData->maAppData.mpToolkitName = new OUString("gtk2");
diff --git a/vcl/unx/gtk3_kde5/gtk3_kde5_gtkinst.cxx b/vcl/unx/gtk3_kde5/gtk3_kde5_gtkinst.cxx
index d3f797ce9234..e25ec8b0ec9f 100644
--- a/vcl/unx/gtk3_kde5/gtk3_kde5_gtkinst.cxx
+++ b/vcl/unx/gtk3_kde5/gtk3_kde5_gtkinst.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+// make gtk3 plug advertise correctly as kde5 hybrid
+#define GTK_TOOLKIT_NAME "gtk3_kde5"
#include "../gtk3/gtk3gtkinst.cxx"
#include "gtk3_kde5_filepicker.hxx"