From 90a8e832d9ebf093fae1b01a07011d873c323dc5 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sun, 1 Apr 2007 18:36:14 +0000 Subject: [PATCH] When prompting for 'Save As...', show the name of the root canvas being saved in the title bar. git-svn-id: http://svn.voria.com/code@410 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/instance.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/synfig-studio/trunk/src/gtkmm/instance.cpp b/synfig-studio/trunk/src/gtkmm/instance.cpp index 58ef103..da88e80 100644 --- a/synfig-studio/trunk/src/gtkmm/instance.cpp +++ b/synfig-studio/trunk/src/gtkmm/instance.cpp @@ -252,7 +252,13 @@ studio::Instance::dialog_save_as() } } - while(App::dialog_saveas_file("SaveAs", filename)) + // show the canvas' name if it has one, else its ID + while(App::dialog_saveas_file(_("Choose a Filename to Save As") + + String(" (") + + (canvas->get_name().empty() + ? canvas->get_id() + : canvas->get_name()) + + ") ...", filename)) { // If the filename still has wildcards, then we should // continue looking for the file we want -- 2.7.4