summaryrefslogtreecommitdiffstats
path: root/src/widgets/desktop-widget.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-02-03 16:04:33 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-02-03 16:04:33 +0000
commitbc75860245b32e4a3bbe25c848d9f1a7613d4dac (patch)
tree58424eb0c41b29d505e1b31a698c6e66dec58414 /src/widgets/desktop-widget.cpp
parentMake units pc (pica) and ft (feet) work correctly. Closes: LP #167943. (diff)
downloadinkscape-bc75860245b32e4a3bbe25c848d9f1a7613d4dac.tar.gz
inkscape-bc75860245b32e4a3bbe25c848d9f1a7613d4dac.zip
Fix missing ruler and document title updates when a file is opened in an existing window
(bzr r4640)
Diffstat (limited to 'src/widgets/desktop-widget.cpp')
-rw-r--r--src/widgets/desktop-widget.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp
index 146717fc2..f4d87f084 100644
--- a/src/widgets/desktop-widget.cpp
+++ b/src/widgets/desktop-widget.cpp
@@ -701,6 +701,15 @@ sp_desktop_widget_realize (GtkWidget *widget)
dtw->desktop->set_display_area (d.x0, d.y0, d.x1, d.y1, 10);
+ sp_desktop_widget_update_namedview(dtw);
+}
+
+/* This is just to provide access to common functionality from sp_desktop_widget_realize() above
+ as well as from SPDesktop::change_document() */
+void
+sp_desktop_widget_update_namedview (SPDesktopWidget *dtw) {
+ g_return_if_fail(dtw);
+
/* Listen on namedview modification */
// originally (prior to the sigc++ conversion) the signal was simply
// connected twice rather than disconnecting the first connection