Kaydet (Commit) cc020974 authored tarafından Arnold Dumas's avatar Arnold Dumas Kaydeden (comit) Michael Meeks

tdf#103654: Make git hash clickable in the About dialog

This will help the QA team and make it easier to quickly see what is in a build.

Change-Id: Ibaa96ee7eac7c60781dddb88981e76afbc71d23f
Reviewed-on: https://gerrit.libreoffice.org/31808Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
üst ed8ecae0
......@@ -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 );
......
......@@ -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;
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment