summaryrefslogtreecommitdiff
path: root/src/page-view.vala
diff options
context:
space:
mode:
authorAlessio Treglia <alessio@debian.org>2013-01-15 00:46:37 +0000
committerAlessio Treglia <alessio@debian.org>2013-01-15 00:46:37 +0000
commit8f1bef0c8abe53da0001b0d4df1f5439fecd9c3b (patch)
tree67137e06f48cbe06c0bf16052ea446edf63eb7a0 /src/page-view.vala
parentd723aded8c1b91731f391754358750e9119d6689 (diff)
parentb99db4e5834bb8668c249bb7ce30af9a4d23527e (diff)
Merge tag 'upstream/3.6.0'
Upstream version 3.6.0
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);