[gnome-contacts] Window: Move hamburger menu elements in a box
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Window: Move hamburger menu elements in a box
- Date: Tue, 4 Sep 2018 18:24:27 +0000 (UTC)
commit 3b0f6b09ad6a445b2f1ba500cda622bf98122b0f
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Aug 23 17:12:19 2018 +0200
Window: Move hamburger menu elements in a box
Puts the elements of the hamburger menu into a box, while keeping the
elements that need to be into a grid into one.
This will make expanding the hamburger menu easier by avoiding having
to set and update packing properties of each and every element of the
menu.
data/ui/contacts-window.ui | 99 ++++++++++++++++++++++++----------------------
1 file changed, 51 insertions(+), 48 deletions(-)
---
diff --git a/data/ui/contacts-window.ui b/data/ui/contacts-window.ui
index 83ff946..79c4715 100644
--- a/data/ui/contacts-window.ui
+++ b/data/ui/contacts-window.ui
@@ -3,10 +3,11 @@
<!-- interface-requires gtk+ 3.22 -->
<object class="GtkPopover" id="hamburger_menu_popover">
<child>
- <object class="GtkGrid">
+ <object class="GtkBox" id="hamburger_menu_box">
<property name="visible">True</property>
- <property name="row_spacing">6</property>
+ <property name="spacing">6</property>
<property name="margin">18</property>
+ <property name="orientation">vertical</property>
<property name="width_request">200</property>
<child>
<object class="GtkLabel">
@@ -17,56 +18,58 @@
<class name="dim-label"/>
</style>
</object>
- <packing>
- <property name="top_attach">0</property>
- <property name="width">2</property>
- </packing>
- </child>
- <child>
- <object class="GtkRadioButton" id="sort_on_firstname_button">
- <property name="visible">True</property>
- <property name="group">sort_on_firstname_button</property>
- </object>
- <packing>
- <property name="top_attach">1</property>
- <property name="left_attach">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel">
- <property name="visible">True</property>
- <property name="halign">start</property>
- <property name="hexpand">True</property>
- <property name="label" translatable="yes">First name</property>
- <property name="mnemonic_widget">sort_on_firstname_button</property>
- </object>
- <packing>
- <property name="top_attach">1</property>
- <property name="left_attach">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkRadioButton" id="sort_on_surname_button">
- <property name="visible">True</property>
- <property name="group">sort_on_firstname_button</property>
- </object>
- <packing>
- <property name="top_attach">2</property>
- <property name="left_attach">1</property>
- </packing>
</child>
<child>
- <object class="GtkLabel">
+ <object class="GtkGrid">
<property name="visible">True</property>
- <property name="halign">start</property>
- <property name="hexpand">True</property>
- <property name="label" translatable="yes">Surname</property>
- <property name="mnemonic_widget">sort_on_surname_button</property>
+ <property name="row_spacing" bind-source="hamburger_menu_box" bind-property="spacing"
bind-flags="bidirectional|sync-create"/>
+ <child>
+ <object class="GtkRadioButton" id="sort_on_firstname_button">
+ <property name="visible">True</property>
+ <property name="group">sort_on_firstname_button</property>
+ </object>
+ <packing>
+ <property name="top_attach">0</property>
+ <property name="left_attach">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="halign">start</property>
+ <property name="hexpand">True</property>
+ <property name="label" translatable="yes">First name</property>
+ <property name="mnemonic_widget">sort_on_firstname_button</property>
+ </object>
+ <packing>
+ <property name="top_attach">0</property>
+ <property name="left_attach">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="sort_on_surname_button">
+ <property name="visible">True</property>
+ <property name="group">sort_on_firstname_button</property>
+ </object>
+ <packing>
+ <property name="top_attach">1</property>
+ <property name="left_attach">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="halign">start</property>
+ <property name="hexpand">True</property>
+ <property name="label" translatable="yes">Surname</property>
+ <property name="mnemonic_widget">sort_on_surname_button</property>
+ </object>
+ <packing>
+ <property name="top_attach">1</property>
+ <property name="left_attach">0</property>
+ </packing>
+ </child>
</object>
- <packing>
- <property name="top_attach">2</property>
- <property name="left_attach">0</property>
- </packing>
</child>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]