Michael Natterer
e3ea383580
app, libgimpbase: move enum GimpStrokeMethod to libgimpbase
...
and rename its values.
2015-11-08 22:48:48 +01:00
Michael Natterer
76782e622d
app: add "gboolean convert_profile" to GimpDrawable::convert_type()
...
also add "GType old_type" to GimpItem::convert() so implementations
can do things depending on the type of the original item.
In gimp_layer_convert(), if the original item is also a layer, and
color management is not off (with a FIXME because this is the wrong
check), pass convert_profile = TRUE to gimp_drawable_convert_type().
There is no color profile conversion anywhere behind this, this is
just an API change commit.
2015-08-16 15:56:28 +02:00
Michael Natterer
658a7834fe
app: remove public function gimp_vectors_bounds()
...
and move its code into the GimpItem::bounds() implementation.
2015-07-03 19:38:06 +02:00
Michael Natterer
4edf70f4f1
app: add virtual function GimpItem::bounds()
...
Which returns a boolean indicating if there is content at all, and the
bounds as double x, y, width, height because for most use cases that's
better than x1, y1, x2, y2. Wrap the method with two functions
gimp_item_bounds() which returns integer bounds and
gimp_item_bounds_f() which returns the original double bounds.
2015-07-03 19:38:06 +02:00
Michael Natterer
849481a861
Clean up code around calls to g_file_replace()
...
- use G_FILE_CREATE_NONE instead of 0
- don't put "Could not open <file> for writing: <error>" around the
returned error, the returned message is already verbose
2014-10-04 02:44:54 +02:00
Michael Natterer
14978bfe5d
Simplify calls to g_output_stream_write_all()
...
It returns TRUE only if all bytes were written, so there is no need to
get and check the bytes_written return value.
2014-09-07 20:30:14 +02:00
Michael Natterer
980ba7f85a
app: move memsize functions into their own files gimp-memsize.[ch]
2014-08-12 13:57:57 +02:00
Michael Natterer
673d666d0c
app: port gimp_vectors_export_file() to GIO
2014-07-03 13:29:29 +02:00
Michael Natterer
3687e1b32b
app: change filename in gimp_vectors_import_file() to GFile
2014-07-02 14:54:56 +02:00
Michael Natterer
632b64fedf
app: change filename in gimp_vectors_export_file() to GFile
2014-07-02 14:47:11 +02:00
Michael Natterer
23037b5230
app: convert all stock IDs kept around by the core by icon names
...
Particularly GimpViewable's stock_id. Make sure old config files
containing stock IDs are still properly parsed.
2014-05-07 01:01:56 +02:00
Rickard
5ec413a5e8
Bug 729326 - Errors found using a static code analysis program cppcheck
...
Fixed some memory and file leaks. And removed some code and variables
that are not used.
2014-05-05 10:34:08 +02:00
Michael Natterer
697572ccc0
app,libgimp*: fix includes to follow our include policy
...
- don't include <gdk-pixbuf/gdk-pixbuf.h> in headers in app/
- instead, include it in many .c files instead of <glib-object.h>,
finally acknowledging the fact that app/ depends on gdk-pixbuf almost
globally
- fix up includes as if libgimpbase depended in GIO, which it soon will
2013-10-15 01:58:39 +02:00
Clayton Walker
76bdbf6d8f
app: I actually tested it this time
2013-06-23 13:39:18 +02:00
Clayton Walker
fb1d220a3f
app: fix previous commit
2013-06-23 13:24:45 +02:00
Clayton Walker
03f559923b
app: properly initialize more variables
...
Found by Coverity
2013-06-23 13:10:44 +02:00
Mikael Magnusson
0091645129
app: remove pointless NULL checks
2013-06-16 01:31:13 +02:00
Mikael Magnusson
ad0d43da87
app: remove double return
2013-06-15 22:57:10 +02:00
Simon Budig
4852e59ec1
remove some disabled nonfunctional code with german comments.
2013-06-15 22:17:48 +02:00
Michael Natterer
ec786816bb
*/Makefile.am: merge INCLUDES into AM_CPPFLAGS
...
automake-1.13 finally warns about this anachronism.
2013-06-05 20:48:37 +02:00
Michael Natterer
3b68ae0f3c
app, pdb, libgimp: Remove all traces of the supersampling recursion level
...
from all transform APIs. This is no longer used since we use GEGL to
transform, the value was only passed around and never used.
2013-05-31 01:15:32 +02:00
Ville Skyttä
6b0d1038cc
Bug 692641 - Various spelling fixes
2013-01-27 18:59:02 +01:00
Michael Natterer
908f727f0a
Chain up unconditionally in GObject::constructed()
...
It's supported since GLib 2.28.
2012-11-12 21:51:22 +01:00
Kevin Cozens
a2e037fb00
Corrected spelling errors spotted by Ari Pollak (Mostly fixes bug #683694 )
...
Still need to address the "allows to" grammatical error.
2012-09-10 12:22:12 -04:00
Michael Natterer
7610e299ae
Use GimpValueArray and GimpParamSpecValueArray
...
instead of the deprecated stuff from GLib.
2012-05-04 00:51:50 +02:00
Michael Natterer
3ad73b3658
libgimpcolor: add GdkPixbuf <-> GeglBuffer utility functions
...
and update tons of includes in libgimp and app.
2012-05-03 03:37:20 +02:00
Michael Natterer
bdf6b48138
app: move GimpTempBuf from base/ to core/
...
and forget about include policy in base/, it's scheduled for removal
anyway.
2012-05-02 17:51:01 +02:00
Michael Natterer
d5d8e36d21
app: gimp_-namespace all GimpTempBuf functions
2012-05-02 17:51:00 +02:00
Michael Natterer
42a5f01be3
app: rename TempBuf to GimpTempBuf
2012-05-02 17:51:00 +02:00
Michael Natterer
7441a1f6f7
app: turn the TempBuf's "bytes" into "format" and port everything to it
2012-05-02 17:50:59 +02:00
Michael Natterer
ff86f85744
app: remove x, y and color parameters from temp_buf_new()
...
Fix the places that passed the color by either temp_buf_data_clear()
or memset(), and assign x and y manually, they are going to vanish
completely soon.
2012-05-02 17:50:58 +02:00
Michael Natterer
5a7b7d9a4b
app: add gimp_gegl_buffer_get_tile_manager()
...
and ust it in some get_memsize() functions instead of having a
FIXME. So many files changed because they need to inlcude <gegl.h>
now.
2012-05-02 17:46:07 +02:00
Michael Natterer
2414301799
Review the last few commits and apply some style fanaticism
...
some completely unrelated,
2012-02-07 20:36:55 +01:00
Massimo Valentini
39368a410d
plugged memory leaks
2012-02-07 17:32:02 +01:00
Michael Natterer
056e09a6cb
Remove the makefile.msc build system, it is unmaintained since 2008
2011-12-16 15:53:56 +01:00
Mukund Sivaraman
58252b23d3
app (vectors): Remove redundant assignment
2011-10-08 18:28:00 +05:30
Mukund Sivaraman
e05af3cafb
app (vectors): Delete dead assignments
2011-10-08 18:22:06 +05:30
Michael Natterer
c35ff719a7
app/libgimp*: remove stuff found by -Wunused-but-set-variable
2011-05-01 23:23:19 +02:00
Michael Natterer
8b4870dad7
app: move GimpBezierDesc from app/vectors/ to app/core/
2011-04-04 18:40:12 +02:00
Michael Natterer
fcfb7cf160
Use the new g_[s]list_free_full() instead of foreach() and free()
2011-03-07 17:11:28 +01:00
Michael Natterer
fc7bd98d92
app: move all GimpStrokeOptions members to private
2011-03-05 21:00:28 +01:00
Michael Natterer
eacd80446d
app: finally get rid of gimp_item_configure() and drawable_configure()
...
and turn them into gimp_item_new() and gimp_drawable_new()
2011-02-01 12:47:24 +01:00
Michael Natterer
5c8ec234cc
app: add "image" as construct property to GimpItem
...
- The image *must* now be passed to g_object_new() when creating items
- Remove the "image" parameter from all item configure() functions
- Set the item's ID in gimp_item_set_image() if it has none yet
2011-02-01 10:28:10 +01:00
Michael Natterer
96efc7ea1c
app: reset an item's "removed" state as it is added to its parent container
...
and not "manually" from the resp. undo functions.
2011-01-30 19:36:27 +01:00
Michael Natterer
c1b3575648
app: implement GObject::constructed() instead of ::constructor()
2011-01-12 23:06:03 +01:00
Michael Natterer
d46b53f63d
Bug 635040 - Edit -> Stroke Path performs no action on an incomplete path
...
Add error reporting to gimp_drawable_stroke_vectors() and produce the
same warning as the paint core when trying to stroke a path with zero
or one points only.
2010-11-25 11:31:40 +01:00
Sven Neumann
beef765b4f
Bug 631885 - GIMP fails to import a path from SVG
...
If a moveto is followed by multiple pairs of coordinates, the
subsequent pairs are supposed to be treated as implicit lineto
commands.
The parser used to ignore this part of the SVG specification and
treated subsequent pairs of coordinates as moveto commands (which
is correct in general, but for moveto commands there is this
explicit exception of the general rule).
2010-10-13 22:01:58 +02:00
Sven Neumann
4236990351
app/vectors: formatting
2010-10-13 21:52:10 +02:00
Michael Natterer
6b8141d548
app: wrap GimpBezierDesc in a boxed type to make property handling easier
2010-10-08 18:52:28 +02:00
Michael Natterer
2a965a8a78
app: argh, don't include the .c file
2010-10-06 22:49:53 +02:00