Commit Graph

25166 Commits

Author SHA1 Message Date
Martin Nordholts d3353f721b app: Rename 'Save as Template' to 'Create Template'
Rename 'Save as Template' to 'Create Template' in the File menu.
2009-05-16 09:48:22 +02:00
Martin Nordholts 46a1afebcd app: In some cases, fall back to export procs in absence of save proc
We want to fall back to export procs in some cases to maintain a level
of backwards compatibility.
2009-05-16 09:48:22 +02:00
Martin Nordholts 7a771a09d3 app: Implement 'File -> Export to'
Handle 'Export to' by finding a file proc based on the import URI and
then save back to that location using the proc.
2009-05-16 09:48:22 +02:00
Martin Nordholts 64f7d9b93b app: Improve save and export error messages 2009-05-16 09:48:13 +02:00
Martin Nordholts 10226ae453 app: Show the Export Image dialog on File -> Export...
Create a export dialog constructor in the dialog factory and invoke it
on File -> Export
2009-05-16 09:48:12 +02:00
Martin Nordholts 0971d61fc4 app: Add an 'export' mode to the file save dialog 2009-05-16 09:48:12 +02:00
Martin Nordholts 3025dac653 app: Introduce and use GimpFileChooserAction
Introduce and use GimpFileChooserAction in the core so that we can
differentiate Save from Export later.
2009-05-16 09:48:12 +02:00
Martin Nordholts acef48602c app: Separate save procs from export procs
In gimp_plug_in_manager_register_save_handler(), separate save procs
from export procs.
2009-05-16 09:48:12 +02:00
Martin Nordholts 58eda13548 app: Add GimpPlugInManager::export_procs member
Add GimpPlugInManager::export_procs member that will later contain all
the export procedures.
2009-05-16 09:48:11 +02:00
Martin Nordholts e9ed9ce6cb app: Add file_procedure_in_group()
Add file_procedure_in_group() which is a helper function to determine
if a file procedure is in the Open, Save or Export group.
2009-05-16 09:47:36 +02:00
Martin Nordholts e3f57fbd38 app: Support File -> Revert of imported images
If a file has not been saved yet but was imported from some other
image, revert to that image.
2009-05-16 01:12:40 +02:00
Martin Nordholts 88e1064ed3 app: Show imported image basename in titlebar
If an image is imported, make the image window title be
'Untitled (imported from <filename>)' instead of just 'Untitled'.
2009-05-16 01:12:40 +02:00
Martin Nordholts a452fd9188 app: Update sensitivity and labels for export menu items 2009-05-16 01:12:40 +02:00
Martin Nordholts e8531ce947 app: When importing a file, setup image state properly
When an opened file is not an .xcf file it is considered an imported
file. Adjust the state of the loaded image accordingly to reflect its
imported state. Store the import source and set that as 'Export to'
target.
2009-05-16 01:12:40 +02:00
Martin Nordholts c1a226bc74 app: Rearrange menu items for Save + export
Begin implementing the spec
http://gui.gimp.org/index.php/Save_+_export_specification
by rearranging the menu items according to it and adding necessary
stuff like help ids.
2009-05-16 01:12:40 +02:00
Martin Nordholts 5db0b727d6 app: Don't set NULL URIs through GIMP_FILE_SAVE_LAST_URI_KEY 2009-05-16 00:44:29 +02:00
Michael Natterer 9dd5420d07 Depend on GLib >= 2.20.0 and GTK+ >= 2.16.1.
Disable deprecated API for GLib < 2.23.0 and GTK+ < 2.19.0.
2009-05-16 00:37:04 +02:00
Martin Nordholts f10bf1d7fd app: Fix save overwrite logic for files with added extensions
When the user specifies a filename in the save dialog, make sure the
overwrite confirmation is not shown if the filename will be
altered. It doesn't make sense to ask for permission to overwrite a
file that will never be overwritten.
2009-05-15 19:41:13 +02:00
Martin Nordholts 8033f4c0d5 app: Fix potential memory leak in save dialog code
Fix potential memory leak in save dialog code with a new helper function
file_save_dialog_get_uri(). We must free zero-length strings.
2009-05-15 19:41:13 +02:00
Sven Neumann 2d1b3ddf72 help-browser: removed obsolete check for zoom API
Removed the check for the webkit zoom API and compile the respective
code unconditionally.
2009-05-12 09:47:34 +02:00
Sven Neumann 2f4e3b236b configure: require webkit-1.0 >= 1.1.0 2009-05-12 09:47:34 +02:00
Sven Neumann 02960ed3bd help-browser: fix history menus
The history menus located at the back and forward buttons stopped working
after a webkit update some time ago. With these changes the menus work
again, at least with recent webkit releases.
2009-05-12 09:47:33 +02:00
Sven Neumann 259f3bd2ba Fixed procedure name and internationalisation.
Use a spin-button for the font-size.
2009-05-11 16:26:12 +02:00
Sven Neumann 61c065d244 Use the proper API to locate the user gimp directory 2009-05-11 16:26:12 +02:00
Martin Nordholts 9247977196 Merge branch 'minor-fixes'
Merge two trivial commits to test how well services such as ohloh and
CIA copes with git branches.

