From 1e3996d1c98ec5767dabde3b1dd1d8635f8d1fe9 Mon Sep 17 00:00:00 2001 From: Abanoub Ghadban Date: Wed, 14 Apr 2021 14:38:40 +0200 Subject: 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(-) (limited to 'src') 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); -- cgit v1.2.1