From cf12beaa12f85928c13bf9d5f7db7e710fff7f0a Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 12 Oct 2007 22:36:21 +0000 Subject: [PATCH] Show whether a canvas is unsaved or not by putting a '*' in front of its name when it is unsaved. Showing '(unsaved)' at the end often doesn't fit in the titlebar. git-svn-id: http://svn.voria.com/code@917 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/canvasview.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.cpp b/synfig-studio/trunk/src/gtkmm/canvasview.cpp index b88484f..f1b6b1e 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasview.cpp @@ -1969,6 +1969,8 @@ CanvasView::update_title() { string title; + if(get_instance()->synfigapp::Instance::get_action_count()) + title="*"; title+=etl::basename(get_instance()->get_file_name()) +" : "; if(get_canvas()->get_name().empty()) @@ -1976,9 +1978,6 @@ CanvasView::update_title() else title+='"'+get_canvas()->get_name()+'"'; - if(get_instance()->synfigapp::Instance::get_action_count()) - title+=_(" (Unsaved)"); - if(get_instance()->synfigapp::Instance::in_repository()) { title+=" (CVS"; -- 2.7.4