* minor-fixes:
  app: Untabify gimpfiledialog.c
  Minor formating fix in HACKING
2009-05-09 20:52:51 +02:00
Martin Nordholts 4e40ff7e65 app: Untabify gimpfiledialog.c 2009-05-08 20:15:47 +02:00
Martin Nordholts f96bc446a6 Minor formating fix in HACKING 2009-05-08 20:15:46 +02:00
Martin Nordholts 1c33708f5a app: Add File -> Debug -> Dump Keyboard Shortcuts menu command
Add a Debug menu item 'Dump Keyboard Shortcuts' that can for example
be used to see what keyboard shortcuts that are unused or to simply
get an overview of what current keyboard shortcuts we hvae. Based on
code in gimp_action_view_new().
2009-05-08 20:13:27 +02:00
Fotis Tsamis 2aa81d4320 Updated Greek translation 2009-05-08 18:19:41 +01:00
João S. O. Bueno 9779233d87 New script for creating pipe brushes from typed text 2009-05-07 13:30:03 -03:00
Shankar Prasad 111615cd7f Updated Kannada translations 2009-05-07 18:12:40 +05:30
Shankar Prasad e3060f4be2 Updated Kannada translations 2009-05-07 18:11:39 +05:30
Martin Nordholts 9c2aae1281 app: Update name of file_save_dialog_save_image() parameter
Rename file_save_dialog_save_image() parameter save_a_copy to
change_saved_state since that is the semantics it has now.
2009-05-06 17:09:31 +02:00
Martin Nordholts a0d9f6e57e app: Rename file_save() parameter save_a_copy to change_saved_state
Rename file_save() parameter save_a_copy to change_saved_state since
that is the semantics it has now.
2009-05-06 15:03:30 +02:00
Martin Nordholts edac194b23 app: Move save-on-copy URI remembering to the appropriate place
The Save a copy-URI shall only be remembered when the URI has been
entered through the dialog, so move it from file_save() to
file_save_dialog_response(). This is a preparation for the future
where we need to pass TRUE to save_a_copy without the URI being
remembered.
2009-05-04 21:04:37 +02:00
Michael Natterer 0da1c4cb7c Some style cleanup. 2009-05-03 12:19:07 +02:00
Michael Natterer 07ba32d6f8 Stop accessing GimpPaintCore's coords members directly (no encapsulation yet).
* app/paint/gimppaintcore.[ch]: add
  gimp_paint_core_{get|set}_{current|last}_coords(), add "const GimpCoords*"
  parameter to ::paint() which gets core->cur_coords passed.

* app/paint/gimpsourcecore.[ch]: add "const GimpCoords*" to ::motion().

