diff options
author | Evgeny Shulgin <izarizar@mail.ru> | 2017-04-04 15:27:05 +0300 |
---|---|---|
committer | Ernestas Kulik <ernestask@gnome.org> | 2017-05-02 21:23:35 +0300 |
commit | 984148385330dc96f9e9d04a8ddf967674830249 (patch) | |
tree | 7bbf3e45ded19236a1f93946007889e7808ea5fb | |
parent | 5decb46bab2beca384b00bca311d5f12b039d130 (diff) | |
download | nautilus-984148385330dc96f9e9d04a8ddf967674830249.tar.gz |
file-conflict-dialog: confirm filename change with return key
The problem is that when we have a file conflict dialog, we can write
a new name for the file in GtkEntry in the expander "Select a new
name for the destination", but after typing in a new file name,
pressing <ENTER> does nothing, but should close this dialog and
confirm the renaming.
To fix this we enable "activates-default" flag for the GtkEntry.
https://bugzilla.gnome.org/show_bug.cgi?id=780449
-rw-r--r-- | src/nautilus-file-conflict-dialog.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nautilus-file-conflict-dialog.c b/src/nautilus-file-conflict-dialog.c index 55e536692..a88fbebad 100644 --- a/src/nautilus-file-conflict-dialog.c +++ b/src/nautilus-file-conflict-dialog.c @@ -295,6 +295,7 @@ nautilus_file_conflict_dialog_init (NautilusFileConflictDialog *fcd) fcd->entry = widget; g_signal_connect (widget, "changed", G_CALLBACK (entry_text_changed_cb), dialog); + gtk_entry_set_activates_default (GTK_ENTRY (widget), TRUE); widget = gtk_button_new_with_label (_("Reset")); gtk_button_set_image (GTK_BUTTON (widget), |