[nautilus] icon-container: fix setting the selection when renaming



commit a8a5b8d8eae041e7ae10a553d0990fc7ee5dc3cd
Author: Stefano Teso <steso src gnome org>
Date:   Mon Feb 21 18:48:34 2011 +0100

    icon-container: fix setting the selection when renaming
    
    Closes: bgo #642766

 libnautilus-private/nautilus-icon-container.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c
index 8cb29da..0ca9343 100644
--- a/libnautilus-private/nautilus-icon-container.c
+++ b/libnautilus-private/nautilus-icon-container.c
@@ -8240,12 +8240,13 @@ nautilus_icon_container_start_renaming_selected_item (NautilusIconContainer *con
 	} else {
 		eel_filename_get_rename_region (editable_text, &start_offset, &end_offset);
 	}
+
+	gtk_widget_show (details->rename_widget);
+	gtk_widget_grab_focus (details->rename_widget);
+
 	eel_editable_label_select_region (EEL_EDITABLE_LABEL (details->rename_widget),
 					  start_offset,
 					  end_offset);
-	gtk_widget_show (details->rename_widget);
-	
-	gtk_widget_grab_focus (details->rename_widget);
 	
 	g_signal_emit (container,
 		       signals[RENAMING_ICON], 0,



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