summaryrefslogtreecommitdiff
path: root/graphics/shotwell/patch-src-photos-GRaw.vala
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2012-09-20 00:08:55 -0400
committerdsomero <xgizzmo@slackbuilds.org>2012-09-20 00:09:54 -0400
commitc87893e2bd517ce60938748f31680a891b67469a (patch)
treed084c8b6f6a007db35ba44d49ece3cabb7411c7f /graphics/shotwell/patch-src-photos-GRaw.vala
parent6845836d445466e8b4bff8f0adcd3aa8a26c5257 (diff)
downloadslackbuilds-c87893e2bd517ce60938748f31680a891b67469a.tar.gz
graphics/shotwell: Patched for LibRaw 0.14.x
Diffstat (limited to 'graphics/shotwell/patch-src-photos-GRaw.vala')
-rw-r--r--graphics/shotwell/patch-src-photos-GRaw.vala65
1 files changed, 65 insertions, 0 deletions
diff --git a/graphics/shotwell/patch-src-photos-GRaw.vala b/graphics/shotwell/patch-src-photos-GRaw.vala
new file mode 100644
index 0000000000..cc72b6ce5c
--- /dev/null
+++ b/graphics/shotwell/patch-src-photos-GRaw.vala
@@ -0,0 +1,65 @@
+--- src/photos/GRaw.vala.orig 2012-02-15 17:13:51.000000000 -0800
++++ src/photos/GRaw.vala 2012-02-15 17:15:48.000000000 -0800
+@@ -34,11 +34,11 @@
+ OUT_OF_ORDER_CALL,
+ NO_THUMBNAIL,
+ UNSUPPORTED_THUMBNAIL,
+- CANNOT_ADDMASK,
+ OUT_OF_MEMORY,
+ DATA_ERROR,
+ IO_ERROR,
+ CANCELLED_BY_CALLBACK,
++ BAD_CROP,
+ SYSTEM_ERROR
+ }
+
+@@ -163,10 +163,6 @@
+ proc = new LibRaw.Processor(options);
+ }
+
+- public void add_masked_borders_to_bitmap() {
+- proc.add_masked_borders_to_bitmap();
+- }
+-
+ public void adjust_sizes_info_only() throws Exception {
+ throw_exception("adjust_sizes_info_only", proc.adjust_sizes_info_only());
+ }
+@@ -215,10 +211,6 @@
+ throw_exception("ppm_tiff_writer", proc.ppm_tiff_writer(filename));
+ }
+
+- public void rotate_fuji_raw() throws Exception {
+- throw_exception("rotate_fuji_raw", proc.rotate_fuji_raw());
+- }
+-
+ public void thumb_writer(string filename) throws Exception {
+ throw_exception("thumb_writer", proc.thumb_writer(filename));
+ }
+@@ -262,7 +254,6 @@
+ // camera_profile
+ // bad_pixels
+ // dark_frame
+- output_params->filtering_mode = LibRaw.Filtering.AUTOMATIC;
+ output_params->output_bps = 8;
+ // output_tiff
+ output_params->user_flip = GRaw.Flip.FROM_SOURCE;
+@@ -303,9 +294,6 @@
+ case LibRaw.Result.UNSUPPORTED_THUMBNAIL:
+ throw new Exception.UNSUPPORTED_THUMBNAIL(msg);
+
+- case LibRaw.Result.CANNOT_ADDMASK:
+- throw new Exception.CANNOT_ADDMASK(msg);
+-
+ case LibRaw.Result.UNSUFFICIENT_MEMORY:
+ throw new Exception.OUT_OF_MEMORY(msg);
+
+@@ -317,6 +305,9 @@
+
+ case LibRaw.Result.CANCELLED_BY_CALLBACK:
+ throw new Exception.CANCELLED_BY_CALLBACK(msg);
++
++ case LibRaw.Result.BAD_CROP:
++ throw new Exception.BAD_CROP(msg);
+
+ default:
+ return;