diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c
index 0ca9343..573903a 100644
--- a/libnautilus-private/nautilus-icon-container.c
+++ b/libnautilus-private/nautilus-icon-container.c
@@ -8244,6 +8244,12 @@ nautilus_icon_container_start_renaming_selected_item (NautilusIconContainer *con
 	gtk_widget_show (details->rename_widget);
 	gtk_widget_grab_focus (details->rename_widget);
 
+	/*  Force gtk_widget_grab_focus event; otherwise, the eel_editable_label_state_changed()
+	 *  events can happen after eel_editable_label_selection_region(). 
+	 */
+	while (gtk_events_pending ())
+		gtk_main_iteration ();
+
 	eel_editable_label_select_region (EEL_EDITABLE_LABEL (details->rename_widget),
 					  start_offset,
 					  end_offset);
