summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbanoub Ghadban <abanoub.gdb@gmail.com>2021-04-14 14:38:40 +0200
committerOndrej Holy <oholy@redhat.com>2021-07-01 10:06:07 +0000
commit1e3996d1c98ec5767dabde3b1dd1d8635f8d1fe9 (patch)
treeed0af3c62288720d12b7bcdcf603eb753156c163
parent7932d37290bd2939169e676cced223a8a10f21b2 (diff)
downloadnautilus-1e3996d1c98ec5767dabde3b1dd1d8635f8d1fe9.tar.gz
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
-rw-r--r--src/nautilus-properties-window.c6
1 files changed, 0 insertions, 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);