[f-spot] More obsolete code.



commit e9d3bf4fab437ec9ee656b562fbfe3b6e8b58e2c
Author: Ruben Vermeersch <ruben savanne be>
Date:   Wed May 26 09:37:01 2010 +0200

    More obsolete code.

 src/ImportCommand.cs |   32 --------------------------------
 1 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/src/ImportCommand.cs b/src/ImportCommand.cs
index fcabb18..668daa8 100644
--- a/src/ImportCommand.cs
+++ b/src/ImportCommand.cs
@@ -175,38 +175,6 @@ public class ImportCommand : GladeDialog
 				 source_count++;
 			}
 
-			// FIXME This crashes every time, replace by gvfs https://bugzilla.gnome.org/show_bug.cgi?id=618773
-			//GPhotoCamera cam = new GPhotoCamera ();
-			//cam.DetectCameras ();
-			//int camera_count = cam.CameraList.Count;
-
-			if (/*camera_count > 0*/false) {
-				/*source_count += camera_count;
-				for (int i = 0; i < camera_count; i++) {
-					string handle = cam.CameraList.GetValue (i);
-					if (camera_count == 1 || handle != "usb:") {
-						if (handle.StartsWith ("disk:")) {
-							string path = handle.Substring ("disk:".Length);
-
-							if (FindItemPosition (UriUtils.PathToFileUri (path)) != -1)
-								continue;
-						}
-			
-						ImportSource source = new CameraSource (cam, i);
-						item = new SourceItem (source);
-						item.Activated += HandleActivated;
-						this.Append (item);
-					}
-				}*/
-			} else {
-				ImportSource source = new BrowseSource (Catalog.GetString ("(No Cameras Detected)"),
-									"camera-photo");
-				item = new SourceItem (source);
-				item.Activated += HandleActivated;
-				item.Sensitive = false;
-				this.Append (item);
-			}
-
 			this.ShowAll ();
 		}
 



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