~ubuntu-branches/ubuntu/vivid/simple-scan/vivid

« back to all changes in this revision

Viewing changes to src/page.vala

  • Committer: Matthew Fischer
  • Date: 2013-05-20 02:32:36 UTC
  • mfrom: (1.3.21)
  • Revision ID: matthew.fischer@canonical.com-20130520023236-vn5tflz51tidk8kk
* New upstream release (LP: #1181896)
  - debian/patches/01-zlib.patch: Dropped, zlib now has a pkg-config file

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
    public signal void scan_line_changed ();
64
64
    public signal void scan_direction_changed ();
65
65
    public signal void crop_changed ();
 
66
    public signal void scan_finished ();
66
67
 
67
68
    public Page (int width, int height, int dpi, ScanDirection scan_direction)
68
69
    {
199
200
        if (size_has_changed)
200
201
            size_changed ();
201
202
        scan_line_changed ();
 
203
        scan_finished ();
202
204
    }
203
205
 
204
206
    public ScanDirection get_scan_direction ()
541
543
        return pixels;
542
544
    }
543
545
 
 
546
    public void set_pixels (uchar[] new_pixels)
 
547
    {
 
548
        pixels = new_pixels;
 
549
        has_data_ = new_pixels != null;
 
550
        pixels_changed ();
 
551
    }
 
552
 
544
553
    // FIXME: Copied from page-view, should be shared code
545
554
    private uchar get_sample (uchar[] pixels, int offset, int x, int depth, int n_channels, int channel)
546
555
    {