[gnome-screenshot] Build more convenient filenames (no ':' or ' ')
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screenshot] Build more convenient filenames (no ':' or ' ')
- Date: Sat, 22 Nov 2014 01:38:26 +0000 (UTC)
commit 51485cf6bf8a8794150be0b8dff61fd573ae1512
Author: Philippe Coval <philippe coval eurogiciel fr>
Date: Wed Apr 24 15:45:05 2013 +0200
Build more convenient filenames (no ':' or ' ')
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=698740
src/screenshot-filename-builder.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/screenshot-filename-builder.c b/src/screenshot-filename-builder.c
index b1d8e53..4e5c62a 100644
--- a/src/screenshot-filename-builder.c
+++ b/src/screenshot-filename-builder.c
@@ -132,7 +132,7 @@ build_path (AsyncExistenceJob *job)
GDateTime *d;
d = g_date_time_new_now_local ();
- origin = g_date_time_format (d, "%Y-%m-%d %H:%M:%S");
+ origin = g_date_time_format (d, "%Y-%m-%d-%H%M%S");
g_date_time_unref (d);
}
else
@@ -142,14 +142,14 @@ build_path (AsyncExistenceJob *job)
{
/* translators: this is the name of the file that gets made up
* with the screenshot if the entire screen is taken */
- file_name = g_strdup_printf (_("Screenshot from %s.%s"), origin, file_type);
+ file_name = g_strdup_printf (_("Screenshot-from-%s.%s"), origin, file_type);
}
else
{
/* translators: this is the name of the file that gets
* made up with the screenshot if the entire screen is
* taken */
- file_name = g_strdup_printf (_("Screenshot from %s - %d.%s"), origin, job->iteration, file_type);
+ file_name = g_strdup_printf (_("Screenshot-from-%s-%d.%s"), origin, job->iteration, file_type);
}
retval = g_build_filename (base_path, file_name, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]