[mistelix] Fixes warnings



commit f208ed6b1b3d3a5a195501a333dea037690cfd9f
Author: Jordi Mas <jmas softcatala org>
Date:   Thu Jul 23 17:34:25 2009 +0200

    Fixes warnings

 src/backends/DvdAuthor.cs         |    2 +-
 src/backends/Spumux.cs            |    3 +--
 src/core/MistelixLib.cs           |    1 -
 src/widgets/GtkUtils.cs           |    2 +-
 src/widgets/ProjectElementView.cs |    1 -
 src/widgets/SlideShowImageView.cs |    1 -
 6 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/backends/DvdAuthor.cs b/src/backends/DvdAuthor.cs
index 71c767a..20b6268 100644
--- a/src/backends/DvdAuthor.cs
+++ b/src/backends/DvdAuthor.cs
@@ -65,7 +65,7 @@ namespace Mistelix.Backends
 					sw.Close ();
 				}
 			} 
-			catch (IOException e) {
+			catch (IOException) {
 				Logger.Error ("DvdAuthor.Create. Error accessing file {0}", project.FileToFullPath (Defines.DVDAUTHOR_FILE));
 			}
 		}
diff --git a/src/backends/Spumux.cs b/src/backends/Spumux.cs
index 0fba8d3..ec093b5 100644
--- a/src/backends/Spumux.cs
+++ b/src/backends/Spumux.cs
@@ -73,7 +73,7 @@ namespace Mistelix.Backends
 					sw.Close ();
 				}
 			}
-			catch (IOException e) {
+			catch (IOException) {
 				Logger.Error ("Spumux.Create. Error accessing file {0}", project.FileToFullPath (Defines.SPUMUX_FILE));
 			}
 		}
@@ -101,7 +101,6 @@ namespace Mistelix.Backends
 		public void DrawImageFromFile (Cairo.Context cr, string filename, double x, double y, double width, double height)
 		{
 			SvgImage image;
-			const int rsvg_width = 10, rsvg_height = 10; // TODO: Use svg size or predetermined?
 
 			if (width <= 0 || height <= 0)
 				throw new ArgumentException (String.Format ("Spumux->DrawImageFromFile. DVD menu buttons width {0} and height {1} should be > 0", width, height));
diff --git a/src/core/MistelixLib.cs b/src/core/MistelixLib.cs
index 6dd5d11..f2fcb9b 100644
--- a/src/core/MistelixLib.cs
+++ b/src/core/MistelixLib.cs
@@ -245,7 +245,6 @@ namespace Mistelix.Core
 
 		static public Gdk.Pixbuf VideoScreenshot (string file)
 		{
-			string thumbnail_file = Path.Combine (Path.GetTempPath (), Path.GetTempFileName ());
 			Gdk.Pixbuf thumbnail;
 			IntPtr pix;
 
diff --git a/src/widgets/GtkUtils.cs b/src/widgets/GtkUtils.cs
index c4397de..4bbda61 100644
--- a/src/widgets/GtkUtils.cs
+++ b/src/widgets/GtkUtils.cs
@@ -24,7 +24,7 @@
 using System;
 using Gtk;
 using Cairo;
-using Mono.Posix;
+using Mono.Unix;
 
 namespace Mistelix.Widgets
 {
diff --git a/src/widgets/ProjectElementView.cs b/src/widgets/ProjectElementView.cs
index 7a9bcc7..f527794 100644
--- a/src/widgets/ProjectElementView.cs
+++ b/src/widgets/ProjectElementView.cs
@@ -46,7 +46,6 @@ namespace Mistelix.Widgets
 		const int COL_PIXBUF = 2;
 
 		ListStore store;
-		Gtk.Image image;
 		Project project;
 		BackgroundWorker thumbnailing;
 		Pixbuf def_image;
diff --git a/src/widgets/SlideShowImageView.cs b/src/widgets/SlideShowImageView.cs
index 893688b..7c9276f 100644
--- a/src/widgets/SlideShowImageView.cs
+++ b/src/widgets/SlideShowImageView.cs
@@ -65,7 +65,6 @@ namespace Mistelix.Widgets
 		}
 
 		ListStore store;
-		Gtk.Image image;
 		BackgroundWorker thumbnailing;
 		int next_id = 1;
 		bool paint_control = false;



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