[shotwell/shotwell-0.30] Properly chain up AppWindow and siblings



commit bacf78383fb458adc9c465827767e9a1957f4e52
Author: Jens Georg <mail jensge org>
Date:   Fri Feb 22 11:42:17 2019 +0100

    Properly chain up AppWindow and siblings

 src/AppWindow.vala             | 2 ++
 src/direct/DirectWindow.vala   | 2 ++
 src/library/LibraryWindow.vala | 2 ++
 3 files changed, 6 insertions(+)
---
diff --git a/src/AppWindow.vala b/src/AppWindow.vala
index 22b47c29..5c1496e2 100644
--- a/src/AppWindow.vala
+++ b/src/AppWindow.vala
@@ -408,6 +408,8 @@ public abstract class AppWindow : PageWindow {
     protected int pos_y = 0;
     
     public AppWindow() {
+        base();
+
         // although there are multiple AppWindow types, only one may exist per-process
         assert(instance == null);
         instance = this;
diff --git a/src/direct/DirectWindow.vala b/src/direct/DirectWindow.vala
index 1f33a761..9eec5b1e 100644
--- a/src/direct/DirectWindow.vala
+++ b/src/direct/DirectWindow.vala
@@ -8,6 +8,8 @@ public class DirectWindow : AppWindow {
     private DirectPhotoPage direct_photo_page;
     
     public DirectWindow(File file) {
+       base();
+
         direct_photo_page = new DirectPhotoPage(file);
         direct_photo_page.get_view().items_altered.connect(on_photo_changed);
         direct_photo_page.get_view().items_state_changed.connect(on_photo_changed);
diff --git a/src/library/LibraryWindow.vala b/src/library/LibraryWindow.vala
index b9acb221..99a1c679 100644
--- a/src/library/LibraryWindow.vala
+++ b/src/library/LibraryWindow.vala
@@ -162,6 +162,8 @@ public class LibraryWindow : AppWindow {
 #endif
     
     public LibraryWindow(ProgressMonitor progress_monitor) {
+        base();
+
         // prep sidebar and add roots
         sidebar_tree = new Sidebar.Tree(DND_TARGET_ENTRIES, Gdk.DragAction.ASK,
             external_drop_handler);


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