[nautilus] nautilus-pathbar: Fix short delay when opening menu with F10



commit 14d6ecd9fce9a454235155e63159c68fa0d6fe4e
Author: Ákos Horváth <koma akos gmail com>
Date:   Sat Jun 11 12:46:06 2022 +0000

    nautilus-pathbar: Fix short delay when opening menu with F10
    
    Fixes a short delay when opening the pathbar current
    location menu with F10, by using the newer, GTK4-style
    gtk_menu_button_popup() function instead of emitting the
    activate signal.
    
    Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2284

 src/nautilus-pathbar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index 65ac67e7b..f47d181fd 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -460,7 +460,7 @@ nautilus_path_bar_show_current_location_menu (NautilusPathBar *self)
 {
     g_return_if_fail (NAUTILUS_IS_PATH_BAR (self));
 
-    g_signal_emit_by_name (self->current_view_menu_button, "activate");
+    gtk_menu_button_popup (GTK_MENU_BUTTON (self->current_view_menu_button));
 }
 
 static void


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