mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-08 04:45:31 +00:00
call-window: Remove unnecessary code
As the "visible-child-name" from main_stack and header_bar_stack is already bidirectionally bound.
This commit is contained in:
parent
43b6ad3228
commit
d7d97e8f67
1 changed files with 0 additions and 3 deletions
|
@ -131,7 +131,6 @@ set_focus (CallsCallWindow *self,
|
||||||
CallsCallDisplay *display)
|
CallsCallDisplay *display)
|
||||||
{
|
{
|
||||||
gtk_stack_set_visible_child_name (self->main_stack, "active-call");
|
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));
|
gtk_stack_set_visible_child (self->call_stack, GTK_WIDGET (display));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,9 +139,7 @@ static void
|
||||||
show_calls_clicked_cb (GtkButton *button,
|
show_calls_clicked_cb (GtkButton *button,
|
||||||
CallsCallWindow *self)
|
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->main_stack, "calls");
|
||||||
gtk_stack_set_visible_child_name (self->header_bar_stack, "calls");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue