[f-spot: 8/16] Usability: select future parent before reparenting



commit cd7f1188128aa97ed285c33888aee74b17852753
Author: Anton Keks <anton azib net>
Date:   Mon Aug 3 00:14:02 2009 +0300

    Usability: select future parent before reparenting

 src/MainWindow.cs |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/MainWindow.cs b/src/MainWindow.cs
index 4c19adb..86c0e80 100644
--- a/src/MainWindow.cs
+++ b/src/MainWindow.cs
@@ -1227,9 +1227,11 @@ namespace FSpot
 				if (p_item >= 0) {
 					if (icon_view.Selection.Contains (p_item)) //We don't want to reparent ourselves!
 						return;
-					PhotoVersionCommands.Reparent cmd = new PhotoVersionCommands.Reparent ();
-					
-					cmd.Execute (Database.Photos, SelectedPhotos(), query.Photos [p_item], GetToplevel (null));
+					PhotoVersionCommands.Reparent cmd = new PhotoVersionCommands.Reparent ();				
+					Photo[] photos_to_reparent = SelectedPhotos ();
+					// Give feedback to user that something happened, and leave the parent selected after reparenting
+					icon_view.Selection.Add (p_item); 
+					cmd.Execute (db.Photos, photos_to_reparent, query.Photos [p_item], GetToplevel (null));
 					UpdateQuery ();
 				}
 				Gtk.Drag.Finish (args.Context, true, false, args.Time);



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