[nautilus] file-conflict-dialog: confirm filename change with return key



commit 941b3fe16e0316714a6d00868f30b422849f0a33
Author: Evgeny Shulgin <izarizar mail ru>
Date:   Tue Apr 4 15:27:05 2017 +0300

    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

 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 62eafd1..37c3e5d 100644
--- a/src/nautilus-file-conflict-dialog.c
+++ b/src/nautilus-file-conflict-dialog.c
@@ -301,6 +301,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),


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