summaryrefslogtreecommitdiff
path: root/src/page-view.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/page-view.vala')
-rw-r--r--src/page-view.vala11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/page-view.vala b/src/page-view.vala
index 97bcaf0..7d228e4 100644
--- a/src/page-view.vala
+++ b/src/page-view.vala
@@ -80,6 +80,15 @@ public class PageView
page.scan_direction_changed.connect (scan_direction_changed_cb);
}
+ ~PageView ()
+ {
+ page.pixels_changed.disconnect (page_pixels_changed_cb);
+ page.size_changed.disconnect (page_size_changed_cb);
+ page.crop_changed.disconnect (page_overlay_changed_cb);
+ page.scan_line_changed.disconnect (page_overlay_changed_cb);
+ page.scan_direction_changed.disconnect (scan_direction_changed_cb);
+ }
+
public Page get_page ()
{
return page;
@@ -882,7 +891,7 @@ public class PageView
var y = outer_radius * (Math.cos (arc) - 1.0);
var inner_radius = 0.6 * Math.sqrt (x*x + y*y);
- double offset = 0.0;
+ double offset = 0.0;
for (var i = 0; i < animate_n_segments; i++, offset += arc * 2)
{
x = w / 2 + outer_radius * Math.sin (offset);