diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2020-03-22 17:06:01 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2020-03-22 17:06:01 +0100 |
commit | 7ac7082eb0fa3735eb23acf72dbe607217a358c2 (patch) | |
tree | eaaa24afe631aaee5c974eae548f6a0d52ad9677 /src/page-view.vala | |
parent | ae74184112077229d41e2ee633cc69f038482446 (diff) | |
parent | 8eb2b297d6e03975afc17e1d468aa8913639e1a9 (diff) |
Update upstream source from tag 'upstream/3.36.0'
Update to upstream version '3.36.0'
with Debian dir 54f0a2ec8f9f5de5b2af336ce18e8f826001f5cd
Diffstat (limited to 'src/page-view.vala')
-rw-r--r-- | src/page-view.vala | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/src/page-view.vala b/src/page-view.vala index abe5e69..91a2c82 100644 --- a/src/page-view.vala +++ b/src/page-view.vala @@ -36,7 +36,7 @@ public class PageView : Object public bool selected { get { return selected_; } - set + set { if ((this.selected && selected) || (!this.selected && !selected)) return; @@ -845,39 +845,6 @@ public class PageView : Object Gdk.cairo_set_source_pixbuf (context, image, 0, 0); context.paint (); - /* Draw throbber */ - if (page.is_scanning && !page.has_data) - { - double outer_radius; - if (w > h) - outer_radius = 0.15 * w; - else - outer_radius = 0.15 * h; - var arc = Math.PI / animate_n_segments; - - /* Space circles */ - var x = outer_radius * Math.sin (arc); - var y = outer_radius * (Math.cos (arc) - 1.0); - var inner_radius = 0.6 * Math.sqrt (x*x + y*y); - - double offset = 0.0; - for (var i = 0; i < animate_n_segments; i++, offset += arc * 2) - { - x = w / 2 + outer_radius * Math.sin (offset); - y = h / 2 - outer_radius * Math.cos (offset); - context.arc (x, y, inner_radius, 0, 2 * Math.PI); - - if (i == animate_segment) - { - context.set_source_rgb (0.75, 0.75, 0.75); - context.fill_preserve (); - } - - context.set_source_rgb (0.5, 0.5, 0.5); - context.stroke (); - } - } - /* Draw scan line */ if (page.is_scanning && page.scan_line > 0) { |