1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-09 05:15:31 +00:00

call-window: Remove unnecessary code

As the "visible-child-name" from main_stack and header_bar_stack is already
bidirectionally bound.

(cherry picked from commit d7d97e8f67)
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-10-28 14:09:36 +02:00
parent 4f725d0a86
commit 90b105f45d

View file

@ -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");
}