summaryrefslogtreecommitdiffstats
path: root/src/inkview.cpp
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-05-13 21:16:17 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-05-13 21:16:17 +0000
commitb22b1218a3b22272e5c223959272fd22bb477548 (patch)
treeafbf1e01a7db11eeacc3303ffc497748bb611c38 /src/inkview.cpp
parentInkview: Print warning if a file failed to load. (diff)
downloadinkscape-b22b1218a3b22272e5c223959272fd22bb477548.tar.gz
inkscape-b22b1218a3b22272e5c223959272fd22bb477548.zip
Inkview: Show number of current slide and total number of slides in title
(bzr r15690.1.6)
Diffstat (limited to 'src/inkview.cpp')
-rw-r--r--src/inkview.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/inkview.cpp b/src/inkview.cpp
index 5ba896a40..897ecb3fb 100644
--- a/src/inkview.cpp
+++ b/src/inkview.cpp
@@ -93,7 +93,12 @@ public:
/// Update the window title with current document name
void update_title()
{
- set_title(_doc->getName());
+ Glib::ustring title(_doc->getName());
+ if (_slides.size() > 1) {
+ title += Glib::ustring::compose(" (%1/%2)", _current+1, _slides.size());
+ }
+
+ set_title(title);
}
SPSlideShow(std::vector<Glib::ustring> const &slides);