[libhandy/tabs: 53/62] Skip focus for hidden tab bar




commit 80434bf75fa0a523a73264d3edaa2d5b52be43e1
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Sep 11 16:19:35 2020 +0500

    Skip focus for hidden tab bar

 src/hdy-tab-bar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/hdy-tab-bar.c b/src/hdy-tab-bar.c
index 928433e1..a72c8d91 100644
--- a/src/hdy-tab-bar.c
+++ b/src/hdy-tab-bar.c
@@ -255,7 +255,7 @@ hdy_tab_bar_focus (GtkWidget        *widget,
   gboolean is_rtl;
   GtkDirectionType start, end;
 
-  if (!self->view)
+  if (!hdy_tab_bar_get_tabs_revealed (self))
     return GDK_EVENT_PROPAGATE;
 
   if (!gtk_container_get_focus_child (GTK_CONTAINER (self)))


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