[PATCH] Commit rename changes on icon click



The attached patch fixes bug 309162 [1].

[1] http://bugzilla.gnome.org/show_bug.cgi?id=309162

-- 
Christian Neumair <chris gnome-de org>
Index: libnautilus-private/nautilus-icon-container.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-icon-container.c,v
retrieving revision 1.396
diff -u -p -r1.396 nautilus-icon-container.c
--- libnautilus-private/nautilus-icon-container.c	1 Sep 2005 09:29:57 -0000	1.396
+++ libnautilus-private/nautilus-icon-container.c	10 Sep 2005 22:23:51 -0000
@@ -3221,6 +3221,7 @@ button_press_event (GtkWidget *widget,
     	}
 
 	if (clicked_on_icon) {
+		end_renaming_mode (container, TRUE);
 		return TRUE;
 	}
 
@@ -3612,8 +3613,6 @@ motion_notify_event (GtkWidget *widget,
 						      world_y)) {
 				details->drag_started = TRUE;
 				details->drag_state = DRAG_STATE_MOVE_OR_COPY;
-
-				end_renaming_mode (container, TRUE);
 			
 				eel_canvas_w2c (EEL_CANVAS (container),
 						  details->drag_x,

Attachment: signature.asc
Description: This is a digitally signed message part



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