diff options
-rw-r--r-- | cui/source/dialogs/about.cxx | 1 | ||||
-rw-r--r-- | cui/source/inc/about.hxx | 3 | ||||
-rw-r--r-- | cui/uiconfig/ui/aboutdialog.ui | 7 |
3 files changed, 5 insertions, 6 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index 336951b3a7f3..fb1e15e4f5b8 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -77,6 +77,7 @@ AboutDialog::AboutDialog(vcl::Window* pParent) m_aLocaleStr = get<FixedText>("locale")->GetText(); m_pVersion->SetText(GetVersionString()); + m_pVersion->SetURL("https://gerrit.libreoffice.org/gitweb?p=core.git;a=log;h=" + GetBuildId()); OUString aCopyrightString = GetCopyrightString(); m_pCopyrightText->SetText( aCopyrightString ); diff --git a/cui/source/inc/about.hxx b/cui/source/inc/about.hxx index 80fda68b6552..bdeef6585afc 100644 --- a/cui/source/inc/about.hxx +++ b/cui/source/inc/about.hxx @@ -22,6 +22,7 @@ #include <vcl/accel.hxx> #include <vcl/button.hxx> #include <vcl/fixed.hxx> +#include <vcl/fixedhyper.hxx> #include <vcl/vclmedit.hxx> #include <sfx2/basedlgs.hxx> #include <vector> @@ -34,7 +35,7 @@ private: BitmapEx aBackgroundBitmap; BitmapEx aLogoBitmap; - VclPtr<VclMultiLineEdit> m_pVersion; + VclPtr<FixedHyperlink> m_pVersion; VclPtr<FixedText> m_pDescriptionText; VclPtr<FixedText> m_pCopyrightText; VclPtr<FixedImage> m_pLogoImage; diff --git a/cui/uiconfig/ui/aboutdialog.ui b/cui/uiconfig/ui/aboutdialog.ui index d313cac4ef73..8e887ebd8ed3 100644 --- a/cui/uiconfig/ui/aboutdialog.ui +++ b/cui/uiconfig/ui/aboutdialog.ui @@ -2,9 +2,6 @@ <!-- Generated with glade 3.18.3 --> <interface> <requires lib="gtk+" version="3.0"/> - <object class="GtkTextBuffer" id="textbuffer1"> - <property name="text" translatable="yes">Version: %ABOUTBOXPRODUCTVERSION%ABOUTBOXPRODUCTVERSIONSUFFIX</property> - </object> <object class="GtkDialog" id="AboutDialog"> <property name="can_focus">False</property> <property name="border_width">6</property> @@ -147,7 +144,7 @@ </packing> </child> <child> - <object class="GtkTextView" id="version"> + <object class="GtkLinkButton" id="version"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="hexpand">True</property> @@ -155,7 +152,7 @@ <property name="wrap_mode">word</property> <property name="justification">center</property> <property name="cursor_visible">False</property> - <property name="buffer">textbuffer1</property> + <property name="label" translatable="yes">Version: %ABOUTBOXPRODUCTVERSION%ABOUTBOXPRODUCTVERSIONSUFFIX</property> </object> <packing> <property name="left_attach">0</property> |