[gnome-control-center/wip/cdavis/40-consistency] cc-applications-panel: Use libhandy preferences styling



commit 7776d8da9d38c64e1e7743de3fc8b16be4d06d48
Author: Christopher Davis <brainblasted disroot org>
Date:   Thu Feb 11 23:27:16 2021 -0800

    cc-applications-panel: Use libhandy preferences styling
    
    libhandy has pre-built widgets we can use for preference
    styling. Make use of them here.

 panels/applications/cc-applications-panel.c  | 188 +++++-----
 panels/applications/cc-applications-panel.ui | 505 +++++++++------------------
 2 files changed, 255 insertions(+), 438 deletions(-)
---
diff --git a/panels/applications/cc-applications-panel.c b/panels/applications/cc-applications-panel.c
index 2ec2841d8..0bfb6e8f3 100644
--- a/panels/applications/cc-applications-panel.c
+++ b/panels/applications/cc-applications-panel.c
@@ -56,92 +56,92 @@
 
 struct _CcApplicationsPanel
 {
-  CcPanel            parent;
-
-  GtkBox            *sidebar_box;
-  GtkListBox        *sidebar_listbox;
-  GtkEntry          *sidebar_search_entry;
-  GtkButton         *header_button;
-  GtkLabel          *title_label;
-  GAppInfoMonitor   *monitor;
-  gulong             monitor_id;
+  CcPanel              parent;
+
+  GtkBox              *sidebar_box;
+  GtkListBox          *sidebar_listbox;
+  GtkEntry            *sidebar_search_entry;
+  GtkButton           *header_button;
+  GtkLabel            *title_label;
+  GAppInfoMonitor     *monitor;
+  gulong               monitor_id;
 #ifdef HAVE_MALCONTENT
-  GCancellable      *cancellable;
+  GCancellable        *cancellable;
 
-  MctAppFilter      *app_filter;
-  MctManager        *manager;
-  guint              app_filter_id;
+  MctAppFilter        *app_filter;
+  MctManager          *manager;
+  guint                app_filter_id;
 #endif
 
-  gchar             *current_app_id;
-  gchar             *current_portal_app_id;
-
-  GHashTable        *globs;
-  GHashTable        *search_providers;
-
-  GDBusProxy        *perm_store;
-  GSettings         *notification_settings;
-  GSettings         *location_settings;
-  GSettings         *privacy_settings;
-  GSettings         *search_settings;
-
-  GtkStack          *stack;
-  HdyStatusPage     *empty_page;
-  GtkScrolledWindow *settings_page;
-  GtkButton         *install_button;
-
-  GtkBox            *permission_section;
-  GtkListBox        *permission_list;
-  CcToggleRow       *camera;
-  CcInfoRow         *no_camera;
-  CcToggleRow       *location;
-  CcInfoRow         *no_location;
-  CcToggleRow       *shortcuts;
-  CcToggleRow       *microphone;
-  CcInfoRow         *no_microphone;
-  CcInfoRow         *builtin;
-  GtkDialog         *builtin_dialog;
-  GtkLabel          *builtin_label;
-  GtkListBox        *builtin_list;
-
-  GtkBox            *integration_section;
-  GtkListBox        *integration_list;
-  CcToggleRow       *notification;
-  CcToggleRow       *background;
-  CcToggleRow       *wallpaper;
-  CcToggleRow       *sound;
-  CcInfoRow         *no_sound;
-  CcToggleRow       *search;
-  CcInfoRow         *no_search;
-
-  GtkBox            *handler_section;
-  GtkButton         *handler_reset;
-  GtkListBox        *handler_list;
-  CcInfoRow         *hypertext;
-  CcInfoRow         *text;
-  CcInfoRow         *images;
-  CcInfoRow         *fonts;
-  CcInfoRow         *archives;
-  CcInfoRow         *packages;
-  CcInfoRow         *audio;
-  CcInfoRow         *video;
-  CcInfoRow         *other;
-  CcInfoRow         *link;
-
-  GtkBox            *usage_section;
-  GtkListBox        *usage_list;
-  CcInfoRow         *storage;
-  GtkDialog         *storage_dialog;
-  GtkListBox        *storage_list;
-  CcInfoRow         *app;
-  CcInfoRow         *data;
-  CcInfoRow         *cache;
-  CcInfoRow         *total;
-  GtkButton         *clear_cache_button;
-
-  guint64            app_size;
-  guint64            cache_size;
-  guint64            data_size;
+  gchar               *current_app_id;
+  gchar               *current_portal_app_id;
+
+  GHashTable          *globs;
+  GHashTable          *search_providers;
+
+  GDBusProxy          *perm_store;
+  GSettings           *notification_settings;
+  GSettings           *location_settings;
+  GSettings           *privacy_settings;
+  GSettings           *search_settings;
+
+  GtkStack            *stack;
+  HdyStatusPage       *empty_page;
+  HdyPreferencesPage  *settings_page;
+  GtkButton           *install_button;
+
+  HdyPreferencesGroup *permission_section;
+  GtkListBox          *permission_list;
+  CcToggleRow         *camera;
+  CcInfoRow           *no_camera;
+  CcToggleRow         *location;
+  CcInfoRow           *no_location;
+  CcToggleRow         *shortcuts;
+  CcToggleRow         *microphone;
+  CcInfoRow           *no_microphone;
+  CcInfoRow           *builtin;
+  GtkDialog           *builtin_dialog;
+  GtkLabel            *builtin_label;
+  GtkListBox          *builtin_list;
+
+  HdyPreferencesGroup *integration_section;
+  GtkListBox          *integration_list;
+  CcToggleRow         *notification;
+  CcToggleRow         *background;
+  CcToggleRow         *wallpaper;
+  CcToggleRow         *sound;
+  CcInfoRow           *no_sound;
+  CcToggleRow         *search;
+  CcInfoRow           *no_search;
+
+  GtkBox              *handler_section;
+  GtkButton           *handler_reset;
+  GtkListBox          *handler_list;
+  CcInfoRow           *hypertext;
+  CcInfoRow           *text;
+  CcInfoRow           *images;
+  CcInfoRow           *fonts;
+  CcInfoRow           *archives;
+  CcInfoRow           *packages;
+  CcInfoRow           *audio;
+  CcInfoRow           *video;
+  CcInfoRow           *other;
+  CcInfoRow           *link;
+
+  GtkBox              *usage_section;
+  GtkListBox          *usage_list;
+  CcInfoRow           *storage;
+  GtkDialog           *storage_dialog;
+  GtkListBox          *storage_list;
+  CcInfoRow           *app;
+  CcInfoRow           *data;
+  CcInfoRow           *cache;
+  CcInfoRow           *total;
+  GtkButton           *clear_cache_button;
+
+  guint64              app_size;
+  guint64              cache_size;
+  guint64              data_size;
 };
 
 static void select_app (CcApplicationsPanel *self,
@@ -2068,30 +2068,6 @@ cc_applications_panel_init (CcApplicationsPanel *self)
 
   g_signal_connect_object (self->header_button, "clicked", G_CALLBACK (open_software_cb), self, 
G_CONNECT_SWAPPED);
 
-  gtk_list_box_set_header_func (self->permission_list,
-                                cc_list_box_update_header_func,
-                                NULL, NULL);
-
-  gtk_list_box_set_header_func (self->integration_list,
-                                cc_list_box_update_header_func,
-                                NULL, NULL);
-
-  gtk_list_box_set_header_func (self->handler_list,
-                                cc_list_box_update_header_func,
-                                NULL, NULL);
-
-  gtk_list_box_set_header_func (self->usage_list,
-                                cc_list_box_update_header_func,
-                                NULL, NULL);
-
-  gtk_list_box_set_header_func (self->builtin_list,
-                                cc_list_box_update_header_func,
-                                NULL, NULL);
-
-  gtk_list_box_set_header_func (self->storage_list,
-                                cc_list_box_update_header_func,
-                                NULL, NULL);
-
   gtk_list_box_set_sort_func (self->sidebar_listbox,
                               compare_rows,
                               NULL, NULL);
diff --git a/panels/applications/cc-applications-panel.ui b/panels/applications/cc-applications-panel.ui
index 1b25ead42..4caf23a5e 100644
--- a/panels/applications/cc-applications-panel.ui
+++ b/panels/applications/cc-applications-panel.ui
@@ -24,350 +24,193 @@
           </object>
         </child>
         <child>
-          <object class="GtkScrolledWindow" id="settings_page">
-            <property name="visible">1</property>
-            <property name="hscrollbar-policy">never</property>
+          <object class="HdyPreferencesPage" id="settings_page">
+            <property name="visible">True</property>
+            <child>
+              <object class="HdyPreferencesGroup" id="permission_section">
+                <property name="visible">True</property>
+                <property name="title" translatable="yes">Permissions &amp; Access</property>
+                <property name="description" translatable="yes">Data and services that this app has asked 
for access to and permissions that it requires.</property>
+                <child>
+                  <object class="GtkListBox" id="permission_list">
+                    <property name="visible">1</property>
+                    <property name="selection-mode">none</property>
+                    <signal name="row-activated" handler="permission_row_activated_cb" 
object="CcApplicationsPanel" swapped="yes"/>
+                    <child>
+                      <object class="CcToggleRow" id="camera">
+                        <property name="title" translatable="yes">Camera</property>
+                        <signal name="notify::allowed" handler="camera_cb" object="CcApplicationsPanel" 
swapped="yes"/>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="CcInfoRow" id="no_camera">
+                        <property name="title" translatable="yes">Camera</property>
+                        <property name="info" translatable="yes">Disabled</property>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="CcToggleRow" id="microphone">
+                        <property name="title" translatable="yes">Microphone</property>
+                        <signal name="notify::allowed" handler="microphone_cb" object="CcApplicationsPanel" 
swapped="yes"/>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="CcInfoRow" id="no_microphone">
+                        <property name="title" translatable="yes">Microphone</property>
+                        <property name="info" translatable="yes">Disabled</property>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="CcToggleRow" id="location">
+                        <property name="title" translatable="yes">Location Services</property>
+                        <signal name="notify::allowed" handler="location_cb" object="CcApplicationsPanel" 
swapped="yes"/>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="CcInfoRow" id="no_location">
+                        <property name="title" translatable="yes">Location Services</property>
+                        <property name="info" translatable="yes">Disabled</property>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="CcInfoRow" id="builtin">
+                        <property name="title" translatable="yes">Built-in Permissions</property>
+                        <property name="info" translatable="yes">Cannot be changed</property>
+                        <property name="has-expander">True</property>
+                        <property name="is-link">True</property>
+                      </object>
+                    </child>
+                    <style>
+                      <class name="content"/>
+                    </style>
+                  </object>
+                </child>
+                <child>
+                  <object class="GtkLabel">
+                    <property name="margin_top">12</property>
+                    <property name="visible">1</property>
+                    <property name="xalign">0</property>
+                    <property name="wrap">1</property>
+                    <property name="max-width-chars">50</property>
+                    <property name="label" translatable="yes">Individual permissions for applications can be 
reviewed in the &lt;a href=&quot;privacy&quot;&gt;Privacy&lt;/a&gt; Settings.</property>
+                    <property name="use-markup">1</property>
+                    <signal name="activate-link" handler="privacy_link_cb" object="CcApplicationsPanel" 
swapped="yes"/>
+                  </object>
+                </child>
+              </object>
+            </child>
             <child>
-              <object class="HdyClamp">
+              <object class="HdyPreferencesGroup" id="integration_section">
                 <property name="visible">True</property>
-                <property name="margin_top">32</property>
-                <property name="margin_bottom">32</property>
-                <property name="margin_start">12</property>
-                <property name="margin_end">12</property>
+                <property name="title" translatable="yes">Integration</property>
+                <property name="description" translatable="yes">System features used by this 
application.</property>
                 <child>
-                  <object class="GtkBox">
+                  <object class="GtkListBox" id="integration_list">
                     <property name="visible">1</property>
-                    <property name="orientation">vertical</property>
-                    <property name="spacing">24</property>
-                    <property name="hexpand">1</property>
+                    <property name="selection-mode">none</property>
                     <child>
-                      <object class="GtkBox" id="permission_section">
-                        <property name="visible">1</property>
-                        <property name="orientation">vertical</property>
-                        <property name="spacing">12</property>
-                        <style>
-                          <class name="section"/>
-                        </style>
-                        <child>
-                          <object class="GtkBox">
-                            <property name="visible">1</property>
-                            <property name="orientation">vertical</property>
-                            <property name="spacing">6</property>
-                            <child>
-                              <object class="GtkLabel">
-                                <property name="visible">1</property>
-                                <property name="xalign">0</property>
-                                <property name="label" translatable="yes">Permissions &amp; Access</property>
-                                <style>
-                                  <class name="section-title"/>
-                                </style>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="GtkLabel">
-                                <property name="visible">1</property>
-                                <property name="xalign">0</property>
-                                <property name="wrap">1</property>
-                                <property name="max-width-chars">50</property>
-                                <property name="label" translatable="yes">Data and services that this app 
has asked for access to and permissions that it requires.</property>
-                                <style>
-                                  <class name="section-subtitle"/>
-                                </style>
-                              </object>
-                            </child>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkListBox" id="permission_list">
-                            <property name="visible">1</property>
-                            <property name="selection-mode">none</property>
-                            <signal name="row-activated" handler="permission_row_activated_cb" 
object="CcApplicationsPanel" swapped="yes"/>
-                            <child>
-                              <object class="CcToggleRow" id="camera">
-                                <property name="title" translatable="yes">Camera</property>
-                                <signal name="notify::allowed" handler="camera_cb" 
object="CcApplicationsPanel" swapped="yes"/>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="CcInfoRow" id="no_camera">
-                                <property name="title" translatable="yes">Camera</property>
-                                <property name="info" translatable="yes">Disabled</property>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="CcToggleRow" id="microphone">
-                                <property name="title" translatable="yes">Microphone</property>
-                                <signal name="notify::allowed" handler="microphone_cb" 
object="CcApplicationsPanel" swapped="yes"/>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="CcInfoRow" id="no_microphone">
-                                <property name="title" translatable="yes">Microphone</property>
-                                <property name="info" translatable="yes">Disabled</property>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="CcToggleRow" id="location">
-                                <property name="title" translatable="yes">Location Services</property>
-                                <signal name="notify::allowed" handler="location_cb" 
object="CcApplicationsPanel" swapped="yes"/>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="CcInfoRow" id="no_location">
-                                <property name="title" translatable="yes">Location Services</property>
-                                <property name="info" translatable="yes">Disabled</property>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="CcInfoRow" id="builtin">
-                                <property name="title" translatable="yes">Built-in Permissions</property>
-                                <property name="info" translatable="yes">Cannot be changed</property>
-                                <property name="has-expander">True</property>
-                                <property name="is-link">True</property>
-                              </object>
-                            </child>
-                            <style>
-                              <class name="view"/>
-                              <class name="frame"/>
-                            </style>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkLabel">
-                            <property name="visible">1</property>
-                            <property name="xalign">0</property>
-                            <property name="wrap">1</property>
-                            <property name="max-width-chars">50</property>
-                            <property name="label" translatable="yes">Individual permissions for 
applications can be reviewed in the &lt;a href=&quot;privacy&quot;&gt;Privacy&lt;/a&gt; Settings.</property>
-                            <property name="use-markup">1</property>
-                            <signal name="activate-link" handler="privacy_link_cb" 
object="CcApplicationsPanel" swapped="yes"/>
-                          </object>
-                        </child>
+                      <object class="CcToggleRow" id="search">
+                        <property name="title" translatable="yes">Search</property>
+                        <signal name="notify::allowed" handler="search_cb" object="CcApplicationsPanel" 
swapped="yes"/>
                       </object>
                     </child>
                     <child>
-                      <object class="GtkBox" id="integration_section">
-                        <property name="visible">1</property>
-                        <property name="orientation">vertical</property>
-                        <property name="spacing">12</property>
-                        <style>
-                          <class name="section"/>
-                        </style>
-                        <child>
-                          <object class="GtkBox">
-                            <property name="visible">1</property>
-                            <property name="orientation">vertical</property>
-                            <property name="spacing">6</property>
-                            <child>
-                              <object class="GtkLabel">
-                                <property name="visible">1</property>
-                                <property name="xalign">0</property>
-                                <property name="label" translatable="yes">Integration</property>
-                                <style>
-                                  <class name="section-title"/>
-                                </style>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="GtkLabel">
-                                <property name="visible">1</property>
-                                <property name="xalign">0</property>
-                                <property name="wrap">1</property>
-                                <property name="max-width-chars">50</property>
-                                <property name="label" translatable="yes">System features used by this 
application.</property>
-                                <style>
-                                  <class name="section-subtitle"/>
-                                </style>
-                              </object>
-                            </child>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkListBox" id="integration_list">
-                            <property name="visible">1</property>
-                            <property name="selection-mode">none</property>
-                            <child>
-                              <object class="CcToggleRow" id="search">
-                                <property name="title" translatable="yes">Search</property>
-                                <signal name="notify::allowed" handler="search_cb" 
object="CcApplicationsPanel" swapped="yes"/>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="CcInfoRow" id="no_search">
-                                <property name="title" translatable="yes">Search</property>
-                                <property name="info" translatable="yes">Disabled</property>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="CcToggleRow" id="notification">
-                                <property name="title" translatable="yes">Notifications</property>
-                                <signal name="notify::allowed" handler="notification_cb" 
object="CcApplicationsPanel" swapped="yes"/>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="CcToggleRow" id="background">
-                                <property name="title" translatable="yes">Run in background</property>
-                                <signal name="notify::allowed" handler="background_cb" swapped="yes"/>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="CcToggleRow" id="wallpaper">
-                                <property name="title" translatable="yes">Set Desktop Background</property>
-                                <signal name="notify::allowed" handler="wallpaper_cb" swapped="yes"/>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="CcToggleRow" id="sound">
-                                <property name="title" translatable="yes">Sounds</property>
-                                <signal name="notify::allowed" handler="sound_cb" 
object="CcApplicationsPanel" swapped="yes"/>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="CcInfoRow" id="no_sound">
-                                <property name="title" translatable="yes">Sounds</property>
-                                <property name="info" translatable="yes">Disabled</property>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="CcToggleRow" id="shortcuts">
-                                <property name="title" translatable="yes">Inhibit system keyboard 
shortcuts</property>
-                                <signal name="notify::allowed" handler="shortcuts_cb" swapped="yes"/>
-                              </object>
-                            </child>
-                            <style>
-                              <class name="view"/>
-                              <class name="frame"/>
-                            </style>
-                          </object>
-                        </child>
+                      <object class="CcInfoRow" id="no_search">
+                        <property name="title" translatable="yes">Search</property>
+                        <property name="info" translatable="yes">Disabled</property>
                       </object>
                     </child>
                     <child>
-                      <object class="GtkBox" id="handler_section">
-                        <property name="visible">1</property>
-                        <property name="orientation">vertical</property>
-                        <property name="spacing">12</property>
-                        <style>
-                          <class name="section"/>
-                        </style>
-                        <child>
-                          <object class="GtkBox">
-                            <property name="visible">1</property>
-                            <property name="spacing">6</property>
-                            <child>
-                              <object class="GtkBox">
-                                <property name="visible">1</property>
-                                <property name="orientation">vertical</property>
-                                <property name="spacing">6</property>
-                                <child>
-                                  <object class="GtkLabel">
-                                    <property name="visible">1</property>
-                                    <property name="xalign">0</property>
-                                    <property name="label" translatable="yes">Default Handlers</property>
-                                    <style>
-                                      <class name="section-title"/>
-                                    </style>
-                                  </object>
-                                </child>
-                                <child>
-                                  <object class="GtkLabel">
-                                    <property name="visible">1</property>
-                                    <property name="xalign">0</property>
-                                    <property name="wrap">1</property>
-                                    <property name="max-width-chars">50</property>
-                                    <property name="label" translatable="yes">Types of files and links that 
this application opens.</property>
-                                    <style>
-                                      <class name="section-subtitle"/>
-                                    </style>
-                                  </object>
-                                </child>
-                              </object>
-                              <packing>
-                                <property name="expand">1</property>
-                              </packing>
-                            </child>
-                            <child>
-                              <object class="GtkButton" id="handler_reset">
-                                <property name="visible">1</property>
-                                <property name="halign">end</property>
-                                <property name="valign">center</property>
-                                <property name="label" translatable="yes">Reset</property>
-                                <signal name="clicked" handler="handler_reset_cb" 
object="CcApplicationsPanel" swapped="yes"/>
-                              </object>
-                            </child>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkListBox" id="handler_list">
-                            <property name="visible">1</property>
-                            <property name="selection-mode">none</property>
-                            <signal name="row-activated" handler="handler_row_activated_cb" 
object="CcApplicationsPanel" swapped="yes"/>
-                            <style>
-                              <class name="view"/>
-                              <class name="frame"/>
-                            </style>
-                          </object>
-                        </child>
+                      <object class="CcToggleRow" id="notification">
+                        <property name="title" translatable="yes">Notifications</property>
+                        <signal name="notify::allowed" handler="notification_cb" 
object="CcApplicationsPanel" swapped="yes"/>
                       </object>
                     </child>
                     <child>
-                      <object class="GtkBox" id="usage_section">
-                        <property name="visible">1</property>
-                        <property name="orientation">vertical</property>
-                        <property name="spacing">12</property>
-                        <style>
-                          <class name="section"/>
-                        </style>
-                        <child>
-                          <object class="GtkBox">
-                            <property name="visible">1</property>
-                            <property name="orientation">vertical</property>
-                            <property name="spacing">6</property>
-                            <child>
-                              <object class="GtkLabel">
-                                <property name="visible">1</property>
-                                <property name="xalign">0</property>
-                                <property name="label" translatable="yes">Usage</property>
-                                <style>
-                                  <class name="section-title"/>
-                                </style>
-                              </object>
-                            </child>
-                            <child>
-                              <object class="GtkLabel">
-                                <property name="visible">1</property>
-                                <property name="xalign">0</property>
-                                <property name="wrap">1</property>
-                                <property name="max-width-chars">50</property>
-                                <property name="label" translatable="yes">How much resources this 
application is using.</property>
-                                <style>
-                                  <class name="section-subtitle"/>
-                                </style>
-                              </object>
-                            </child>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkListBox" id="usage_list">
-                            <property name="visible">1</property>
-                            <property name="selection-mode">none</property>
-                            <signal name="row-activated" handler="storage_row_activated_cb" 
object="CcApplicationsPanel" swapped="yes"/>
-                            <child>
-                              <object class="CcInfoRow" id="storage">
-                                <property name="title" translatable="yes">Storage</property>
-                                <property name="info">unknown</property>
-                                <property name="has-expander">1</property>
-                                <property name="is-link">1</property>
-                              </object>
-                            </child>
-                            <style>
-                              <class name="view"/>
-                              <class name="frame"/>
-                            </style>
-                          </object>
-                        </child>
+                      <object class="CcToggleRow" id="background">
+                        <property name="title" translatable="yes">Run in background</property>
+                        <signal name="notify::allowed" handler="background_cb" swapped="yes"/>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="CcToggleRow" id="wallpaper">
+                        <property name="title" translatable="yes">Set Desktop Background</property>
+                        <signal name="notify::allowed" handler="wallpaper_cb" swapped="yes"/>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="CcToggleRow" id="sound">
+                        <property name="title" translatable="yes">Sounds</property>
+                        <signal name="notify::allowed" handler="sound_cb" object="CcApplicationsPanel" 
swapped="yes"/>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="CcInfoRow" id="no_sound">
+                        <property name="title" translatable="yes">Sounds</property>
+                        <property name="info" translatable="yes">Disabled</property>
+                      </object>
+                    </child>
+                    <child>
+                      <object class="CcToggleRow" id="shortcuts">
+                        <property name="title" translatable="yes">Inhibit system keyboard 
shortcuts</property>
+                        <signal name="notify::allowed" handler="shortcuts_cb" swapped="yes"/>
+                      </object>
+                    </child>
+                    <style>
+                      <class name="content"/>
+                    </style>
+                  </object>
+                </child>
+              </object>
+            </child>
+            <child>
+              <object class="HdyPreferencesGroup" id="handler_section">
+                <property name="visible">True</property>
+                <property name="title" translatable="yes">Default Handlers</property>
+                <property name="description" translatable="yes">Types of files and links that this 
application opens.</property>
+                <child>
+                  <object class="GtkListBox" id="handler_list">
+                    <property name="visible">1</property>
+                    <property name="selection-mode">none</property>
+                    <signal name="row-activated" handler="handler_row_activated_cb" 
object="CcApplicationsPanel" swapped="yes"/>
+                    <style>
+                      <class name="content"/>
+                    </style>
+                  </object>
+                </child>
+                <child>
+                  <object class="GtkButton" id="handler_reset">
+                    <property name="visible">True</property>
+                    <property name="halign">end</property>
+                    <property name="hexpand">False</property>
+                    <property name="margin_top">12</property>
+                    <property name="label" translatable="yes">Reset</property>
+                    <signal name="clicked" handler="handler_reset_cb" object="CcApplicationsPanel" 
swapped="yes"/>
+                  </object>
+                </child>
+              </object>
+            </child>
+            <child>
+              <object class="HdyPreferencesGroup" id="usage_section">
+                <property name="visible">True</property>
+                <property name="title" translatable="yes">Usage</property>
+                <property name="description" translatable="yes">How much resources this application is 
using.</property>
+                <child>
+                  <object class="GtkListBox" id="usage_list">
+                    <property name="visible">1</property>
+                    <property name="selection-mode">none</property>
+                    <signal name="row-activated" handler="storage_row_activated_cb" 
object="CcApplicationsPanel" swapped="yes"/>
+                    <child>
+                      <object class="CcInfoRow" id="storage">
+                        <property name="title" translatable="yes">Storage</property>
+                        <property name="info">unknown</property>
+                        <property name="has-expander">1</property>
+                        <property name="is-link">1</property>
                       </object>
                     </child>
+                    <style>
+                      <class name="content"/>
+                    </style>
                   </object>
                 </child>
               </object>
@@ -487,8 +330,7 @@
             <property name="visible">1</property>
             <property name="selection-mode">none</property>
             <style>
-              <class name="view"/>
-              <class name="frame"/>
+              <class name="content"/>
             </style>
           </object>
         </child>
@@ -548,8 +390,7 @@
               </object>
             </child>
             <style>
-              <class name="view"/>
-              <class name="frame"/>
+              <class name="content"/>
             </style>
           </object>
         </child>


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