summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-02 21:11:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-03-03 18:50:05 +0100
commit301514183d471cfeb085673eb4563f8c310162b7 (patch)
tree6a35a4334aad350d979991fb75cf91fee42bdc17 /vcl
parent64d51760cc41bf033a6b69258f6f4a376878d17a (diff)
weld license dialog
Change-Id: Icfd921923cf6396db4cc5ecabd7b65d0b4c9aef7 Reviewed-on: https://gerrit.libreoffice.org/50648 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/salvtables.cxx5
-rw-r--r--vcl/unx/gtk3/gtk3gtkinst.cxx6
2 files changed, 11 insertions, 0 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index c1a968db3cc8..6e459298a683 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -1015,6 +1015,11 @@ public:
{
m_xLabel->SetText(rText);
}
+
+ virtual OUString get_label() const override
+ {
+ return m_xLabel->GetText();
+ }
};
class SalInstanceTextView : public SalInstanceContainer, public virtual weld::TextView
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index dfe9c89cabea..87e981a7c6fe 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -2215,6 +2215,12 @@ public:
{
gtk_label_set_label(m_pLabel, MapToGtkAccelerator(rText).getStr());
}
+
+ virtual OUString get_label() const override
+ {
+ const char* pLabel = gtk_label_get_label(m_pLabel);
+ return OUString(pLabel, strlen(pLabel), RTL_TEXTENCODING_UTF8);
+ }
};
class GtkInstanceTextView : public GtkInstanceContainer, public virtual weld::TextView