[simple-scan/gnome-3-28] Drop default value of non-automatic property for newer vala



commit 143c59336e7e678832bf652903c0e7fabfcc7bac
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Apr 23 16:36:57 2018 +0200

    Drop default value of non-automatic property for newer vala

 src/page.vala | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/page.vala b/src/page.vala
index 582aef8..c859df9 100644
--- a/src/page.vala
+++ b/src/page.vala
@@ -86,7 +86,7 @@ public class Page
     public bool is_color { get { return n_channels > 1; } }
 
     /* Rotation of scanned data */
-    private ScanDirection scan_direction_;
+    private ScanDirection scan_direction_ = ScanDirection.TOP_TO_BOTTOM;
     public ScanDirection scan_direction
     {
         get { return scan_direction_; }
@@ -142,8 +142,6 @@ public class Page
             if (has_crop)
                 crop_changed ();
         }
-        
-        default = ScanDirection.TOP_TO_BOTTOM;
     }
 
     /* True if the page has a crop set */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]