[gnome-control-center] window: Use HdyHeaderGroup:decorate-all
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] window: Use HdyHeaderGroup:decorate-all
- Date: Mon, 20 Jul 2020 06:14:03 +0000 (UTC)
commit 080e145e237a0baa76e2c8db4f823c697d1d2b0c
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri Jul 10 09:34:35 2020 +0200
window: Use HdyHeaderGroup:decorate-all
Replace the dropped focus property by the decorate-all boolean one.
shell/cc-window.c | 4 ----
shell/cc-window.ui | 3 ++-
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/shell/cc-window.c b/shell/cc-window.c
index d16d555485..65d738a726 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
@@ -58,7 +58,6 @@ struct _CcWindow
GtkMessageDialog *development_warning_dialog;
GtkHeaderBar *header;
HdyLeaflet *header_box;
- HdyHeaderGroup *header_group;
GtkSizeGroup *header_sizegroup;
HdyLeaflet *main_leaflet;
GtkHeaderBar *panel_headerbar;
@@ -519,8 +518,6 @@ update_fold_state (CcWindow *self)
GtkWidget *header_child = hdy_leaflet_get_visible_child (self->header_box);
HdyFold fold = hdy_leaflet_get_fold (self->header_box);
- hdy_header_group_set_focus (self->header_group, fold == HDY_FOLD_FOLDED ? GTK_HEADER_BAR (header_child) :
NULL);
-
gtk_widget_set_visible (GTK_WIDGET (self->back_revealer), fold == HDY_FOLD_FOLDED);
gtk_revealer_set_reveal_child (self->back_revealer, fold == HDY_FOLD_FOLDED);
}
@@ -903,7 +900,6 @@ cc_window_class_init (CcWindowClass *klass)
gtk_widget_class_bind_template_child (widget_class, CcWindow, development_warning_dialog);
gtk_widget_class_bind_template_child (widget_class, CcWindow, header);
gtk_widget_class_bind_template_child (widget_class, CcWindow, header_box);
- gtk_widget_class_bind_template_child (widget_class, CcWindow, header_group);
gtk_widget_class_bind_template_child (widget_class, CcWindow, header_sizegroup);
gtk_widget_class_bind_template_child (widget_class, CcWindow, main_leaflet);
gtk_widget_class_bind_template_child (widget_class, CcWindow, panel_headerbar);
diff --git a/shell/cc-window.ui b/shell/cc-window.ui
index f73afba798..a878ac0617 100644
--- a/shell/cc-window.ui
+++ b/shell/cc-window.ui
@@ -265,7 +265,8 @@
</child>
</template>
- <object class="HdyHeaderGroup" id="header_group">
+ <object class="HdyHeaderGroup">
+ <property name="decorate-all" bind-source="main_leaflet" bind-property="folded"
bind-flags="sync-create"/>
<headerbars>
<headerbar name="header"/>
<headerbar name="panel_headerbar"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]