[f-spot/rubenv-gsoc-2009: 8/86] Add a correct constructor to the librawloader.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot/rubenv-gsoc-2009: 8/86] Add a correct constructor to the librawloader.
- Date: Sun, 23 May 2010 12:32:37 +0000 (UTC)
commit 409aaf823e398d9d1e8133e7fa4b42d462e84b4d
Author: Ruben Vermeersch <ruben savanne be>
Date: Sat Jul 18 13:37:31 2009 +0200
Add a correct constructor to the librawloader.
lib/libfspotraw-sharp/Makefile.am | 6 ++----
lib/libfspotraw/fspot-librawloader.cpp | 12 ++++++++++++
lib/libfspotraw/fspot-librawloader.h | 1 +
3 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/lib/libfspotraw-sharp/Makefile.am b/lib/libfspotraw-sharp/Makefile.am
index 5308e6e..53bb790 100644
--- a/lib/libfspotraw-sharp/Makefile.am
+++ b/lib/libfspotraw-sharp/Makefile.am
@@ -37,14 +37,12 @@ assembly_DATA = \
libfspotraw-sharp.dll.config
CLEANFILES = \
+ generated/*.cs \
+ libfspotraw-api.raw \
libfspotraw-sharp.dll \
libfspotraw-sharp.dll.mdb \
libfspotraw-api.xml
-DISTCLEANFILES = \
- libfspotraw-api.raw \
- generated/*.cs
-
EXTRA_DIST = \
$(SRCS) \
$(CUSTOMS) \
diff --git a/lib/libfspotraw/fspot-librawloader.cpp b/lib/libfspotraw/fspot-librawloader.cpp
index 533877f..be6ab1c 100644
--- a/lib/libfspotraw/fspot-librawloader.cpp
+++ b/lib/libfspotraw/fspot-librawloader.cpp
@@ -199,6 +199,18 @@ fspot_librawloader_load_full (FSpotLibrawLoader *self)
return pixbuf;
}
+FSpotLibrawLoader *
+fspot_librawloader_new (const gchar *filename)
+{
+ FSpotLibrawLoader *loader;
+
+ loader = (FSpotLibrawLoader *) g_object_new (FSPOT_TYPE_LIBRAWLOADER,
+ "filename", filename,
+ NULL);
+
+ return loader;
+}
+
static void
open_if_needed (FSpotLibrawLoader *self)
{
diff --git a/lib/libfspotraw/fspot-librawloader.h b/lib/libfspotraw/fspot-librawloader.h
index c3611bd..cab47bd 100644
--- a/lib/libfspotraw/fspot-librawloader.h
+++ b/lib/libfspotraw/fspot-librawloader.h
@@ -50,6 +50,7 @@ struct _FSpotLibrawLoaderClass
GType fspot_librawloader_get_type (void);
GdkPixbuf * fspot_librawloader_load_thumbnail (FSpotLibrawLoader *self);
GdkPixbuf * fspot_librawloader_load_full (FSpotLibrawLoader *self);
+FSpotLibrawLoader * fspot_librawloader_new (const gchar *filename);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]