[connections/add-learn-more-link] assistant: Add "Learn more" link pointing at docs
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [connections/add-learn-more-link] assistant: Add "Learn more" link pointing at docs
- Date: Wed, 26 May 2021 13:44:50 +0000 (UTC)
commit b691cbc58467c72eaf2d43d7e38da82100665267
Author: Felipe Borges <felipeborges gnome org>
Date: Wed May 26 15:43:21 2021 +0200
assistant: Add "Learn more" link pointing at docs
Fixes #46
src/assistant.vala | 8 ++++++++
src/ui/assistant.ui | 12 ++++++++++++
2 files changed, 20 insertions(+)
---
diff --git a/src/assistant.vala b/src/assistant.vala
index 563e4b5..e045c50 100644
--- a/src/assistant.vala
+++ b/src/assistant.vala
@@ -26,6 +26,14 @@ namespace Connections {
private unowned Gtk.Entry url_entry;
[GtkChild]
private unowned Gtk.Button create_button;
+ [GtkChild]
+ private unowned Gtk.Label learn_more_label;
+
+ construct {
+ // Translators: This is a link which takes users to a documentation page in yelp
+ var learn_more_string = _("Learn more.");
+ learn_more_label.set_markup ("<a href=\'help:gnome-connections/connect\'>%s</a>".printf
(learn_more_string));
+ }
[GtkCallback]
private void on_url_entry_changed () {
diff --git a/src/ui/assistant.ui b/src/ui/assistant.ui
index aaab593..d01d77d 100644
--- a/src/ui/assistant.ui
+++ b/src/ui/assistant.ui
@@ -68,6 +68,18 @@
<property name="left-attach">0</property>
</packing>
</child>
+
+ <child>
+ <object class="GtkLabel" id="learn_more_label">
+ <property name="visible">True</property>
+ <property name="use-markup">True</property>
+ <property name="halign">start</property>
+ </object>
+ <packing>
+ <property name="top-attach">3</property>
+ <property name="left-attach">0</property>
+ </packing>
+ </child>
</object>
</child>
</template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]