summaryrefslogtreecommitdiffstats
path: root/src/svg-view-slideshow.cpp
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-05-14 00:41:40 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-05-14 00:41:40 +0000
commit9607306c03378d38b9ba67b7f0120593b7820826 (patch)
treec5fe346051655c9bcfa49f1440961afc8743a69d /src/svg-view-slideshow.cpp
parentInkview: Refactoring - move SPSlideShow to separate source file (diff)
downloadinkscape-9607306c03378d38b9ba67b7f0120593b7820826.tar.gz
inkscape-9607306c03378d38b9ba67b7f0120593b7820826.zip
Inkview: Some more refactoring
(bzr r15690.1.9)
Diffstat (limited to 'src/svg-view-slideshow.cpp')
-rw-r--r--src/svg-view-slideshow.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/svg-view-slideshow.cpp b/src/svg-view-slideshow.cpp
index eebcd94df..f9a392d3e 100644
--- a/src/svg-view-slideshow.cpp
+++ b/src/svg-view-slideshow.cpp
@@ -29,7 +29,6 @@
# include "config.h"
#endif
-#include <gtkmm/applicationwindow.h>
#include <gtkmm/button.h>
#include <gtkmm/buttonbox.h>
#include <gtkmm/image.h>
@@ -149,6 +148,18 @@ void SPSlideShow::normal_cursor()
}
}
+
+/// Update the window title with current document name
+void SPSlideShow::update_title()
+{
+ Glib::ustring title(_doc->getName());
+ if (_slides.size() > 1) {
+ title += Glib::ustring::compose(" (%1/%2)", _current+1, _slides.size());
+ }
+
+ set_title(title);
+}
+
void SPSlideShow::set_document(SPDocument *doc,
int current)
{