[nautilus/wip/antoniof/gnome-42: 42/72] Revert "general: Stop using GtkButton:relief and GtkScrolledWindow:shadow-type"




commit c4e54b97e76a196d77e69789df163080d90bb81c
Author: António Fernandes <antoniof gnome org>
Date:   Fri Feb 11 19:01:51 2022 +0000

    Revert "general: Stop using GtkButton:relief and GtkScrolledWindow:shadow-type"
    
    This reverts commit 225f1dffc4247e5c4d1820d57f71cf82bbb3533a.

 src/nautilus-notebook.c                          | 4 ++--
 src/resources/ui/nautilus-batch-rename-dialog.ui | 8 ++------
 src/resources/ui/nautilus-column-chooser.ui      | 4 +---
 src/resources/ui/nautilus-window.ui              | 4 ++--
 4 files changed, 7 insertions(+), 13 deletions(-)
---
diff --git a/src/nautilus-notebook.c b/src/nautilus-notebook.c
index ffde9a899..ad4945d65 100644
--- a/src/nautilus-notebook.c
+++ b/src/nautilus-notebook.c
@@ -374,8 +374,8 @@ build_tab_label (NautilusNotebook   *notebook,
 
     /* Tab close button */
     close_button = gtk_button_new_from_icon_name ("window-close-symbolic", GTK_ICON_SIZE_MENU);
-    gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (close_button)),
-                                 "flat");
+    gtk_button_set_relief (GTK_BUTTON (close_button),
+                           GTK_RELIEF_NONE);
     /* don't allow focus on the close button */
     gtk_widget_set_focus_on_click (close_button, FALSE);
 
diff --git a/src/resources/ui/nautilus-batch-rename-dialog.ui 
b/src/resources/ui/nautilus-batch-rename-dialog.ui
index 4f84fb5bf..2daf8161b 100644
--- a/src/resources/ui/nautilus-batch-rename-dialog.ui
+++ b/src/resources/ui/nautilus-batch-rename-dialog.ui
@@ -459,6 +459,7 @@
                     <child>
                       <object class="GtkButton" id="conflict_down">
                         <property name="visible">True</property>
+                        <property name="relief">none</property>
                          <signal name="clicked" handler="select_next_conflict_down" swapped="yes" />
                         <child>
                           <object class="GtkImage">
@@ -467,14 +468,12 @@
                             <property name="icon-size">1</property>
                           </object>
                         </child>
-                        <style>
-                          <class name="flat"/>
-                        </style>
                       </object>
                     </child>
                     <child>
                       <object class="GtkButton" id="conflict_up">
                         <property name="visible">True</property>
+                        <property name="relief">GTK_RELIEF_NONE</property>
                         <signal name="clicked" handler="select_next_conflict_up" swapped="yes" />
                         <child>
                           <object class="GtkImage">
@@ -483,9 +482,6 @@
                             <property name="icon-size">1</property>
                           </object>
                         </child>
-                        <style>
-                          <class name="flat"/>
-                        </style>
                       </object>
                     </child>
                   </object>
diff --git a/src/resources/ui/nautilus-column-chooser.ui b/src/resources/ui/nautilus-column-chooser.ui
index 5f44ea8f9..21af73ae2 100644
--- a/src/resources/ui/nautilus-column-chooser.ui
+++ b/src/resources/ui/nautilus-column-chooser.ui
@@ -22,6 +22,7 @@
       <object class="GtkScrolledWindow">
         <property name="visible">True</property>
         <property name="can-focus">False</property>
+        <property name="shadow-type">in</property>
         <child>
           <object class="GtkTreeView" id="view">
             <property name="visible">True</property>
@@ -62,9 +63,6 @@
             </child>
           </object>
         </child>
-        <style>
-          <class name="frame"/>
-        </style>
       </object>
       <packing>
         <property name="expand">False</property>
diff --git a/src/resources/ui/nautilus-window.ui b/src/resources/ui/nautilus-window.ui
index 472ee7fce..407014ecc 100644
--- a/src/resources/ui/nautilus-window.ui
+++ b/src/resources/ui/nautilus-window.ui
@@ -80,6 +80,7 @@
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
+                                <property name="relief">none</property>
                                 <property name="focus_on_click">False</property>
                                 <child>
                                   <object class="GtkImage">
@@ -91,7 +92,6 @@
                                 </child>
                                 <style>
                                   <class name="image-button"/>
-                                  <class name="flat"/>
                                 </style>
                               </object>
                             </child>
@@ -148,6 +148,7 @@
                                 <property name="visible">True</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
+                                <property name="relief">none</property>
                                 <property name="focus_on_click">False</property>
                                 <signal name="clicked" handler="on_notification_operation_close_clicked" 
object="NautilusWindow" swapped="no"/>
                                 <child>
@@ -160,7 +161,6 @@
                                 </child>
                                 <style>
                                   <class name="image-button"/>
-                                  <class name="flat"/>
                                 </style>
                               </object>
                             </child>


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