From 122863b010561810b39a24c77d946b80fefde359 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sat, 4 Nov 2006 22:01:22 +0000 Subject: [PATCH] add (outline) to window title when in outline mode --- src/widgets/desktop-widget.cpp | 13 +++++++++++-- 1 file 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 #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); -- 2.30.2