[gnome-utils] Don't use window title in default filenames
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-utils] Don't use window title in default filenames
- Date: Mon, 13 Jun 2011 18:53:03 +0000 (UTC)
commit 83fdccac9de0686ffd4c21fc8291a41dd7579de7
Author: William Jon McCann <jmccann redhat com>
Date: Fri Jun 10 14:20:46 2011 -0400
Don't use window title in default filenames
Now that we have the timestamp it isn't needed to help make the filename
unique. It makes the filename really really long and makes the window
snaps inconsistent from the area and full screen ones. This makes it a
bit harder to edit name name if necessary in the dialog.
https://bugzilla.gnome.org/show_bug.cgi?id=565907
gnome-screenshot/gnome-screenshot.c | 36 ++++++----------------------------
1 files changed, 7 insertions(+), 29 deletions(-)
---
diff --git a/gnome-screenshot/gnome-screenshot.c b/gnome-screenshot/gnome-screenshot.c
index 40e232c..f37002d 100644
--- a/gnome-screenshot/gnome-screenshot.c
+++ b/gnome-screenshot/gnome-screenshot.c
@@ -986,40 +986,18 @@ build_uri (AsyncExistenceJob *job)
timestamp = g_date_time_format (d, _("%Y-%m-%d %H:%M:%S"));
g_date_time_unref (d);
- if (window_title)
+ if (job->iteration == 0)
{
/* translators: this is the name of the file that gets made up
- * with the screenshot if a specific window is taken */
- if (job->iteration == 0)
- {
- file_name = g_strdup_printf (_("Screenshot %s - %s.png"), timestamp, window_title);
- }
- else
- {
- /* translators: this is the name of the file that gets
- * made up with the screenshot if a specific window is
- * taken */
- file_name = g_strdup_printf (_("Screenshot %s - %s-%d.png"),
- timestamp,
- window_title,
- job->iteration);
- }
+ * with the screenshot if the entire screen is taken */
+ file_name = g_strdup_printf (_("Screenshot at %s.png"), timestamp);
}
else
{
- if (job->iteration == 0)
- {
- /* 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 %s.png"), timestamp);
- }
- 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 %s - %d.png"), timestamp, job->iteration);
- }
+ /* 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 at %s - %d.png"), timestamp, job->iteration);
}
retval = g_build_filename (job->base_uris[job->type], file_name, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]