[libadwaita/wip/exalm/escape: 3/3] tab-box: Don't reset focus globally




commit 7f8b69526ada7676f66d263f807e5229ad1d780f
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Sep 19 03:08:01 2022 +0400

    tab-box: Don't reset focus globally
    
    Same as the last one.

 src/adw-tab-box.c | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/src/adw-tab-box.c b/src/adw-tab-box.c
index 0b1c7168..1c2ca064 100644
--- a/src/adw-tab-box.c
+++ b/src/adw-tab-box.c
@@ -1686,12 +1686,7 @@ reorder_end_cb (AdwTabBox  *self,
 static void
 reset_focus (AdwTabBox *self)
 {
-  GtkRoot *root = gtk_widget_get_root (GTK_WIDGET (self));
-
   gtk_widget_set_focus_child (GTK_WIDGET (self), NULL);
-
-  if (root)
-    gtk_root_set_focus (root, NULL);
 }
 
 static void


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