Show whether a canvas is unsaved or not by putting a '*' in front of its name when...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 12 Oct 2007 22:36:21 +0000 (22:36 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 12 Oct 2007 22:36:21 +0000 (22:36 +0000)
git-svn-id: http://svn.voria.com/code@917 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/canvasview.cpp

index b88484f..f1b6b1e 100644 (file)
@@ -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";