[gnome-builder/wip/gtk4-port: 220/1774] plugins/newcomers: use preferences group




commit ae3b355d3a8e533cd2d44af64e5c0f65fc564ff3
Author: Christian Hergert <chergert redhat com>
Date:   Wed Mar 30 16:16:09 2022 -0700

    plugins/newcomers: use preferences group
    
    The styling looks more consistent with other applications.

 src/plugins/newcomers/gbp-newcomers-section.ui | 227 ++++++++++++-------------
 1 file changed, 113 insertions(+), 114 deletions(-)
---
diff --git a/src/plugins/newcomers/gbp-newcomers-section.ui b/src/plugins/newcomers/gbp-newcomers-section.ui
index 31eab9b41..46c1cc815 100644
--- a/src/plugins/newcomers/gbp-newcomers-section.ui
+++ b/src/plugins/newcomers/gbp-newcomers-section.ui
@@ -11,123 +11,122 @@
         <property name="halign">center</property>
         <property name="valign">start</property>
         <child>
-          <object class="GtkLabel">
-            <property name="xalign">0.0</property>
-            <property name="label" translatable="yes">Suggested GNOME Projects</property>
-            <style>
-              <class name="dim-label"/>
-            </style>
-            <attributes>
-              <attribute name="weight" value="bold"/>
-            </attributes>
-          </object>
-        </child>
-        <child>
-          <object class="GtkListBox" id="list_box">
-            <property name="selection-mode">browse</property>
-            <style>
-              <class name="boxed-list"/>
-            </style>
-            <child>
-              <object class="GbpNewcomersProject">
-                <property name="name" translatable="yes">Boxes</property>
-                <property name="description" translatable="yes">A simple GNOME 3 application to access 
remote or virtual systems</property>
-                <property name="icon-name">org.gnome.Boxes</property>
-                <property name="uri">https://gitlab.gnome.org/GNOME/gnome-boxes.git</property>
-                <property name="languages">Vala</property>
-              </object>
-            </child>
-            <child>
-              <object class="GbpNewcomersProject">
-                <property name="name" translatable="yes">Builder</property>
-                <property name="description" translatable="yes">An IDE for writing GNOME-based 
software</property>
-                <property name="icon-name">org.gnome.Builder</property>
-                <property name="uri">https://gitlab.gnome.org/GNOME/gnome-builder.git</property>
-                <property name="languages">C
-Python</property>
-              </object>
-            </child>
-            <child>
-              <object class="GbpNewcomersProject">
-                <property name="name" translatable="yes">Calendar</property>
-                <property name="description" translatable="yes">Calendar application for GNOME</property>
-                <property name="icon-name">org.gnome.Calendar</property>
-                <property name="uri">https://gitlab.gnome.org/GNOME/gnome-calendar.git</property>
-                <property name="languages">C</property>
-              </object>
-            </child>
-            <child>
-              <object class="GbpNewcomersProject">
-                <property name="name" translatable="yes">Clocks</property>
-                <property name="description" translatable="yes">A simple clock application for 
GNOME</property>
-                <property name="icon-name">org.gnome.clocks</property>
-                <property name="uri">http://gitlab.gnome.org/gnome/gnome-clocks.git</property>
-                <property name="languages">Vala</property>
-              </object>
-            </child>
-            <child>
-              <object class="GbpNewcomersProject">
-                <property name="name" translatable="yes">Gitg</property>
-                <property name="description" translatable="yes">Gitg is a graphical Git client</property>
-                <property name="icon-name">org.gnome.gitg</property>
-                <property name="uri">https://gitlab.gnome.org/GNOME/gitg.git</property>
-                <property name="languages">Vala</property>
-              </object>
-            </child>
-            <child>
-              <object class="GbpNewcomersProject">
-                <property name="name" translatable="yes">Maps</property>
-                <property name="description" translatable="yes">A simple GNOME 3 maps application</property>
-                <property name="icon-name">org.gnome.Maps</property>
-                <property name="uri">https://gitlab.gnome.org/GNOME/gnome-maps.git</property>
-                <property name="languages">C
-JavaScript</property>
-              </object>
-            </child>
-            <child>
-              <object class="GbpNewcomersProject">
-                <property name="name" translatable="yes">Music</property>
-                <property name="description" translatable="yes">Music player and management 
application</property>
-                <property name="icon-name">org.gnome.Music</property>
-                <property name="uri">https://gitlab.gnome.org/GNOME/gnome-music.git</property>
-                <property name="languages">Python</property>
-              </object>
-            </child>
-            <child>
-              <object class="GbpNewcomersProject">
-                <property name="name" translatable="yes">Nautilus</property>
-                <property name="description" translatable="yes">Default file manager for GNOME</property>
-                <property name="icon-name">org.gnome.Nautilus</property>
-                <property name="uri">https://gitlab.gnome.org/GNOME/nautilus.git</property>
-                <property name="languages">C</property>
-              </object>
-            </child>
-            <child>
-              <object class="GbpNewcomersProject">
-                <property name="name" translatable="yes">Photos</property>
-                <property name="description" translatable="yes">Access, organize and share your photos on 
GNOME</property>
-                <property name="icon-name">org.gnome.Photos</property>
-                <property name="uri">https://gitlab.gnome.org/GNOME/gnome-photos.git</property>
-                <property name="languages">C</property>
-              </object>
-            </child>
-            <child>
-              <object class="GbpNewcomersProject">
-                <property name="name" translatable="yes">Polari</property>
-                <property name="description" translatable="yes">An IRC Client for GNOME</property>
-                <property name="icon-name">org.gnome.Polari</property>
-                <property name="uri">https://gitlab.gnome.org/GNOME/polari.git</property>
-                <property name="languages">C
-JavaScript</property>
+          <object class="AdwPreferencesGroup">
+            <property name="title" translatable="yes">Suggested GNOME Projects</property>
+            <child type="header-suffix">
+              <object class="GtkLabel">
+                <property name="label">&lt;a href="https://wiki.gnome.org/Newcomers/"&gt;Learn 
More&lt;/a&gt;</property>
+                <property name="use-markup">true</property>
+                <property name="xalign">1.0</property>
               </object>
             </child>
             <child>
