|
|
d97fc9 |
From 3e562332b4acf4f66e2721b12bc8a31379b45815 Mon Sep 17 00:00:00 2001
|
|
|
d97fc9 |
From: Philippe Coval <philippe.coval@eurogiciel.fr>
|
|
|
d97fc9 |
Date: Wed, 24 Apr 2013 15:45:05 +0200
|
|
|
d97fc9 |
Subject: [PATCH 1/3] Build more convenient filenames (no ':' or ' ')
|
|
|
d97fc9 |
|
|
|
d97fc9 |
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=698740
|
|
|
d97fc9 |
---
|
|
|
d97fc9 |
src/screenshot-filename-builder.c | 6 +++---
|
|
|
d97fc9 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
d97fc9 |
|
|
|
d97fc9 |
diff --git a/src/screenshot-filename-builder.c b/src/screenshot-filename-builder.c
|
|
|
d97fc9 |
index b1d8e53..4e5c62a 100644
|
|
|
d97fc9 |
--- a/src/screenshot-filename-builder.c
|
|
|
d97fc9 |
+++ b/src/screenshot-filename-builder.c
|
|
|
d97fc9 |
@@ -132,7 +132,7 @@ build_path (AsyncExistenceJob *job)
|
|
|
d97fc9 |
GDateTime *d;
|
|
|
d97fc9 |
|
|
|
d97fc9 |
d = g_date_time_new_now_local ();
|
|
|
d97fc9 |
- origin = g_date_time_format (d, "%Y-%m-%d %H:%M:%S");
|
|
|
d97fc9 |
+ origin = g_date_time_format (d, "%Y-%m-%d-%H%M%S");
|
|
|
d97fc9 |
g_date_time_unref (d);
|
|
|
d97fc9 |
}
|
|
|
d97fc9 |
else
|
|
|
d97fc9 |
@@ -142,14 +142,14 @@ build_path (AsyncExistenceJob *job)
|
|
|
d97fc9 |
{
|
|
|
d97fc9 |
/* translators: this is the name of the file that gets made up
|
|
|
d97fc9 |
* with the screenshot if the entire screen is taken */
|
|
|
d97fc9 |
- file_name = g_strdup_printf (_("Screenshot from %s.%s"), origin, file_type);
|
|
|
d97fc9 |
+ file_name = g_strdup_printf (_("Screenshot-from-%s.%s"), origin, file_type);
|
|
|
d97fc9 |
}
|
|
|
d97fc9 |
else
|
|
|
d97fc9 |
{
|
|
|
d97fc9 |
/* translators: this is the name of the file that gets
|
|
|
d97fc9 |
* made up with the screenshot if the entire screen is
|
|
|
d97fc9 |
* taken */
|
|
|
d97fc9 |
- file_name = g_strdup_printf (_("Screenshot from %s - %d.%s"), origin, job->iteration, file_type);
|
|
|
d97fc9 |
+ file_name = g_strdup_printf (_("Screenshot-from-%s-%d.%s"), origin, job->iteration, file_type);
|
|
|
d97fc9 |
}
|
|
|
d97fc9 |
|
|
|
d97fc9 |
retval = g_build_filename (base_path, file_name, NULL);
|
|
|
d97fc9 |
--
|
|
|
d97fc9 |
2.4.0
|
|
|
d97fc9 |
|
|
|
d97fc9 |
From 840603fb31dfde18aeff5dab89a704754082d86c Mon Sep 17 00:00:00 2001
|
|
|
d97fc9 |
From: Cosimo Cecchi <cosimoc@gnome.org>
|
|
|
d97fc9 |
Date: Wed, 28 Jan 2015 12:40:34 +0000
|
|
|
d97fc9 |
Subject: [PATCH 2/3] filename-builder: reintroduce spaces in file names
|
|
|
d97fc9 |
|
|
|
d97fc9 |
In commit 51485cf6bf8a8794150be0b8dff61fd573ae1512 we removed colons and
|
|
|
d97fc9 |
spaces from the screenshot default filenames, but removing spaces is
|
|
|
d97fc9 |
not really needed for the purpose of the patch (compatibility with FAT
|
|
|
d97fc9 |
filesystems) and it looks bad. Bring spaces back.
|
|
|
d97fc9 |
---
|
|
|
d97fc9 |
src/screenshot-filename-builder.c | 6 +++---
|
|
|
d97fc9 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
d97fc9 |
|
|
|
d97fc9 |
diff --git a/src/screenshot-filename-builder.c b/src/screenshot-filename-builder.c
|
|
|
d97fc9 |
index 4e5c62a..9d8ee76 100644
|
|
|
d97fc9 |
--- a/src/screenshot-filename-builder.c
|
|
|
d97fc9 |
+++ b/src/screenshot-filename-builder.c
|
|
|
d97fc9 |
@@ -132,7 +132,7 @@ build_path (AsyncExistenceJob *job)
|
|
|
d97fc9 |
GDateTime *d;
|
|
|
d97fc9 |
|
|
|
d97fc9 |
d = g_date_time_new_now_local ();
|
|
|
d97fc9 |
- origin = g_date_time_format (d, "%Y-%m-%d-%H%M%S");
|
|
|
d97fc9 |
+ origin = g_date_time_format (d, "%Y-%m-%d %H%M%S");
|
|
|
d97fc9 |
g_date_time_unref (d);
|
|
|
d97fc9 |
}
|
|
|
d97fc9 |
else
|
|
|
d97fc9 |
@@ -142,14 +142,14 @@ build_path (AsyncExistenceJob *job)
|
|
|
d97fc9 |
{
|
|
|
d97fc9 |
/* translators: this is the name of the file that gets made up
|
|
|
d97fc9 |
* with the screenshot if the entire screen is taken */
|
|
|
d97fc9 |
- file_name = g_strdup_printf (_("Screenshot-from-%s.%s"), origin, file_type);
|
|
|
d97fc9 |
+ file_name = g_strdup_printf (_("Screenshot from %s.%s"), origin, file_type);
|
|
|
d97fc9 |
}
|
|
|
d97fc9 |
else
|
|
|
d97fc9 |
{
|
|
|
d97fc9 |
/* translators: this is the name of the file that gets
|
|
|
d97fc9 |
* made up with the screenshot if the entire screen is
|
|
|
d97fc9 |
* taken */
|
|
|
d97fc9 |
- file_name = g_strdup_printf (_("Screenshot-from-%s-%d.%s"), origin, job->iteration, file_type);
|
|
|
d97fc9 |
+ file_name = g_strdup_printf (_("Screenshot from %s - %d.%s"), origin, job->iteration, file_type);
|
|
|
d97fc9 |
}
|
|
|
d97fc9 |
|
|
|
d97fc9 |
retval = g_build_filename (base_path, file_name, NULL);
|
|
|
d97fc9 |
--
|
|
|
d97fc9 |
2.4.0
|
|
|
d97fc9 |
|
|
|
d97fc9 |
From 170b6ad5e7c8294f725e53102b63a6e587c5da40 Mon Sep 17 00:00:00 2001
|
|
|
d97fc9 |
From: Cosimo Cecchi <cosimoc@gnome.org>
|
|
|
d97fc9 |
Date: Wed, 28 Jan 2015 12:43:58 +0000
|
|
|
d97fc9 |
Subject: [PATCH 3/3] filename-builder: use dash for time format separator
|
|
|
d97fc9 |
|
|
|
d97fc9 |
We can't use colons, but a separator here still looks nice. Use a dash.
|
|
|
d97fc9 |
---
|
|
|
d97fc9 |
src/screenshot-filename-builder.c | 2 +-
|
|
|
d97fc9 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
d97fc9 |
|
|
|
d97fc9 |
diff --git a/src/screenshot-filename-builder.c b/src/screenshot-filename-builder.c
|
|
|
d97fc9 |
index 9d8ee76..89df3e0 100644
|
|
|
d97fc9 |
--- a/src/screenshot-filename-builder.c
|
|
|
d97fc9 |
+++ b/src/screenshot-filename-builder.c
|
|
|
d97fc9 |
@@ -132,7 +132,7 @@ build_path (AsyncExistenceJob *job)
|
|
|
d97fc9 |
GDateTime *d;
|
|
|
d97fc9 |
|
|
|
d97fc9 |
d = g_date_time_new_now_local ();
|
|
|
d97fc9 |
- origin = g_date_time_format (d, "%Y-%m-%d %H%M%S");
|
|
|
d97fc9 |
+ origin = g_date_time_format (d, "%Y-%m-%d %H-%M-%S");
|
|
|
d97fc9 |
g_date_time_unref (d);
|
|
|
d97fc9 |
}
|
|
|
d97fc9 |
else
|
|
|
d97fc9 |
--
|
|
|
d97fc9 |
2.4.0
|
|
|
d97fc9 |
|