diff options
author | Adrien Plazas <kekun.plazas@laposte.net> | 2020-07-10 09:34:35 +0200 |
---|---|---|
committer | Adrien Plazas <kekun.plazas@laposte.net> | 2020-07-20 08:04:28 +0200 |
commit | 080e145e237a0baa76e2c8db4f823c697d1d2b0c (patch) | |
tree | 42375d722a151d41b99080081070370529bb70f1 /shell | |
parent | 3f20b9b572e604828031530fcd5a8f789707da90 (diff) | |
download | gnome-control-center-080e145e237a0baa76e2c8db4f823c697d1d2b0c.tar.gz |
window: Use HdyHeaderGroup:decorate-all
Replace the dropped focus property by the decorate-all boolean one.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/cc-window.c | 4 | ||||
-rw-r--r-- | 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 d16d55548..65d738a72 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 f73afba79..a878ac061 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"/> |