[gnome-software: 1/2] gs-*-context-dialog: Add ‘Learn more’ links




commit 48ebf8909aec296a1c72a905ff09f37c659f4c82
Author: Philip Withnall <pwithnall endlessos org>
Date:   Wed Aug 18 13:08:23 2021 +0100

    gs-*-context-dialog: Add ‘Learn more’ links
    
    These will provide an avenue for users to find out how to contribute
    improved metadata to applications.
    
    The links open a wiki page with instructions which we can update over
    time.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Fixes: #1330

 src/gs-age-rating-context-dialog.ui       | 9 +++++++++
 src/gs-hardware-support-context-dialog.ui | 8 ++++++++
 src/gs-safety-context-dialog.ui           | 9 +++++++++
 src/gs-storage-context-dialog.ui          | 9 +++++++++
 4 files changed, 35 insertions(+)
---
diff --git a/src/gs-age-rating-context-dialog.ui b/src/gs-age-rating-context-dialog.ui
index ea6e4831f..8e90ed419 100644
--- a/src/gs-age-rating-context-dialog.ui
+++ b/src/gs-age-rating-context-dialog.ui
@@ -110,6 +110,15 @@
                         <placeholder/>
                       </object>
                     </child>
+
+                    <child>
+                      <object class="GtkLinkButton">
+                        <property name="label" translatable="yes">How to add missing information</property>
+                        <property name="margin-top">16</property>
+                        <property 
name="uri">https://gitlab.gnome.org/GNOME/gnome-software/-/wikis/software-metadata#age-rating</property>
+                        <property name="visible">True</property>
+                      </object>
+                    </child>
                   </object>
                 </child>
               </object>
diff --git a/src/gs-hardware-support-context-dialog.ui b/src/gs-hardware-support-context-dialog.ui
index 4957f4b9d..36edf5293 100644
--- a/src/gs-hardware-support-context-dialog.ui
+++ b/src/gs-hardware-support-context-dialog.ui
@@ -110,6 +110,14 @@
                       </object>
                     </child>
 
+                    <child>
+                      <object class="GtkLinkButton">
+                        <property name="label" translatable="yes">How to add missing information</property>
+                        <property name="margin-top">16</property>
+                        <property 
name="uri">https://gitlab.gnome.org/GNOME/gnome-software/-/wikis/software-metadata#hardware-support</property>
+                        <property name="visible">True</property>
+                      </object>
+                    </child>
                   </object>
                 </child>
               </object>
diff --git a/src/gs-safety-context-dialog.ui b/src/gs-safety-context-dialog.ui
index 25a84c9af..3356afb68 100644
--- a/src/gs-safety-context-dialog.ui
+++ b/src/gs-safety-context-dialog.ui
@@ -258,6 +258,15 @@
                         </child>
                       </object>
                     </child>
+
+                    <child>
+                      <object class="GtkLinkButton">
+                        <property name="label" translatable="yes">How to add missing information</property>
+                        <property name="margin-top">16</property>
+                        <property 
name="uri">https://gitlab.gnome.org/GNOME/gnome-software/-/wikis/software-metadata#safety</property>
+                        <property name="visible">True</property>
+                      </object>
+                    </child>
                   </object>
                 </child>
               </object>
diff --git a/src/gs-storage-context-dialog.ui b/src/gs-storage-context-dialog.ui
index 9c3723591..c13c60d9c 100644
--- a/src/gs-storage-context-dialog.ui
+++ b/src/gs-storage-context-dialog.ui
@@ -111,6 +111,15 @@
                       </object>
                     </child>
 
+
+                    <child>
+                      <object class="GtkLinkButton">
+                        <property name="label" translatable="yes">How to add missing information</property>
+                        <property name="margin-top">16</property>
+                        <property 
name="uri">https://gitlab.gnome.org/GNOME/gnome-software/-/wikis/software-metadata#storage</property>
+                        <property name="visible">True</property>
+                      </object>
+                    </child>
                   </object>
                 </child>
               </object>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]