[libadwaita/wip/exalm/tabs-stack] tab-view: Set can-target to false during dnd and not can-focus




commit 1a1c56529c6d0434fa4e318837e8bb1636fb0384
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Jun 23 14:31:34 2021 +0500

    tab-view: Set can-target to false during dnd and not can-focus
    
    The intention is to prevent pages from having any drop targets during this,
    meanwhile we can't focus anything anyway.

 src/adw-tab-view.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/adw-tab-view.c b/src/adw-tab-view.c
index b04a1518..02720586 100644
--- a/src/adw-tab-view.c
+++ b/src/adw-tab-view.c
@@ -1754,7 +1754,7 @@ adw_tab_view_init (AdwTabView *self)
   gtk_widget_set_parent (GTK_WIDGET (self->stack), GTK_WIDGET (self));
 
   g_object_bind_property (self, "is-transferring-page",
-                          self->stack, "can-focus",
+                          self->stack, "can-target",
                           G_BINDING_INVERT_BOOLEAN);
 
   tab_view_list = g_slist_prepend (tab_view_list, self);


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