[epiphany] data-view: Move the Clear all button to an Action Bar at the bottom
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] data-view: Move the Clear all button to an Action Bar at the bottom
- Date: Thu, 2 Jul 2020 17:20:25 +0000 (UTC)
commit 088bb1ecc9ff494bdd53fb7a5cd6563ff8d15ce8
Author: Yetizone <andreii lisita gmail com>
Date: Thu Jul 2 19:55:32 2020 +0300
data-view: Move the Clear all button to an Action Bar at the bottom
src/resources/gtk/data-view.ui | 36 +++++++++++++++++-------------------
1 file changed, 17 insertions(+), 19 deletions(-)
---
diff --git a/src/resources/gtk/data-view.ui b/src/resources/gtk/data-view.ui
index 9cd6653c2..a5859a184 100644
--- a/src/resources/gtk/data-view.ui
+++ b/src/resources/gtk/data-view.ui
@@ -7,11 +7,6 @@
<property name="can_focus">False</property>
<property name="icon_name">edit-find-symbolic</property>
</object>
- <object class="GtkImage" id="clear_all_image">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="icon_name">user-trash-symbolic</property>
- </object>
<object class="GtkImage" id="back_image">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -39,20 +34,6 @@
<signal name="clicked" handler="on_back_button_clicked"/>
</object>
</child>
- <child>
- <object class="GtkButton" id="clear_all_button">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="image">clear_all_image</property>
- <property name="always_show_image">True</property>
- <signal name="clicked" handler="on_clear_all_button_clicked" swapped="yes"/>
- <style>
- <class name="destructive-action"/>
- <class name="image-button"/>
- </style>
- </object>
- </child>
<child>
<object class="GtkToggleButton" id="search_button">
<property name="visible">True</property>
@@ -268,6 +249,23 @@
<property name="expand">True</property>
</packing>
</child>
+ <child>
+ <object class="GtkActionBar">
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkButton" id="clear_all_button">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="label">Clear all</property>
+ <signal name="clicked" handler="on_clear_all_button_clicked" swapped="yes"/>
+ <style>
+ <class name="destructive-action"/>
+ </style>
+ </object>
+ </child>
+ </object>
+ </child>
</object>
</child>
</template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]