[f-spot] Move stuff that can be shared around.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot] Move stuff that can be shared around.
- Date: Wed, 8 Jul 2009 14:22:55 +0000 (UTC)
commit 90038d3b7c5a2b3dd4a51eb0a89a7e809d1d81a7
Author: Ruben Vermeersch <ruben savanne be>
Date: Wed Jul 8 14:09:43 2009 +0100
Move stuff that can be shared around.
src/IImageLoader.cs | 28 ++++++++++++++++++++++++++++
src/ImageLoader.cs | 27 ---------------------------
2 files changed, 28 insertions(+), 27 deletions(-)
---
diff --git a/src/IImageLoader.cs b/src/IImageLoader.cs
index e91def4..a6bd960 100644
--- a/src/IImageLoader.cs
+++ b/src/IImageLoader.cs
@@ -5,6 +5,7 @@
//
// Author(s)
// Stephane Delcroix <sdelcroix novell com>
+// Ruben Vermeersch <ruben savanne be>
//
// This is free software. See COPYING for details
//
@@ -14,6 +15,33 @@ using System;
using Gdk;
namespace FSpot {
+ public class AreaPreparedEventArgs : EventArgs
+ {
+ bool reduced_resolution;
+
+ public bool ReducedResolution {
+ get { return reduced_resolution; }
+ }
+
+ public AreaPreparedEventArgs (bool reduced_resolution) : base ()
+ {
+ this.reduced_resolution = reduced_resolution;
+ }
+ }
+
+ public class AreaUpdatedEventArgs : EventArgs
+ {
+ Gdk.Rectangle area;
+ public Gdk.Rectangle Area {
+ get { return area; }
+ }
+
+ public AreaUpdatedEventArgs (Gdk.Rectangle area) : base ()
+ {
+ this.area = area;
+ }
+ }
+
public interface IImageLoader : IDisposable {
bool Loading { get; }
diff --git a/src/ImageLoader.cs b/src/ImageLoader.cs
index 9f07c24..dd6da9a 100644
--- a/src/ImageLoader.cs
+++ b/src/ImageLoader.cs
@@ -16,33 +16,6 @@ using FSpot.Utils;
using FSpot.Platform;
namespace FSpot {
- public class AreaPreparedEventArgs : EventArgs
- {
- bool reduced_resolution;
-
- public bool ReducedResolution {
- get { return reduced_resolution; }
- }
-
- public AreaPreparedEventArgs (bool reduced_resolution) : base ()
- {
- this.reduced_resolution = reduced_resolution;
- }
- }
-
- public class AreaUpdatedEventArgs : EventArgs
- {
- Gdk.Rectangle area;
- public Gdk.Rectangle Area {
- get { return area; }
- }
-
- public AreaUpdatedEventArgs (Gdk.Rectangle area) : base ()
- {
- this.area = area;
- }
- }
-
public class ImageLoader : Gdk.PixbufLoader, IImageLoader
{
#region public api
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]