-              <object class="GbpNewcomersProject">
-                <property name="name" translatable="yes">Sound Recorder</property>
-                <property name="description" translatable="yes">A simple and modern sound recorder</property>
-                <property name="icon-name">org.gnome.SoundRecorder</property>
-                <property name="uri">https://gitlab.gnome.org/GNOME/gnome-sound-recorder.git</property>
-                <property name="languages">JavaScript</property>
+              <object class="GtkListBox" id="list_box">
+                <style>
+                  <class name="boxed-list"/>
+                </style>
+                <child>
+                  <object class="GbpNewcomersProject">
+                    <property name="name" translatable="yes">Boxes</property>
+                    <property name="description" translatable="yes">A simple GNOME 3 application to access 
remote or virtual systems</property>
+                    <property name="icon-name">org.gnome.Boxes-symbolic</property>
+                    <property name="uri">https://gitlab.gnome.org/GNOME/gnome-boxes.git</property>
+                    <property name="languages">Vala</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GbpNewcomersProject">
+                    <property name="name" translatable="yes">Builder</property>
+                    <property name="description" translatable="yes">An IDE for writing GNOME-based 
software</property>
+                    <property name="icon-name">org.gnome.Builder-symbolic</property>
+                    <property name="uri">https://gitlab.gnome.org/GNOME/gnome-builder.git</property>
+                    <property name="languages">C
+    Python</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GbpNewcomersProject">
+                    <property name="name" translatable="yes">Calendar</property>
+                    <property name="description" translatable="yes">Calendar application for GNOME</property>
+                    <property name="icon-name">org.gnome.Calendar-symbolic</property>
+                    <property name="uri">https://gitlab.gnome.org/GNOME/gnome-calendar.git</property>
+                    <property name="languages">C</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GbpNewcomersProject">
+                    <property name="name" translatable="yes">Clocks</property>
+                    <property name="description" translatable="yes">A simple clock application for 
GNOME</property>
+                    <property name="icon-name">org.gnome.clocks-symbolic</property>
+                    <property name="uri">http://gitlab.gnome.org/gnome/gnome-clocks.git</property>
+                    <property name="languages">Vala</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GbpNewcomersProject">
+                    <property name="name" translatable="yes">Gitg</property>
+                    <property name="description" translatable="yes">Gitg is a graphical Git client</property>
+                    <property name="icon-name">org.gnome.gitg-symbolic</property>
+                    <property name="uri">https://gitlab.gnome.org/GNOME/gitg.git</property>
+                    <property name="languages">Vala</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GbpNewcomersProject">
+                    <property name="name" translatable="yes">Maps</property>
+                    <property name="description" translatable="yes">A simple GNOME 3 maps 
application</property>
+                    <property name="icon-name">org.gnome.Maps-symbolic</property>
+                    <property name="uri">https://gitlab.gnome.org/GNOME/gnome-maps.git</property>
+                    <property name="languages">C
+    JavaScript</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GbpNewcomersProject">
+                    <property name="name" translatable="yes">Music</property>
+                    <property name="description" translatable="yes">Music player and management 
application</property>
+                    <property name="icon-name">org.gnome.Music-symbolic</property>
+                    <property name="uri">https://gitlab.gnome.org/GNOME/gnome-music.git</property>
+                    <property name="languages">Python</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GbpNewcomersProject">
+                    <property name="name" translatable="yes">Nautilus</property>
+                    <property name="description" translatable="yes">Default file manager for GNOME</property>
+                    <property name="icon-name">org.gnome.Nautilus-symbolic</property>
+                    <property name="uri">https://gitlab.gnome.org/GNOME/nautilus.git</property>
+                    <property name="languages">C</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GbpNewcomersProject">
+                    <property name="name" translatable="yes">Photos</property>
+                    <property name="description" translatable="yes">Access, organize and share your photos 
on GNOME</property>
+                    <property name="icon-name">org.gnome.Photos-symbolic</property>
+                    <property name="uri">https://gitlab.gnome.org/GNOME/gnome-photos.git</property>
+                    <property name="languages">C</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GbpNewcomersProject">
+                    <property name="name" translatable="yes">Polari</property>
+                    <property name="description" translatable="yes">An IRC Client for GNOME</property>
+                    <property name="icon-name">org.gnome.Polari-symbolic</property>
+                    <property name="uri">https://gitlab.gnome.org/GNOME/polari.git</property>
+                    <property name="languages">C
+    JavaScript</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GbpNewcomersProject">
+                    <property name="name" translatable="yes">Sound Recorder</property>
+                    <property name="description" translatable="yes">A simple and modern sound 
recorder</property>
+                    <property name="icon-name">org.gnome.SoundRecorder-symbolic</property>
+                    <property name="uri">https://gitlab.gnome.org/GNOME/gnome-sound-recorder.git</property>
+                    <property name="languages">JavaScript</property>
+                  </object>
+                </child>
               </object>
             </child>
           </object>


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