[epiphany] history-dialog: Replace the GtkFrame by the frame style class



commit fee74dbc55a41b924d65403682e28ceb8e87bb0d
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Tue May 28 21:17:11 2019 +0200

    history-dialog: Replace the GtkFrame by the frame style class
    
    This simplifies the code a bit.

 src/resources/gtk/history-dialog.ui | 26 +++++++++-----------------
 1 file changed, 9 insertions(+), 17 deletions(-)
---
diff --git a/src/resources/gtk/history-dialog.ui b/src/resources/gtk/history-dialog.ui
index bad7bed0d..609e8e684 100644
--- a/src/resources/gtk/history-dialog.ui
+++ b/src/resources/gtk/history-dialog.ui
@@ -99,27 +99,19 @@
                     <property name="maximum_width">600</property>
                     <property name="linear_growth_width">400</property>
                     <child>
-                      <object class="GtkFrame">
+                      <object class="GtkListBox" id="listbox">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="margin_top">6</property>
                         <property name="margin_bottom">6</property>
-                        <property name="label_xalign">0</property>
-                        <property name="shadow_type">in</property>
-                        <child>
-                          <object class="GtkListBox" id="listbox">
-                            <property name="visible">True</property>
-                            <property name="can_focus">False</property>
-                            <property name="selection_mode">multiple</property>
-                            <property name="activate_on_single_click">False</property>
-                            <signal name="button-press-event" handler="on_listbox_button_press_event" 
swapped="no"/>
-                            <signal name="key-press-event" handler="on_listbox_key_press_event" 
swapped="no"/>
-                            <signal name="row-activated" handler="on_listbox_row_activated" swapped="no"/>
-                          </object>
-                        </child>
-                        <child type="label_item">
-                          <placeholder/>
-                        </child>
+                        <property name="selection_mode">multiple</property>
+                        <property name="activate_on_single_click">False</property>
+                        <signal name="button-press-event" handler="on_listbox_button_press_event" 
swapped="no"/>
+                        <signal name="key-press-event" handler="on_listbox_key_press_event" swapped="no"/>
+                        <signal name="row-activated" handler="on_listbox_row_activated" swapped="no"/>
+                        <style>
+                          <class name="frame"/>
+                        </style>
                       </object>
                     </child>
                   </object>


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