Code

add (outline) to window title when in outline mode
authorbuliabyak <buliabyak@users.sourceforge.net>
Sat, 4 Nov 2006 22:01:22 +0000 (22:01 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sat, 4 Nov 2006 22:01:22 +0000 (22:01 +0000)
src/widgets/desktop-widget.cpp

index 6b15bb370a0b081576b18f5f8e2eeb38e8caa0f5..106df37d7ffa729cca6fb2e298dd59a7761817b7 100644 (file)
@@ -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);