After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 546196 - suggest snapshot filename
suggest snapshot filename
Status: RESOLVED FIXED
Product: gnome-utils
Classification: Deprecated
Component: baobab
trunk
Other Linux
: Normal minor
: ---
Assigned To: Fabio Marzocca
gnome-utils Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-04 09:09 UTC by Paolo Borelli
Modified: 2009-10-27 12:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Adds suggested filename to chart snapshot file-chooser dialog (1.99 KB, patch)
2009-01-29 19:07 UTC, Eduardo Lima Mitev
none Details | Review
Adds suggested filename to chart snapshot file-chooser dialog (update) (2.39 KB, patch)
2009-07-27 11:52 UTC, Eduardo Lima Mitev
none Details | Review
Adds suggested filename to chart snapshot file-chooser dialog ("%s-disk-usage") (2.38 KB, patch)
2009-07-27 13:22 UTC, Eduardo Lima Mitev
accepted-commit_now Details | Review

Description Paolo Borelli 2008-08-04 09:09:24 UTC
When right clicking on the treemap/ringschart to save a snapshot of the current chart, the filechooser should be prepopulated with a default suggested filename
Comment 1 Eduardo Lima Mitev 2009-01-29 19:07:59 UTC
Created attachment 127483 [details] [review]
Adds suggested filename to chart snapshot file-chooser dialog

Hi,
this simple patch tries to solves suggesting a filename for the file-chooser dialog. A macro called SNAPSHOT_DEF_FILENAME_FORMAT was defined in BaobabChart to hold a printf-like format for the suggested name. "%s-snapshot" is my first proposition, where %s refers to the item name currently set as root of the chart. If the chart is in summary-mode (no scanning has being done yet), %s will hold "summary", so the suggested filename would be "summary-snapshot". I encourage you to propose new filename formats.
The actual filename after user pushes save, is checked the extension, and appended from the image type selected, if no specified by the user.
Comment 2 Eduardo Lima Mitev 2009-07-27 11:52:44 UTC
Created attachment 139275 [details] [review]
Adds suggested filename to chart snapshot file-chooser dialog (update)

Last patch updated to merge with current git master. Suggested filename format changed to "%s-baobab-snapshot" where %s is the chart's current root item's name.

Anyone to review it? Any comments?
Comment 3 Paolo Borelli 2009-07-27 11:58:23 UTC
looks ok to me except that I would not put 'baobab' in the filename... let's use something more meaningful for the user, maybe "%s-disk-usage"
Comment 4 Eduardo Lima Mitev 2009-07-27 13:22:04 UTC
Created attachment 139282 [details] [review]
Adds suggested filename to chart snapshot file-chooser dialog ("%s-disk-usage")

Agreed, changed format to "%s-disk-usage".