* app/paint/gimpbrushcore.c: use the new coords getters/setters instead
  of accessing GimpPaintCore members directly.

* app/paint/gimpairbrush.c
* app/paint/gimpclone.c
* app/paint/gimpconvolve.c
* app/paint/gimpdodgeburn.c
* app/paint/gimperaser.c
* app/paint/gimpheal.c
* app/paint/gimpink.c
* app/paint/gimppaintbrush.[ch]
* app/paint/gimpperspectiveclone.c
* app/paint/gimpsmudge.c: change implementations of GimpPaintCore::paint()
  and GimpSourceCore::motion() accordingly. app/paint/ is now virtually
  free of direct access to the paint core's coords members. More to come...
2009-05-03 12:08:21 +02:00
Martin Nordholts 82d327a550 Revert "app: Move last-save URI management to file_save()"
This reverts commit f6cd700dd6. We
can't save the last-save-URI on such a low level.
2009-05-03 09:29:04 +02:00
Martin Nordholts f6cd700dd6 app: Move last-save URI management to file_save()
Move the logic to remember the URI of the last saved file from
file_save_dialog_response() to the more central place file_save().
2009-05-03 08:45:19 +02:00
Martin Nordholts 8064bbf22e app: Pass Gimp instead of GimpContext to file_save() 2009-05-03 08:35:01 +02:00
Martin Nordholts 3c1366a0c1 app: Merge almost identical higher level file_save() wrappers
Merge file_savefile_write_with_uri_and_proc() and
file_save_dialog_save_image() which contains the same logic. Call the
result file_save_dialog_save_image() in lack of a better name, and
keep it in file-save-dialog.[ch] for now in lack of a better place.
2009-05-02 15:58:32 +02:00
Martin Nordholts 290d433edf app: Remove image refs in file_save_dialog_save_image()
The function file_save() also refs the image so there is no for
file_save_dialog_save_image() to do the same.
2009-05-02 15:33:05 +02:00
Martin Nordholts 1bd506d91d app: Make file_save_dialog_save_image() more general
Move out specialized logic from file_save_dialog_save_image() to make
it more similar to file_write_with_uri_and_proc() in file-commands.c
2009-05-02 09:05:34 +02:00
Martin Nordholts 9a8efbe410 app: Remove unused variable 2009-05-01 17:29:17 +02:00
Martin Nordholts c5787f51fc app: Introduce gimp_file_dialog_get_dirname_from_uri()
Introduce gimp_file_dialog_get_dirname_from_uri() to improve
readability.
2009-05-01 17:29:02 +02:00
Martin Nordholts a93346d0a0 app: Gather save dialog uri defaults in one place
Gather save dialog uri defaults in one place. Move the small bits of
it from file_save_dialog_new() to gimp_file_dialog_set_save_image()
where the rest is.
2009-05-01 12:23:46 +02:00
Sven Neumann b0af6524b4 app/file: Rename gimpfile.h to gimp-file.h and fix include guards
The source filename convention would indicate that gimpfile.h
	holds code for the GimpFile object. Rename it to gimp-file.h
	to make clear that it doesn't.
2009-05-01 09:03:13 +02:00
Martin Nordholts e622dc3cad app: Introduce gimpfile.h
Introduce gimpfile.h which for now contains defines for GObject data
keys used when managing save and open dialog URI defaults. More are to
be added.
2009-04-30 20:00:18 +02:00
Martin Nordholts a51521fe1d app: Rename save-a-copy key
Rename "gimp-image-save-a-copy" key to "gimp-file-save-a-copy-uri"
since the key is more logical to have in the gimp file namespace and
the "-ur"i suffix is more consistent with other similar keys.
2009-04-30 19:58:55 +02:00
Martin Nordholts 30ff5a15e9 Adjust gimp.doap slightly for better display on git.gnome.org/cgit 2009-04-29 07:24:02 +02:00