Michael Natterer
0cb3e75f79
app: use a lot of g_clear_object() and g_clear_pointer()
...
More than 2000 lines of code less in app/, instead of
if (instance->member)
{
g_object_unref/g_free/g_whatever (instance->member);
instance->member = NULL;
}
we now simply use
g_clear_object/pointer (&instance->member);
2017-07-15 18:42:44 +02:00
Massimo Valentini
99050ecee6
Bug 769022 - Improve text along path when path is short.
...
Extend the text along the tangent of the last path stroke.
2016-12-21 22:35:17 +01:00
Michael Natterer
997ae1e28b
Bug 764024 - Allow to choose fill color when resizing layers and images
...
Add a GimpFillType argument to GimpItem::resize() and fill type
widgets to the canvas and layer resize dialogs. Fill the new parts of
the drawable according to fill type in gimp_drawable_resize(). Make
sure places that need the old behavior get GIMP_FILL_TRANSPARENT
passed by hardcoding it in the GimpItem::resize() implemetations of
channel, mask, selection etc.
2016-10-10 00:02:16 +02:00
Richard Kreckel
dd9b0fc55b
Bug 768044 - Fix many typos
...
This fixes many typos in comments and one in a user-visible string (msgid
"center abscisse" changed to "center abscissa" in affected po files. too).
2016-06-26 00:35:24 +02:00
Michael Natterer
5080da50e6
app: move the undo impl object typedefs out of the *-types.h files
...
They are completely private to the undo system and don't need to
be used anywhere else. Removes some clutter from the typed headers.
2016-05-20 18:29:13 +02:00
Michael Natterer
28e1a379e6
app: remove const qualifiers from all object parameters
...
They are unreliable because every type checking cast discards them,
they are useless anyway, visual clutter, added inconsistently, and
generally suck. Wanted to do this a long time ago, it was a bad idea
in the first place.
2016-05-19 23:54:14 +02:00
Michael Natterer
ff1c678058
app: add GimpItem::fill() which fills what is outlined by ::stroke()
...
For selections, it's different from gimp_edit_fill() because it
ignores the selection while filling, just as stroking does. Currently
unused, stay tuned...
2016-03-14 19:02:18 +01:00
Simon Budig
b3e4212dfe
app/vectors: fix up the anchors types which I messed up with my last change.
2016-02-01 12:37:04 +01:00
Simon Budig
1e47343b04
Bug 735810- performance shrinkage of Paths tool
...
Apply revised version of Mitchs patch that
changes the anchor list to a GQueue.
2016-01-29 01:00:03 +01:00
Michael Natterer
cd20669e09
app: don't leak the GList element in gimp_vectors_real_stroke_remove()
...
and some general cleanup in the file.
2016-01-27 22:50:56 +01:00
Mukund Sivaraman
4e05c07cd4
app: Copy to dest_vectors correctly
2016-01-25 15:29:46 +05:30
Mukund Sivaraman
e14c1a0156
Use GQueue for strokes list
2016-01-25 10:56:15 +05:30
Mukund Sivaraman
992c58fe4f
Use an aux hashtable and avoid g_list_find() when searching for a GimpStroke*
2016-01-25 10:25:43 +05:30
Michael Natterer
789e9f2cf4
app: remove /*< skip >*/ and /*< pdb-skip >*/ annotations from enums
...
where their headers are not even parsed by the affected scripts.
2016-01-07 17:44:46 +01:00
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