[gnome-control-center/wip/cdavis/sidebar-tweaks: 2/4] cc-panel-list: Remove use of `sidebar-icon` style




commit c19d6d16d1d53af1fe63f093a285b27ff560e355
Author: Christopher Davis <christopherdavis gnome org>
Date:   Fri Dec 17 13:09:20 2021 -0800

    cc-panel-list: Remove use of `sidebar-icon` style
    
    Generally sidebar icons aren't dimmed anymore.

 shell/cc-panel-list.c  | 2 --
 shell/cc-panel-list.ui | 6 ------
 2 files changed, 8 deletions(-)
---
diff --git a/shell/cc-panel-list.c b/shell/cc-panel-list.c
index 579b3561f..7417f0c81 100644
--- a/shell/cc-panel-list.c
+++ b/shell/cc-panel-list.c
@@ -293,7 +293,6 @@ row_data_new (CcPanelCategory     category,
 
   /* Icon */
   image = gtk_image_new_from_icon_name (icon);
-  gtk_style_context_add_class (gtk_widget_get_style_context (image), "sidebar-icon");
 
   gtk_grid_attach (GTK_GRID (grid), image, 0, 0, 1, 1);
 
@@ -314,7 +313,6 @@ row_data_new (CcPanelCategory     category,
   if (has_sidebar)
     {
       image = gtk_image_new_from_icon_name ("go-next-symbolic");
-      gtk_style_context_add_class (gtk_widget_get_style_context (image), "sidebar-icon");
       gtk_grid_attach (GTK_GRID (grid), image, 2, 0, 1, 1);
     }
 
diff --git a/shell/cc-panel-list.ui b/shell/cc-panel-list.ui
index a4d7594cb..896592a67 100644
--- a/shell/cc-panel-list.ui
+++ b/shell/cc-panel-list.ui
@@ -31,9 +31,6 @@
                         <child>
                           <object class="GtkImage">
                             <property name="icon_name">preferences-system-privacy-symbolic</property>
-                            <style>
-                              <class name="sidebar-icon" />
-                            </style>
                           </object>
                         </child>
                         <child>
@@ -46,9 +43,6 @@
                         <child>
                           <object class="GtkImage">
                             <property name="icon_name">go-next-symbolic</property>
-                            <style>
-                              <class name="sidebar-icon" />
-                            </style>
                           </object>
                         </child>
                       </object>


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