[nautilus] files-view: focus entry of popover



commit 2c3ec9c5ce60c7619ff6ea02697dbc76bca31c84
Author: Carlos Soriano <csoriano gnome org>
Date:   Fri Sep 4 21:21:52 2015 +0200

    files-view: focus entry of popover
    
    Focusing a container or so is not valid, you need to focus the
    actual widget that is going to be focused.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=754288

 src/nautilus-files-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 5c5b158..648b8ec 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -2096,7 +2096,7 @@ nautilus_files_view_rename_file_popover_new (NautilusFilesView *view,
         gtk_popover_set_relative_to (GTK_POPOVER (widget_data->widget),
                                      GTK_WIDGET (view));
         gtk_widget_show (widget_data->widget);
-        gtk_widget_grab_focus (widget_data->widget);
+        gtk_widget_grab_focus (widget_data->name_entry);
 
         /* Select the name part withouth the file extension */
         eel_filename_get_rename_region (nautilus_file_get_display_name (target_file),


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