Commit 49ced8dc authored by Jens Georg's avatar Jens Georg

Properly chain up AppWindow and siblings

parent 23b6d890
......@@ -406,6 +406,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;
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment