[nautilus] properties-window: don't focus on name field when open



commit 1e3996d1c98ec5767dabde3b1dd1d8635f8d1fe9
Author: Abanoub Ghadban <abanoub gdb gmail com>
Date:   Wed Apr 14 14:38:40 2021 +0200

    properties-window: don't focus on name field when open
    
    When the properties window is opened, the name field get the focus automaticaly.
    The user can accedentily change the file name, so let's prevent the name field from
    being automaticaly selected.
    
    Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/1805

 src/nautilus-properties-window.c | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index ec20ca0cb..8289b6e0b 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -2642,12 +2642,6 @@ setup_basic_page (NautilusPropertiesWindow *self)
     g_signal_connect_object (self->name_field, "activate",
                              G_CALLBACK (name_field_activate), self, 0);
 
-    /* Start with name field selected, if it's an entry. */
-    if (GTK_IS_ENTRY (gtk_stack_get_visible_child (self->name_stack)))
-    {
-        gtk_widget_grab_focus (GTK_WIDGET (self->name_field));
-    }
-
     if (should_show_file_type (self))
     {
         gtk_widget_show (self->type_title_label);


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