Author: akv
Date: 2009-12-30 19:13:23 +0100 (Wed, 30 Dec 2009)
New Revision: 2895

Modified:
   branches/rawstudio-ng-color/librawstudio/rs-lens.c
   branches/rawstudio-ng-color/librawstudio/rs-lens.h
Log:
Added rs_lens_set_lensfun_enabled().

Modified: branches/rawstudio-ng-color/librawstudio/rs-lens.c
===================================================================
--- branches/rawstudio-ng-color/librawstudio/rs-lens.c  2009-12-30 17:45:44 UTC 
(rev 2894)
+++ branches/rawstudio-ng-color/librawstudio/rs-lens.c  2009-12-30 18:13:23 UTC 
(rev 2895)
@@ -351,3 +351,11 @@
 
        lens->lensfun_model = model;
 }
+
+void
+rs_lens_set_lensfun_enabled(RSLens *lens, gboolean enabled)
+{
+       g_assert(RS_IS_LENS(lens));
+
+       lens->enabled = enabled;
+}

Modified: branches/rawstudio-ng-color/librawstudio/rs-lens.h
===================================================================
--- branches/rawstudio-ng-color/librawstudio/rs-lens.h  2009-12-30 17:45:44 UTC 
(rev 2894)
+++ branches/rawstudio-ng-color/librawstudio/rs-lens.h  2009-12-30 18:13:23 UTC 
(rev 2895)
@@ -75,6 +75,7 @@
 
 void rs_lens_set_lensfun_make(RSLens *lens, gchar *make);
 void rs_lens_set_lensfun_model(RSLens *lens, gchar *model);
+void rs_lens_set_lensfun_enabled(RSLens *lens, gboolean enabled);
 
 G_END_DECLS
 


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to