sfx2/source/appl/appserv.cxx | 8 ++++++++ sfx2/uiconfig/ui/licensedialog.ui | 37 +++++++++++++++++++++++++++++++++++-- 2 files changed, 43 insertions(+), 2 deletions(-)
New commits: commit 532e9f751b1ec40588b7edf0de156377eed79287 Author: Andras Timar <andras.ti...@collabora.com> Date: Wed Feb 7 22:57:04 2018 +0100 add EULA button to Help - License Information... dialog Change-Id: I62b9293c68059389a63e523ea5747fdb267b1a99 Reviewed-on: https://gerrit.libreoffice.org/49398 Reviewed-by: Michael Meeks <michael.me...@collabora.com> Tested-by: Michael Meeks <michael.me...@collabora.com> (cherry picked from commit 97d66828b6a2fcf495c89211a3d0cd648516e72a) Reviewed-on: https://gerrit.libreoffice.org/49432 Reviewed-by: Andras Timar <andras.ti...@collabora.com> Tested-by: Andras Timar <andras.ti...@collabora.com> diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index de9b8af352f0..aad7dcdec3a6 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -281,6 +281,7 @@ namespace { private: DECL_LINK(ShowHdl, Button*, void); + DECL_LINK(EulaHdl, Button*, void); public: explicit LicenseDialog(); }; @@ -289,6 +290,7 @@ namespace : ModalDialog(nullptr, "LicenseDialog", "sfx/ui/licensedialog.ui") { get<PushButton>("show")->SetClickHdl(LINK(this, LicenseDialog, ShowHdl)); + get<PushButton>("eula")->SetClickHdl(LINK(this, LicenseDialog, EulaHdl)); } IMPL_LINK_NOARG(LicenseDialog, ShowHdl, Button*, void) @@ -297,6 +299,12 @@ namespace showDocument("LICENSE"); } + IMPL_LINK_NOARG(LicenseDialog, EulaHdl, Button*, void) + { + EndDialog(RET_OK); + showDocument("EULA.odt"); + } + class SafeModeQueryDialog : public ModalDialog { private: diff --git a/sfx2/uiconfig/ui/licensedialog.ui b/sfx2/uiconfig/ui/licensedialog.ui index 1f9c30919faf..8d0fe33d522b 100644 --- a/sfx2/uiconfig/ui/licensedialog.ui +++ b/sfx2/uiconfig/ui/licensedialog.ui @@ -35,6 +35,23 @@ </packing> </child> <child> + <object class="GtkButton" id="eula"> + <property name="label" translatable="yes">_EULA</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="has_default">True</property> + <property name="receives_default">True</property> + <property name="use_underline">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + <property name="secondary">True</property> + </packing> + </child> + <child> <object class="GtkButton" id="close"> <property name="label">gtk-close</property> <property name="visible">True</property> @@ -45,7 +62,7 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">1</property> + <property name="position">2</property> </packing> </child> </object> @@ -57,6 +74,22 @@ </packing> </child> <child> + <object class="GtkLabel" id="label2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">%PRODUCTNAME binary package is made available subject to the terms of the End User License and Subscription Agreement; choose EULA to see exact details in English.</property> + <property name="wrap">True</property> + <property name="max_width_chars">80</property> + <property name="xalign">0</property> + <property name="yalign">0</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + <child> <object class="GtkLabel" id="label"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -77,7 +110,7 @@ This product was created by %OOOVENDOR, based on OpenOffice.org, which is Copyri <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">1</property> + <property name="position">2</property> </packing> </child> </object> _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits