summaryrefslogtreecommitdiffstats
path: root/src/inkscape-window.h
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-10-22 18:49:19 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-10-22 18:49:34 +0000
commit4e2f989a99874cf6a50cd9583c16fd36c6c8ac12 (patch)
tree1a8b0727e038a5cf1e091414bbdb3482d8e78812 /src/inkscape-window.h
parentProperly calculate line height for flowDiv (diff)
downloadinkscape-4e2f989a99874cf6a50cd9583c16fd36c6c8ac12.tar.gz
inkscape-4e2f989a99874cf6a50cd9583c16fd36c6c8ac12.zip
Properly update document view when closing, then opening a new file
We call "change_document()" in this case, which only switches the document without creating a new window and consequently did not do any of the required set-up This ensures window size/position and other preferences stored in <namedview> are properly applied.
Diffstat (limited to 'src/inkscape-window.h')
-rw-r--r--src/inkscape-window.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inkscape-window.h b/src/inkscape-window.h
index e05b923c0..f3c94452a 100644
--- a/src/inkscape-window.h
+++ b/src/inkscape-window.h
@@ -55,6 +55,8 @@ private:
Gtk::Box* _mainbox;
Gtk::MenuBar* _menubar;
+ void setup_view();
+
// Callbacks
bool on_key_press_event(GdkEventKey* event) override;
bool on_focus_in_event(GdkEventFocus* event) override;