diff options
author | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-02-15 14:01:01 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-02-15 15:25:25 +0100 |
commit | d1b3455cfb4fcd438f3f29d8c14bb0f04423b8ad (patch) | |
tree | 5b8e1618f56b840366b8e0caee7681849cc8ae30 /vcl | |
parent | cc2c2bb8001d48d2909ec4d418634ba00652bcf0 (diff) |
gtk3_kde5: advertise vcl plugin correctly in about dialog
Change-Id: Icfe977f7f9750003d992d795cad8cd86d7055e59
Reviewed-on: https://gerrit.libreoffice.org/49813
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk/gtkinst.cxx | 4 | ||||
-rw-r--r-- | vcl/unx/gtk3_kde5/gtk3_kde5_gtkinst.cxx | 2 |
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" |