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 165684 - Save image as .xcf when no extension has been typed
Save image as .xcf when no extension has been typed
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
2.2.x
Other All
: Normal enhancement
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
: 324105 432763 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-01-30 11:14 UTC by Jaap A. Haitsma
Modified: 2008-01-15 12:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A Patch against CVS head that hopefully fixes this problem. (3.36 KB, patch)
2005-02-06 06:12 UTC, Shlomi Fish
needs-work Details | Review
A Patch to correct the problem, corrected according to Sven's input (4.81 KB, patch)
2005-02-07 18:38 UTC, Shlomi Fish
accepted-commit_now Details | Review

Description Jaap A. Haitsma 2005-01-30 11:14:04 UTC
If newbies then save a file they do not have to remember what the extension of
gimp files are + files are then automatically saved in the best format
Comment 1 Michael Natterer 2005-02-01 22:07:17 UTC
Confirming and setting to 2.4 as this seems to be standard behavior
and is a real usability problem.
Comment 2 Raphaël Quinet 2005-02-04 10:04:09 UTC
See also bug #159616
Comment 3 Shlomi Fish 2005-02-06 06:12:46 UTC
Created attachment 37049 [details] [review]
A Patch against CVS head that hopefully fixes this problem.

This is a patch against CVS head that fixes the problem (at least from what I
tried).
Comment 4 Sven Neumann 2005-02-06 13:35:09 UTC
Comment on attachment 37049 [details] [review]
A Patch against CVS head that hopefully fixes this problem.

The patch doesn't conform to the coding style. I also don't like that it
changes the parameters passed to file_save_as(). The file functions are already
quite confusing. Introducing another set of parameter names won't improve that.
Perhaps you can modify the patch a little?
Comment 5 Shlomi Fish 2005-02-06 14:16:05 UTC
OK, I fixed the missing whitespace before the ( for function calls in my copy. I
couldn't find any other coding style problems. I don't change the parameters -
they are the same arglist, and the parameters themselves are not modified. What
I did change was the parameter names, so I can declare different variables with
the names of the original parameters, but the ones that are actually going to be
used.

Do you want me to convert input_raw_filename and input_uri back into
raw_filename and uri, and find different names for the processed variables?
Comment 6 Sven Neumann 2005-02-06 15:17:07 UTC
Yes, that's what I meant to ask you for.
Comment 7 Shlomi Fish 2005-02-07 18:38:27 UTC
Created attachment 37117 [details] [review]
A Patch to correct the problem, corrected according to Sven's input

Here's a more corrected patch. The style problems were fixed, and now the
parameter names were restored to the original ones.
Comment 8 Sven Neumann 2005-02-10 14:32:31 UTC
2005-02-10  Sven Neumann  <sven@gimp.org>

	* app/file/file-save.c (file_save_as): applied a (slightly
	modified) patch from Shlomi Fish that automatically adds the .xcf
	extension if none is given (bug #165684).
Comment 9 Sven Neumann 2005-02-15 22:04:00 UTC
*** Bug 167527 has been marked as a duplicate of this bug. ***
Comment 10 Nathan Summers 2005-02-15 22:28:31 UTC
Suggest a commit to the 2.2 branch as well.
Comment 11 Sven Neumann 2005-02-15 23:02:51 UTC
It's an enhancement, not a bug-fix. And the patch that I committed wasn't
sufficient at all. Mitch spent a whole day to fix it up and the code is still
full of debugging output. We are certainly not going to backport this change.
Comment 12 Sven Neumann 2005-12-15 09:06:59 UTC
*** Bug 324105 has been marked as a duplicate of this bug. ***
Comment 13 Michael Natterer 2007-04-24 08:43:37 UTC
*** Bug 432763 has been marked as a duplicate of this bug. ***