f-spot r4485 - in trunk/src: . Widgets
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4485 - in trunk/src: . Widgets
- Date: Sun, 12 Oct 2008 20:45:44 +0000 (UTC)
Author: sdelcroix
Date: Sun Oct 12 20:45:44 2008
New Revision: 4485
URL: http://svn.gnome.org/viewvc/f-spot?rev=4485&view=rev
Log:
fix some compilation warnings here and there
Modified:
trunk/src/PixbufUtils.cs
trunk/src/Widgets/InfoBox.cs
Modified: trunk/src/PixbufUtils.cs
==============================================================================
--- trunk/src/PixbufUtils.cs (original)
+++ trunk/src/PixbufUtils.cs Sun Oct 12 20:45:44 2008
@@ -766,7 +766,15 @@
return orientation;
}
+
+ public static PixbufOrientation GetOrientation (System.Uri uri)
+ {
+ using (FSpot.ImageFile img = FSpot.ImageFile.Create (uri)) {
+ return img.Orientation;
+ }
+ }
+ [Obsolete ("Use GetOrientation (System.Uri) instead")]
public static PixbufOrientation GetOrientation (string path)
{
using (FSpot.ImageFile img = FSpot.ImageFile.Create (path)) {
Modified: trunk/src/Widgets/InfoBox.cs
==============================================================================
--- trunk/src/Widgets/InfoBox.cs (original)
+++ trunk/src/Widgets/InfoBox.cs Sun Oct 12 20:45:44 2008
@@ -412,7 +412,7 @@
try {
if (strings.Length == 2)
fl = (double.Parse (strings[0]) / double.Parse (strings[1])).ToString ();
- } catch (FormatException e) {
+ } catch (FormatException) {
return Catalog.GetString ("(wrong format)");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]