From 6068183f7612525060a38d7ddf813f67cee62db5 Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Wed, 7 Mar 2012 21:27:39 +0100 Subject: UI. Fix for bug #294354 (Unsaved files should have an asterisk (*) in the titlebar). Fixed bugs: - https://launchpad.net/bugs/294354 (bzr r11054) --- src/document.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/document.cpp') 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: -- cgit v1.2.3