Michael Natterer
ad9fd33915
app: guide cleanup
...
- Move all GimpGuide members to a private struct
- Remove cruft checks for position < 0, we don't keep removed guides
around in the image's guide list since a long time ago
- Add #define GIMP_GUIDE_POSITION_UNDEFINED G_MININT and use that
instead of -1 (this is also a prerequisite for having guides
outside of the image)
2014-07-10 00:20:57 +02:00
Michael Natterer
99ccf7223b
app: fix handling of guides and sample points in gimpimage-resize.c
...
Don't iterate the lists with for() because the loops can remove items,
which makes us say g_list_next() on a removed list item. Instead, use
while() and get the next item before possibly removing the current
one.
2014-07-10 00:08:14 +02:00
Michael Natterer
39f7401703
app: change Gimp->default_folder from being a path to a GFile
...
Also fix GimpFileDialog to actually start with that folder, and not in
its parent folder.
2014-07-09 20:12:05 +02:00
Michael Natterer
ef53921133
app: make GimpImageFile handle a NULL URI/GFile
...
and reorder its functions to be in the usual order.
2014-07-09 20:10:58 +02:00
Michael Natterer
c3573c3c45
app: keep the plug-in executable path around as GFile
2014-07-08 21:09:35 +02:00
Michael Natterer
c884c4f630
app: change file_utils_filename_to_uri() to file_utils_filename_to_file()
2014-07-08 10:25:25 +02:00
Michael Natterer
25f190d309
app: port gimp_imagefile_get_description() from URI to GFile
2014-07-08 01:34:14 +02:00
Michael Natterer
f319a9c838
app: add gimp_imagefile_set_file()
2014-07-08 00:49:05 +02:00
Michael Natterer
0c6bf0bc44
app: simplify gimp_image_set_file()
2014-07-08 00:47:58 +02:00
Michael Natterer
7f966cad39
app: keep the image's "Untitled" string around as GFile too
2014-07-08 00:15:41 +02:00
Michael Natterer
f5afc78532
app: don't leak all the image's GFiles
2014-07-08 00:03:08 +02:00
Michael Natterer
ff6ea69569
app: change the image's various URIs to GFiles
...
which gets rid of a lot of temporarily added GFile code again because
we don't need to convert between URI and GFile any longer.
2014-07-07 23:58:11 +02:00
Michael Natterer
0f8d84d5e9
app: port all file_open() and file_save() functions to GFile
2014-07-07 23:58:11 +02:00
Michael Natterer
3f52828896
app: change GimpImageFile and GimpDocumentList to speak GFile
2014-07-07 23:58:11 +02:00
Michael Natterer
b7863269f0
libgimpcolor: change gimp_lcms_profile_open_from_file() from filename to GFile
...
and change most of the lcms plug-in to using GFile too.
2014-07-04 23:57:27 +02:00
Michael Natterer
6e631420c3
app: fix error handling warning in gimp_brush_load_abr()
2014-07-04 19:16:58 +02:00
Michael Natterer
e6f4252d55
app: simplify GimpData load/save error reporting a lot
...
Add the filename and general "Foo failed" spam generically in GimpData
and GimpDataFactory, and make the individual loaders/savers much
simpler.
2014-07-04 18:46:02 +02:00
Michael Natterer
6f7e244d75
app: add GInputStream* parameter to GimpDataLoadFunc
...
and port all loaders to loading from an already open stream.
2014-07-04 03:31:03 +02:00
Michael Natterer
e7d9e01d63
app: port ABR brush loading to GIO
2014-07-04 02:18:52 +02:00
Michael Natterer
16ca9a4dcf
app: port gradient loading to GIO
2014-07-04 00:15:02 +02:00
Michael Natterer
01878cc2e0
app: improve palette loading error message
2014-07-04 00:14:36 +02:00
Michael Natterer
aab55c34c8
app: add a GOutputStream* parameter to GimpData::save()
...
Open/close the stream generically in GimpData. Improves error handling
and simplifies the save() functions.
2014-07-03 23:44:38 +02:00
Michael Natterer
4d50c3aafd
app: port gimp_palette_load_css() to GIO
...
which finishes palette porting. Remove all temp hack porting code
and a ton of ugly includes.
2014-07-03 17:36:01 +02:00
Michael Natterer
12d6519f3e
app: port gimp_palette_load_aco() to GIO
2014-07-03 17:23:11 +02:00
Michael Natterer
aedc3c0ddb
app: port gimp_palette_load_psp() to GIO
2014-07-03 16:59:04 +02:00
Michael Natterer
5d4d3a0e3c
app: port more palette importers to GIO
2014-07-03 16:42:37 +02:00
Michael Natterer
3213fe04ef
app: port gimp_palette_load_detect_format() to GIO
2014-07-03 16:27:05 +02:00
Michael Natterer
bfd8aa69f5
app: prepare for more palette load/import GOI porting
...
by passing an open GInputStream to gimp_palette_load_gpl(), all
palette import functions will become like that.
2014-07-03 16:11:26 +02:00
Michael Natterer
9ec4e93434
app: port gimp_palette_load_gpl() to GIO
2014-07-03 15:49:58 +02:00
Michael Natterer
32e2aebbe0
app: remove old includes from gimpdata.c too
2014-07-03 15:49:29 +02:00
Michael Natterer
9d11dc046d
app: forgot to remove the creepy includes in gimpbrush-load.c after porting
2014-07-03 15:48:38 +02:00
Michael Natterer
87463dbe46
app: don't leak a GError in gimp_brush_generated_load()
2014-07-03 15:47:57 +02:00
Michael Natterer
77b6af2da8
app: implement gimp_curve_load() and _save() in GIO
...
They are currently unused, but implementing them was a copy/paste
no brainer.
2014-07-03 13:22:10 +02:00
Michael Natterer
a572638656
app: fix copy/paste GError bug in some calls to g_file_replace()
2014-07-03 13:01:01 +02:00
Michael Natterer
799a3d4352
app: g_mkdir() -> g_file_make_directory() in gimptooloptions.c
2014-07-03 01:33:20 +02:00
Michael Natterer
a49709ef6c
app: port gradient saving to GIO
2014-07-02 23:26:40 +02:00
Michael Natterer
3bfb2154a0
app: port palette saving to GIO
2014-07-02 22:41:51 +02:00
Michael Natterer
8202fa1a77
app: port pattern loading to GIO
2014-07-02 22:29:57 +02:00
Michael Natterer
b0f9a42fb3
app: port generated brush saving to GIO
2014-07-02 22:16:09 +02:00
Michael Natterer
77c20040ae
app: port generated brush loading to GIO
2014-07-02 21:33:00 +02:00
Michael Natterer
add91b70b9
app: port brush loading to GIO
2014-07-02 21:11:49 +02:00
Michael Natterer
3dbae5e4d9
Bug 727854 - Export file type should not be based on filename extension
...
Keep the export proc acound in the image (just as we keep around
the save proc), and use it when exporting again.
2014-07-02 14:24:02 +02:00
Michael Natterer
c88800e840
app: add gimp-priorities.h and keep the most important priorities there
...
also add comments with all predefined priorities as documentation.
2014-07-02 04:47:24 +02:00
Michael Natterer
b5530e9e3d
Use the new GeglAccessMode enum instead of the old values
2014-07-02 02:00:35 +02:00
Michael Natterer
3665352ad6
app: change gimp_config_file_backup_on_error() to take a GFile
2014-07-01 20:02:45 +02:00
Michael Natterer
98e7ec090b
app: use the new gimp_personal_rc_gfile() in lots of places
...
and pass the GFile to the newly added GFile-based GimpConfig,
GimpScanner etc. functions. This is starting to make sense now...
2014-07-01 20:02:45 +02:00
Michael Natterer
651c3d56ff
app: more filename -> GFile
2014-07-01 15:56:39 +02:00
Michael Natterer
a31cb02405
app: return a GFile from gimp_tool_info_build_options_filename()
...
and rename it to gimp_tool_info_get_options_file().
2014-07-01 15:41:12 +02:00
Michael Natterer
8c8135a881
app: port GimpImageMapTool's settings API from filename to GFile
2014-07-01 15:13:02 +02:00
Michael Natterer
20032907e0
app: use gimp_file_get_utf8_name() in the code ported to GFile earlier
2014-07-01 14:25:37 +02:00