summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2012-03-07 20:27:39 +0000
committerJazzyNico <nicoduf@yahoo.fr>2012-03-07 20:27:39 +0000
commit6068183f7612525060a38d7ddf813f67cee62db5 (patch)
treec6af67b866d475fcae6289b0cdd5ae2f0b1da69f /src/document.cpp
parentBitmaps. Fix for bug #499252 (Edit bitmap externally fails for relative links). (diff)
downloadinkscape-6068183f7612525060a38d7ddf813f67cee62db5.tar.gz
inkscape-6068183f7612525060a38d7ddf813f67cee62db5.zip
UI. Fix for bug #294354 (Unsaved files should have an asterisk (*) in the titlebar).
Fixed bugs: - https://launchpad.net/bugs/294354 (bzr r11054)
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/document.cpp b/src/document.cpp
index 6c6b41160..b5383c91d 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -60,6 +60,7 @@
#include "sp-object-repr.h"
#include "transf_mat_3x4.h"
#include "unit-constants.h"
+#include "widgets/desktop-widget.h"
#include "xml/repr.h"
#include "xml/rebase-hrefs.h"
#include "libcroco/cr-cascade.h"
@@ -1424,6 +1425,13 @@ bool SPDocument::isSeeking() const {
return priv->seeking;
}
+void SPDocument::setModifiedSinceSave(bool modified) {
+ this->modified_since_save = modified;
+ Gtk::Window *parent = SP_ACTIVE_DESKTOP->getToplevel();
+ g_assert(parent != NULL);
+ SPDesktopWidget *dtw = (SPDesktopWidget *) parent->get_data("desktopwidget");
+ dtw->updateTitle( this->getName() );
+}
/*
Local Variables: