summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorLorenz Wildberg <lorenz@wild-fisch.de>2021-07-19 12:25:51 +0200
committerNiels De Graef <nielsdegraef@gmail.com>2021-08-20 11:34:23 +0000
commit5fb15863bb407c5768da51f0341a13f53b5f5307 (patch)
tree4bfc2b0261a22373b401c487b6879189459ce3d6 /data
parenta5944bb6a9f969c80d600b4c5cf3f852bac4d5a3 (diff)
downloadgnome-contacts-5fb15863bb407c5768da51f0341a13f53b5f5307.tar.gz
main-windows: Add selection mode button
On touchscreen devices you must press your finger for some seconds and with a mouse you must right-click on an item to activate selection mode. If you don't know these operations it is impossible to activate selection mode. Now there is a selection mode button like in all other gnome apps. If you click it, you go into selection mode and can select items with just one click.
Diffstat (limited to 'data')
-rw-r--r--data/ui/contacts-main-window.ui25
1 files changed, 25 insertions, 0 deletions
diff --git a/data/ui/contacts-main-window.ui b/data/ui/contacts-main-window.ui
index b584238..ee0cfd1 100644
--- a/data/ui/contacts-main-window.ui
+++ b/data/ui/contacts-main-window.ui
@@ -188,6 +188,30 @@
<property name="pack_type">start</property>
</packing>
</child>
+
+ <child>
+ <object class="GtkButton" id="selection_button">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+ <property name="tooltip_text" translatable="yes">Select Items</property>
+ <signal name="clicked" handler="on_selection_button_clicked"/>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="icon_name">object-select-symbolic</property>
+ <property name="icon_size">1</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="pack_type">end</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+
<child>
<object class="GtkMenuButton" id="hamburger_menu_button">
<property name="visible">True</property>
@@ -206,6 +230,7 @@
</object>
<packing>
<property name="pack_type">end</property>
+ <property name="position">1</property>
</packing>
</child>
<child>