From d7d97e8f67404b7c6696fc85dcaa43763a826117 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Thu, 28 Oct 2021 14:09:36 +0200 Subject: [PATCH] call-window: Remove unnecessary code As the "visible-child-name" from main_stack and header_bar_stack is already bidirectionally bound. --- src/calls-call-window.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/calls-call-window.c b/src/calls-call-window.c index 982d583..3f03a1c 100644 --- a/src/calls-call-window.c +++ b/src/calls-call-window.c @@ -131,7 +131,6 @@ set_focus (CallsCallWindow *self, CallsCallDisplay *display) { gtk_stack_set_visible_child_name (self->main_stack, "active-call"); - gtk_stack_set_visible_child_name (self->header_bar_stack, "active-call"); gtk_stack_set_visible_child (self->call_stack, GTK_WIDGET (display)); } @@ -140,9 +139,7 @@ static void show_calls_clicked_cb (GtkButton *button, CallsCallWindow *self) { - /* FIXME Setting only one of them should be enough as the properties are binded. */ gtk_stack_set_visible_child_name (self->main_stack, "calls"); - gtk_stack_set_visible_child_name (self->header_bar_stack, "calls"); }