diff options
author | Adrien Plazas <kekun.plazas@laposte.net> | 2020-07-20 12:36:47 +0200 |
---|---|---|
committer | Adrien Plazas <kekun.plazas@laposte.net> | 2020-07-23 14:27:02 +0200 |
commit | 76bd8fc83ad05d1207c2bfd8126cd6b19741fd2f (patch) | |
tree | 08e1ce786cb314337b349c8dc089bcb660871c47 | |
parent | 3e8c7d7533ade19862747c583570670621fee85a (diff) | |
download | gnome-contacts-76bd8fc83ad05d1207c2bfd8126cd6b19741fd2f.tar.gz |
Adapt to changes in Hdy.HeaderGroup
-rw-r--r-- | data/ui/contacts-window.ui | 3 | ||||
-rw-r--r-- | src/contacts-window.vala | 6 |
2 files changed, 2 insertions, 7 deletions
diff --git a/data/ui/contacts-window.ui b/data/ui/contacts-window.ui index 0987baa..0faa64e 100644 --- a/data/ui/contacts-window.ui +++ b/data/ui/contacts-window.ui @@ -446,7 +446,8 @@ <widget name="contact_pane_container"/> </widgets> </object> - <object class="HdyHeaderGroup" id="header_group"> + <object class="HdyHeaderGroup"> + <property name="decorate-all" bind-source="content_box" bind-property="folded" bind-flags="sync-create"/> <headerbars> <headerbar name="left_header"/> <headerbar name="right_header"/> diff --git a/src/contacts-window.vala b/src/contacts-window.vala index b7d06cd..5349456 100644 --- a/src/contacts-window.vala +++ b/src/contacts-window.vala @@ -216,8 +216,6 @@ public class Contacts.Window : Gtk.ApplicationWindow { // UI when we're not editing of selecting stuff this.add_button.visible = this.hamburger_menu_button.visible - = this.left_header.show_close_button - = this.right_header.show_close_button = (this.state == UiState.NORMAL || this.state == UiState.SHOWING); // UI when showing a contact @@ -391,10 +389,6 @@ public class Contacts.Window : Gtk.ApplicationWindow { } private void update_header () { - this.left_header.show_close_button = - !this.content_box.folded || this.header.visible_child == this.left_header; - this.right_header.show_close_button = - !this.content_box.folded || this.header.visible_child == this.right_header; this.back_revealer.reveal_child = this.back_revealer.visible = this.content_box.folded && |