[calls] call-window: Remove unnecessary code



commit d7d97e8f67404b7c6696fc85dcaa43763a826117
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Thu Oct 28 14:09:36 2021 +0200

    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 982d5833..3f03a1cd 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");
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]