f-spot r4654 - in branches/FSPOT_0_5_0_STABLE: . src tools



Author: sdelcroix
Date: Fri Dec  5 10:00:32 2008
New Revision: 4654
URL: http://svn.gnome.org/viewvc/f-spot?rev=4654&view=rev

Log:
import from both mass-storage and [PM]TP

2008-12-05  Stephane Delcroix  <sdelcroix novell com>

	* src/Core.cs:
	* tools/f-spot-import: fixes for latest changes in natuilus

Modified:
   branches/FSPOT_0_5_0_STABLE/ChangeLog
   branches/FSPOT_0_5_0_STABLE/src/Core.cs
   branches/FSPOT_0_5_0_STABLE/tools/f-spot-import

Modified: branches/FSPOT_0_5_0_STABLE/src/Core.cs
==============================================================================
--- branches/FSPOT_0_5_0_STABLE/src/Core.cs	(original)
+++ branches/FSPOT_0_5_0_STABLE/src/Core.cs	Fri Dec  5 10:00:32 2008
@@ -99,7 +99,10 @@
 			{
 				if (path != null && path.StartsWith ("gphoto2:"))
 					main.ImportCamera (path);
-				else
+				else if (path != null && path.StartsWith ("file:")) {
+					Uri uri = new Uri (path);
+					main.ImportFile (Uri.UnescapeDataString (uri.AbsolutePath));
+				} else
 					main.ImportFile (path);
 				
 				return false;

Modified: branches/FSPOT_0_5_0_STABLE/tools/f-spot-import
==============================================================================
--- branches/FSPOT_0_5_0_STABLE/tools/f-spot-import	(original)
+++ branches/FSPOT_0_5_0_STABLE/tools/f-spot-import	Fri Dec  5 10:00:32 2008
@@ -5,13 +5,14 @@
 
 if [ "$udi" != "${udi#gphoto2:}" ]; then
 	# gphoto2, as passed by gvfs/nautilus
+	gvfs-mount -u "$udi" || true
 	f-spot --import "$udi"
 	exit
 fi
 mnt=${udi#file://}
 if [ "$udi" != "$mnt" ]; then
 	# mount point, as passed by gvfs/nautilus.
-	f-spot --import "$mnt"
+	f-spot --import "$udi"
 	exit
 fi
 mount_point=`hal-get-property --udi="$udi" --key=volume.mount_point` || true



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