[libadwaita/wip/exalm/tabs: 3/3] tab-view: Don't propagate shortcuts when beeping




commit 84ab11a043b27c2f9db4ae582a698ccb5c072544
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Jul 21 05:30:36 2022 +0400

    tab-view: Don't propagate shortcuts when beeping
    
    Let's avoid situations where that can happen.
    
    If apps need those shortcuts, they can disable them now.

 src/adw-tab-view.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/adw-tab-view.c b/src/adw-tab-view.c
index 525a0283..e54005b3 100644
--- a/src/adw-tab-view.c
+++ b/src/adw-tab-view.c
@@ -1053,7 +1053,7 @@ select_page_cb (GtkWidget  *widget,
   if (!success)
     gtk_widget_error_bell (GTK_WIDGET (self));
 
-  return success;
+  return GDK_EVENT_STOP;
 }
 
 static inline void
@@ -1117,7 +1117,7 @@ reorder_page_cb (GtkWidget  *widget,
   if (!success)
     gtk_widget_error_bell (GTK_WIDGET (self));
 
-  return success;
+  return GDK_EVENT_STOP;
 }
 
 static inline void


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