Full screen mode photo delete/remove browsing patch



Hi!

I have found that the best way to clean my albums from photos not so
good is to start browsing the album in full screen mode and remove the
photos in this mode.

Currently when you delete/remove a photo in full screen mode a
confirmation dialog is shown. After confirming the deletion currently
you lost your full screen mode and you are returned to the Icon View
(but the full screen window isn't closed). GTK+ when you close a dialog
window present you by default the main window.

This simple patch corrects that forcing the present over the full screen
mode so you can continue in this mode travelling trough your album.

To test it:

sid delito:~/devel/f-spot/src$ patch < MainWindow.cs.patch

and compile the beast! ;-)

Cheers

-- Alvaro
Index: MainWindow.cs
===================================================================
RCS file: /cvs/gnome/f-spot/src/MainWindow.cs,v
retrieving revision 1.289
diff -u -b -B -p -r1.289 MainWindow.cs
--- MainWindow.cs	4 May 2006 00:46:43 -0000	1.289
+++ MainWindow.cs	13 May 2006 06:55:29 -0000
@@ -2093,6 +2093,10 @@ public class MainWindow {
 			
 			UpdateQuery ();
 		}
+
+		if (fsview != null) {
+			fsview.Present ();
+		}
 	}
 
 	public void HandleRemoveCommand (object sender, EventArgs args)
@@ -2109,6 +2113,10 @@ public class MainWindow {
 									   MessageType.Warning, header, msg, ok_caption)) {                              
 			db.Photos.Remove (photos);
 			UpdateQuery ();
+		}
+
+		if (fsview != null) {
+			fsview.Present ();
 		}
 	}


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