diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-06-29 16:54:31 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-07-01 16:35:13 +0200 |
commit | c540483134482d437ea6e02390ff429f4300cbb0 (patch) | |
tree | f0dedf9d6f042b4823a8e53aee328d755426586b /framework | |
parent | b551604a81d6cd5ab9b85d56c57a97f4abc457fd (diff) |
configure: add a --with-product-flavor switch
Defaults to Personal to point out this is supported by volunteers.
This affects the splash screen, the window title, the about dialog and
the start center.
Change-Id: I216a7f547618377ed268454ebfd2801c4c3901b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97427
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/fwe/helper/titlehelper.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/source/fwe/helper/titlehelper.cxx b/framework/source/fwe/helper/titlehelper.cxx index fba89ae42bfc..d02287da16b4 100644 --- a/framework/source/fwe/helper/titlehelper.cxx +++ b/framework/source/fwe/helper/titlehelper.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_buildid.h> #include <config_features.h> #include <framework/titlehelper.hxx> @@ -516,6 +517,12 @@ void TitleHelper::impl_updateTitleForFrame (const css::uno::Reference< css::fram // fdo#70376: We want the window title to contain just the // document name (from the above "component title"). impl_appendProductName (sTitle); + + if (!std::string_view(PRODUCTFLAVOR).empty()) + { + sTitle.append(" " PRODUCTFLAVOR); + } + impl_appendModuleName (sTitle); impl_appendDebugVersion (sTitle); #endif |