FSpot.MainWindow.SelectedMimeTypes C# (CSharp) Method

SelectedMimeTypes() public method

public SelectedMimeTypes ( ) : List
return List
		public List<string> SelectedMimeTypes ()
		{
			List<string> contents = new List<string> ();

			foreach (Photo p in SelectedPhotos ()) {
				string content;
				try {
					content = GLib.FileFactory.NewForUri (p.DefaultVersion.Uri).QueryInfo ("standard::content-type", GLib.FileQueryInfoFlags.None, null).ContentType;
				} catch (GLib.GException) {
					content = null;
				}

				if (!contents.Contains (content))
					contents.Add (content);
			}

			return contents;
		}
MainWindow