summaryrefslogtreecommitdiffstats
path: root/src/inkscape.cpp
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2012-10-12 17:18:08 +0000
committer~suv <suv-sf@users.sourceforge.net>2012-10-12 17:18:08 +0000
commitd997c6a08a0d1184e8a4aec708033d0f548802f8 (patch)
treee644b11bedb210813006dbfe4fb6a703bb642fae /src/inkscape.cpp
parentmerge from trunk (r11761) (diff)
parentFix for compiling with pre gtkmm 2.24 libraries. (diff)
downloadinkscape-d997c6a08a0d1184e8a4aec708033d0f548802f8.tar.gz
inkscape-d997c6a08a0d1184e8a4aec708033d0f548802f8.zip
merge from trunk (r11787)
(bzr r11668.1.28)
Diffstat (limited to 'src/inkscape.cpp')
-rw-r--r--src/inkscape.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 0a94d0742..fc9a9783f 100644
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
@@ -312,8 +312,8 @@ static gint inkscape_autosave(gpointer)
// Try to create the autosave directory if it doesn't exist
if (g_mkdir(autosave_dir.c_str(), 0755)) {
// the creation failed
- Glib::ustring msg = Glib::ustring::format(
- _("Autosave failed! Cannot create directory "), Glib::filename_to_utf8(autosave_dir));
+ Glib::ustring msg = Glib::ustring::compose(
+ _("Autosave failed! Cannot create directory %1."), Glib::filename_to_utf8(autosave_dir));
g_warning("%s", msg.c_str());
SP_ACTIVE_DESKTOP->messageStack()->flash(Inkscape::ERROR_MESSAGE, msg.c_str());
return TRUE;
@@ -321,8 +321,8 @@ static gint inkscape_autosave(gpointer)
// Try to read dir again
autosave_dir_ptr = g_dir_open(autosave_dir.c_str(), 0, NULL);
if( !autosave_dir_ptr ){
- Glib::ustring msg = Glib::ustring::format(
- _("Autosave failed! Cannot open directory "), Glib::filename_to_utf8(autosave_dir));
+ Glib::ustring msg = Glib::ustring::compose(
+ _("Autosave failed! Cannot open directory %1."), Glib::filename_to_utf8(autosave_dir));
g_warning("%s", msg.c_str());
SP_ACTIVE_DESKTOP->messageStack()->flash(Inkscape::ERROR_MESSAGE, msg.c_str());
return TRUE;