summaryrefslogtreecommitdiffstats
path: root/src/widgets/desktop-widget.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2006-11-04 22:01:22 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2006-11-04 22:01:22 +0000
commitb0f408c6b595531b2027dbf4074ccce82e2576f7 (patch)
tree59c8410e426c9b3a29dc9536ad0c911c3ecbae48 /src/widgets/desktop-widget.cpp
parentupdate window title when switching display mode (diff)
downloadinkscape-b0f408c6b595531b2027dbf4074ccce82e2576f7.tar.gz
inkscape-b0f408c6b595531b2027dbf4074ccce82e2576f7.zip
add (outline) to window title when in outline mode
(bzr r1897)
Diffstat (limited to 'src/widgets/desktop-widget.cpp')
-rw-r--r--src/widgets/desktop-widget.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp
index 6b15bb370..106df37d7 100644
--- a/src/widgets/desktop-widget.cpp
+++ b/src/widgets/desktop-widget.cpp
@@ -37,6 +37,7 @@
#include "prefs-utils.h"
#include "file.h"
#include "display/canvas-arena.h"
+#include "display/nr-arena.h"
#include <extension/db.h>
#include "helper/units.h"
#include "widgets/button.h"
@@ -387,9 +388,17 @@ SPDesktopWidget::updateTitle(gchar const* uri)
: g_basename(uri) );
GString *name = g_string_new ("");
if (this->desktop->number > 1) {
- g_string_printf (name, _("%s: %d - Inkscape"), fname, this->desktop->number);
+ if (this->desktop->getMode() == RENDERMODE_OUTLINE) {
+ g_string_printf (name, _("%s: %d (outline) - Inkscape"), fname, this->desktop->number);
+ } else {
+ g_string_printf (name, _("%s: %d - Inkscape"), fname, this->desktop->number);
+ }
} else {
- g_string_printf (name, _("%s - Inkscape"), fname);
+ if (this->desktop->getMode() == RENDERMODE_OUTLINE) {
+ g_string_printf (name, _("%s (outline) - Inkscape"), fname);
+ } else {
+ g_string_printf (name, _("%s - Inkscape"), fname);
+ }
}
gtk_window_set_title (window, name->str);
g_string_free (name, TRUE);