[nautilus/wip/antoniof/hidpi-and-icons-cleanup: 1/11] pathbar: Drop menu onboarding behavior




commit 6c7ffd8b817106e5a5e53d6a1f60284c33d0cc69
Author: António Fernandes <antoniof gnome org>
Date:   Sun Aug 7 14:33:31 2022 +0100

    pathbar: Drop menu onboarding behavior
    
    Before GNOME 42, the folder menu has been linked to the folder name for
    a few releases, so users might have got used to click the current
    folder name in order to access its menu.
    
    With GNOME 42, the menu has been moved into a discrete button at the
    end of the pathbar, as the "secondary menu" design pattern.
    
    Anticipating people would click the current folder name out of habit,
    and be frustrated that it didn't do anything, we've made this action
    actually trigget the new menu button, in order to let users know of
    the new location of the menu.
    
    However, upon design review, this behaviour was deemed undesired.
    
    Closes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2351

 src/nautilus-pathbar.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index efff5fc9f..df95afdef 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -500,7 +500,7 @@ button_clicked_cb (GtkButton *button,
 
     if (g_file_equal (button_data->path, self->current_path))
     {
-        nautilus_path_bar_show_current_location_menu (self);
+        return;
     }
     else
     {
@@ -630,7 +630,7 @@ on_click_gesture_pressed (GtkGestureClick *gesture,
         {
             if (g_file_equal (button_data->path, self->current_path))
             {
-                nautilus_path_bar_show_current_location_menu (self);
+                break;
             }
             else
             {


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