summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-06-29 16:54:31 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-07-01 19:38:59 +0200
commitfd94276fbbd3632b2241133900b995d75f9b14fc (patch)
tree741acb4a8bb45bd0facc0d41281b0cda932eded4 /framework
parent3bd01dc22c18acbca14b52bb982e7effd5a2b8a8 (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. (cherry picked from commit c540483134482d437ea6e02390ff429f4300cbb0) Change-Id: I216a7f547618377ed268454ebfd2801c4c3901b7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97638 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/fwe/helper/titlehelper.cxx7
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