[gnome-boxes/polish-snapshot-preferences: 4/7] preferences, snapshot-list-row: Port to Hdy.ActionRow




commit a1277ec5d3ee56e6772c7eef89d008733db335d1
Author: Felipe Borges <felipeborges gnome org>
Date:   Tue Jan 4 14:52:58 2022 +0100

    preferences, snapshot-list-row: Port to Hdy.ActionRow

 data/ui/preferences/snapshot-list-row.ui | 7 +------
 src/preferences/snapshot-list-row.vala   | 2 +-
 2 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/data/ui/preferences/snapshot-list-row.ui b/data/ui/preferences/snapshot-list-row.ui
index 88aaa4fa..cf729b78 100644
--- a/data/ui/preferences/snapshot-list-row.ui
+++ b/data/ui/preferences/snapshot-list-row.ui
@@ -19,7 +19,7 @@
     </section>
   </menu>
 
-  <template class="BoxesSnapshotListRow" parent="GtkListBoxRow">
+  <template class="BoxesSnapshotListRow" parent="HdyActionRow">
     <property name="visible">True</property>
     <property name="can_focus">True</property>
 
@@ -28,7 +28,6 @@
         <property name="visible">true</property>
         <property name="can_focus">false</property>
         <property name="transition_type">slide-up-down</property>
-        <property name="margin">5</property>
 
         <child>
           <object class="GtkBox" id="show_name_box">
@@ -44,7 +43,6 @@
                 <property name="halign">start</property>
                 <property name="valign">center</property>
                 <property name="ellipsize">end</property>
-                <property name="margin">10</property>
               </object>
             </child>
 
@@ -53,9 +51,6 @@
                 <property name="visible">true</property>
                 <property name="menu_model">actions_menu</property>
                 <property name="valign">center</property>
-                <property name="margin_top">4</property>
-                <property name="margin_bottom">4</property>
-                <property name="margin_end">4</property>
                 <style>
                   <class name="flat" />
                 </style>
diff --git a/src/preferences/snapshot-list-row.vala b/src/preferences/snapshot-list-row.vala
index c23e63b8..c32ccb2b 100644
--- a/src/preferences/snapshot-list-row.vala
+++ b/src/preferences/snapshot-list-row.vala
@@ -1,7 +1,7 @@
 // This file is part of GNOME Boxes. License: LGPLv2+
 
 [GtkTemplate (ui = "/org/gnome/Boxes/ui/preferences/snapshot-list-row.ui")]
-private class Boxes.SnapshotListRow : Gtk.ListBoxRow {
+private class Boxes.SnapshotListRow : Hdy.ActionRow {
     public signal void deletion_requested (Boxes.PreferencesToast toast);
 
     public GVir.DomainSnapshot snapshot;


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