Commit Graph

6382 Commits

Author SHA1 Message Date
David Gowers cebbde5da9 plugins/pygimp: use (PF|PDB)_ITEM instead of _REGION so pygimp works again.
Also update vectors and drawable code to use the new GimpItem API.
2010-07-16 16:40:03 +02:00
Michael Natterer 8b31211639 Fix the bulid after GtkNotebookPage got deprecated in gtk-2-22
In all GtkNotebook::switch_page() callbacks, simply replace
GtkNotebookPage* by gpointer.
2010-07-16 15:24:25 +02:00
Nelson A. de Oliveira 4fea27ec1d Bug 623169 - Memory leaks in GIMP
Add some missing g_free() and free() calls, found by cppcheck.
2010-07-15 21:42:36 +02:00
Sven Neumann 17a4baff01 Bug 624452 - plug-in-displace pdb call incorrectly documented edge behaviour
Fix documentation for displace-type parameter. Spotted by Rob Antonishen.
2010-07-15 21:36:12 +02:00
Sven Neumann ff221e679c Bug 624275 - Image saved from google docs generates a 'gimp-image-set-resolution' error message
Only set the image resolution if the resolution in the PNG file
is greater than zero.
2010-07-13 22:20:15 +02:00
Michael Natterer 611877783c libgimp: deprecate gimp_image_attach_new_parasite()
and port all its users to gimp_image_parasite_attach().
2010-07-09 14:15:55 +02:00
Michael Natterer c87025ead6 plug-ins: gimp_drawable_get_image() -> gimp_item_get_image() 2010-07-09 14:01:53 +02:00
Nils Philippsen 521cf89006 script-fu: make server strict-aliasing friendly
use union of struct sockaddr* types instead of direct casts
2010-07-09 12:52:24 +02:00
Michael Natterer c6a2eaa5c4 plug-ins: use new item API instead of deprecated drawable API 2010-07-09 12:27:36 +02:00
Michael Natterer 45a7484b6a plug-ins: undeprecate after API deprecations 2010-07-09 10:36:52 +02:00
Michael Natterer 2d6f808ff8 pdb: add a new PDB group "item" and move lots of functions to it
The item groups has all the duplicated functionality from drawable
and vectors (name, visible, linked etc).

Hijack the unused GIMP_PDB_REGION and turn it into GIMP_PDB_ITEM;
change all protocol aware files accordingly and bump the protocol
version number. Change script-fu to handle the new type.
2010-07-09 09:34:44 +02:00
Andrew Wyatt 4a1078796b Bug 613328 - TGA files saved with incorrect header yOrigin data
Fix header for TGA files saved with save option 'Origin=Top Left'.
2010-07-07 20:41:46 +02:00
Massimo Valentini ca43054f08 Bug 623290 - Save As... does not save Windows Bitmap as default in dialog
Connect to "toggled" signal of radio buttons.
2010-07-07 20:29:06 +02:00
Rupert Weber 731fa3081d Bug 621363 - CMYK decompose broken
The CMYK Decompose/Recompose plugin used its own (faulty) algorithm
for RGB<->CMYK conversions. This fix changes the plugin to use the
conversion routines provided by libgimpcolorspace.
2010-07-07 19:32:58 +02:00
Sven Neumann 999f00bd27 Bug 623186 - GIF save plugin chokes on layers larger than canvas
Move the call to gimp_ui_init() before the sanity checks so that
GTK+ is properly initialized before the dialog is shown.
2010-07-07 19:25:14 +02:00
Tor Lillqvist 6bfe88ae17 script-fu build fix for Windows 2010-07-05 09:59:34 +03:00
Nils Philippsen 04538534fc Bug 623045 - script-fu: make server IPv6 aware
use getnameinfo() instead of inet_ntoa()
use two sockets for IPv4, IPv6
2010-06-29 15:47:01 +02:00
Michael Natterer aa5833fb9f pygimp: remove bogus $(srcdir) from a Makefile rule
The rules does (cd $srcdir && ...) anyway, so using $srcdir in that
subshell results in the wrong relative path. Patch by Omari Stephens
and Mikael Magnusson.
2010-06-27 00:38:29 +02:00
SimaMoto,RyōTa 66bd26b208 Bug 618143 - Clarify labels in 'Size' tab in GIMPressionist
The "Size" and "Sizes" labels in the GIMPressionist plugin can be more
descriptive, change them to "Size variants" and "Size depends on"
respectively.
2010-06-23 18:45:37 +02:00
Kevin Cozens 75941beaca Added SIOD compatability routines string-downcase and string-upcase. 2010-06-21 23:56:40 -04:00
Sven Neumann 7ed3998870 script-fu: clean up coding style and translatable messages 2010-05-31 21:36:36 +02:00
Sven Neumann e745ad94e4 script-fu: menu path should not be marked for translation 2010-05-31 21:10:46 +02:00
Sven Neumann 0d66ff0a31 plug-ins: move variables to local scope 2010-05-28 22:31:15 +02:00
Sven Neumann 754b556ea6 Bug 619189 - Add support for RGB565 in csource export filter
Apply patch from bug-report that adds support for RGB16 (RGB565).
Changed UI code to set the toggle buttons insensitive instead of
showing a warning.
2010-05-28 22:20:35 +02:00
Martin Nordholts e942d1e913 plug-ins: Remove bogus ) in file-xmc.c 2010-05-27 19:53:48 +02:00
Roman Joost a4ccfcee72 Default XMP_TYPE_LANG_ALT to "x-default" according to spec.
To prevent a crash of the meta-data plug-in during export, the encoding
process now falls back to x-default for XMP_TYPE_LANG_ALT properties.
2010-05-24 21:44:51 +10:00
Barak Itkin 9cd68579e4 Bug 618961 - Bad escape character in script-fu palette-export prevents parsing
Fix a bad string escape character in palette-export.scm which prevents
the file from being parsed.
2010-05-22 12:48:38 +02:00
Sven Neumann ed6fa8d3f3 plug-ins: adjust user-visible strings for consistency 2010-05-21 22:19:24 +02:00
Sven Neumann c3f1d0c33b plug-ins: improve error messages 2010-05-20 21:08:57 +02:00
Martin Nordholts 7de8fa5293 plug-ins: Refer to 'Windows' as 'Microsoft Windows' 2010-05-16 20:28:00 +02:00
Cameron Gregory afa9bd3b9a plug-ins: script-fu-selection-rounded-rectangle takes four arguments
Don't forget to pass a value for the 'concave' parameter to
script-fu-selection-rounded-rectangle.
2010-05-16 11:46:33 +02:00
Nelson A. de Oliveira 19d4ad70f9 Bug 595605 - memory leaks in plug-ins/common/curve-bend.c
Add missing g_free() calls.
2010-05-16 11:09:02 +02:00
Tor Lillqvist df24468fde Bug 544560 - Loading PDF file fails if its path contains non-ascii characters
Use poppler_document_new_from_data() instead of
poppler_document_new_from_file() to work around filename encoding
issues.
2010-05-16 11:00:53 +02:00
Roman Joost 45a8d2c63c Make use of the XMPModel widget interface.
The GtkEntry is re-factored to use the XMPModel based interface.
2010-05-14 18:11:53 +10:00
Roman Joost b124fe6de6 New GtkTextView widget based on the XMPModel widget.
The new widget provides editing capabilities for the description and
keywords. It uses the new interface for XMPModel widgets.
2010-05-14 18:11:53 +10:00
Roman Joost c628c1e949 New interface for XMPModel-based gtkwidgets.
The new interface provides a common set of methods used by other gtk
widgets (e.g. GtkEntry). This interface is bound to the XMPModel
allowing writing/reading to and from the XMPModel utilised by the
widgets.
2010-05-14 18:11:53 +10:00
Sven Neumann 79eb426893 plug-ins: coding style cleanup and a few simplifications 2010-05-12 22:40:43 +02:00
Sven Neumann 55bc1fa84f Bug 144454 - Loading and storing DICOM again looses important information
Retain dicom tags using parasites. Patch by Paul Epperson.
2010-05-12 22:40:43 +02:00
Sven Neumann aa806486e4 Bug 616564 - Dicom Plugin Storing Odd Length Dicom Tags
By the Dicom Standard, elements which would be odd in length must be
padded to an even length. Patch from Paul Epperson.
2010-05-06 20:52:33 +02:00
Jon Nordby da6ab495b9 plug-ins: OpenRaster visibility layer attribute 2010-05-06 17:55:12 +02:00
Jon Nordby c16af01606 plug-ins: OpenRaster, fix wrong layer positions
Don't store layer offsets in the PNG, or honor them on loading. The layer
position is given by the OpenRaster layer attributes alone. This caused a bug
where the offsets were applied twice, positioning the layer wrong.
2010-05-06 17:55:12 +02:00
Michael Natterer d3ab91b7d2 Revert "Adds a layer-group aware layers property to Layer objects"
This reverts commit 2525e30429.
2010-05-01 14:36:04 +02:00
João S. O. Bueno 2525e30429 Adds a layer-group aware layers property to Layer objects 2010-04-27 23:34:44 -03:00
Alexandre Prokoudine bdd112c185 Better grammar, messages are translatable now 2010-04-20 00:11:54 +04:00
Michael Natterer a2c70822d4 Use accessors from GTK+ 2.20 instead of using sealed members directly 2010-04-19 19:21:07 +02:00
Nils Philippsen 8885cd3b4f remove obsolete tooltips object creation
amends:
commit a78bffbfb9
Author: Jerry Baker <jbaker@gimpthoughts.com>
Date:   Mon Apr 12 14:40:47 2010 -0400

    Use gtk.Tooltip() instead of gtk.Tooltips()
2010-04-15 16:38:21 +02:00
Jerry Baker a78bffbfb9 Use gtk.Tooltip() instead of gtk.Tooltips() 2010-04-13 20:27:29 +02:00
Michael Natterer 04b01c3a25 plug-ins: actually return FALSE if mount_enclosing_volume() fails 2010-04-01 21:15:19 +02:00
Michael Natterer 74d44ee2df plug-ins: need to initialize "mapped" booleans to FALSE 2010-04-01 21:06:09 +02:00
Sven Neumann b55591ca04 Bug 614153 - Importing PDF files with long titles
Ellipsize the title label.
2010-03-28 12:34:38 +02:00
Jon Nordby 614714d980 plug-ins: Optimize OpenRaster PNG saving
Sets lower compression and disables interlacing.
On a 5 layer image of 4500x6000px this gives an order of magnitude better
save-times, with 50% increase in file size.
2010-03-13 12:23:30 +01:00
Massimo Valentini cbb815c203 Bug 600112 - blur-gauss-selective.exe crashes
Allocate buffers with some extra padding as the MMX instructions
used in matrixmult_mmx() may read more than strictly necessary.
2010-03-12 21:01:44 +01:00
Massimo Valentini bc02c2f51e Bug 599233 - Dialog of "Save as BMP" ignores changes which are not made with a mouse
Connect to GtkButton::clicked instead of GtkButton::pressed.
2010-03-11 08:42:19 +01:00
Jerry Baker 1eb50fec2e Bug 611928 - Add 'active_vectors' to pygimp
Add 'img_get_active_vectors' and 'img_set_active_vectors' to pygimp.
2010-03-07 12:34:52 +01:00
Michael Natterer 1aeb315ecf undef GTK_DISABLE_DEPRECATED in many places which undef GSEAL_ENABLE
because the widget flag access macros (e.g. GTK_WIDGET_REALIZED) are
now deprecated in GTK+ master.
2010-03-06 23:14:29 +01:00
Martin Nordholts 0f275bfdc9 plug-ins: Don't initialize va_list to NULL, it's not portable 2010-02-17 19:10:24 +01:00
Martin Nordholts ac1baa5374 plug-ins: Change MNG capability from LAYERS_AS_ANIMATION to LAYERS
When NULL is passed as format_name to gimp_export_image(), there is no
dialog where the user can make choices. Having the capability
GIMP_EXPORT_CAN_HANDLE_LAYERS_AS_ANIMATION in this case in practice
means "always merge". So to allow MNG animations, change to just
GIMP_EXPORT_CAN_HANDLE_LAYERS. We don't need to offer merging in the
export options since MNG is a format explicitly for animation, so if
there are enough layers, we'll always export as an animation.

Also set a tooltip explaining why the animation options are disabled
when they are disabled.
2010-02-16 20:02:57 +01:00
Martin Nordholts 7cdd99feac Bug 596427 - Can't export to animated GIF
Add an 'As Animation' toggle to the GIF export options. If checked,
the GIF will be written as an animation. Only enable it on images with
more than on layer though. Add the new GIFSaveVals as_animation member
last so we don't break gimp_get_data() of old data. The fix moves the
GIF options fetching to *before* gimp_export_image(). If as-animation,
we simply pass GIMP_EXPORT_CAN_HANDLE_LAYERS to capabilities so the
layers are kept.
2010-02-16 20:02:57 +01:00
Martin Nordholts d9862b21c1 plug-ins: Move save_image() code out of options fetching code for GIF
Make the save_image() code out of the options fetching code for GIF to
make this more independent.
2010-02-16 20:02:57 +01:00
Martin Nordholts 5c154c17dc plug-ins: Port file-gif-save.c to Glade + GtkBuilder 2010-02-16 20:02:56 +01:00
Martin Nordholts 84b8ec1f5c plug-ins: Minor readability improvement in GIF's save_dialog()
Add an animation_supported boolean to GIF's save_dialog().
2010-02-16 20:02:56 +01:00
Kevin Cozens 32b7b79c33 Fixed scheme struct strbuff[] size to handle long strings in register blocks 2010-02-13 15:06:12 -05:00
Kevin Cozens 77498d1587 Bug 605540 - texts displayed with gimp-message are not translated
Applied modified version of patch supplied by Eric Lamarque.
2010-02-11 16:07:58 -05:00
Michael Natterer 034bd0427f Bug 609056 - Exporting to Alias PIX format fails
Apply patch from Saul Goode which fixes a typo that made exporting to
PIX impossible.
2010-02-10 12:51:46 +01:00
Sven Neumann 8e31261caa plug-ins: fix build rules for web-browser plug-in in plugin-defs.pl 2010-02-03 20:57:11 +01:00
Sven Neumann 799a7fc5a8 script-fu: drop gimp.org header and label scripts
These scripts used to be used to create graphics for the old gimp.org
web-page that has long been redone several times. There is no point in
distributing these scripts any longer.
2010-02-03 20:54:04 +01:00
Sven Neumann edb41221c6 plug-ins: drop gee and gee-zoom plug-ins
These plug-ins used to be used as easter-eggs and have only been
available thru the PDB. Since they are not useful except for the fun
of staring at the weird code, we can as well remove them entirely.
2010-02-03 20:39:02 +01:00
Akkana Peck 36551daa19 Fix bug 590418: make chalk script-fu work.
Sobel doesn't work on layers with transparency, like text layers,
so the text layer in the chalk script needed to be merged with the
background layer beneath it.
2010-02-02 13:04:24 -08:00
Kevin Cozens cc6427e5d5 Applied patch from Saul Goode which mostly fixes bug #604587
Fixes delq when using numeric values. Fixes two bad let block declarations.
2010-01-31 18:46:21 -05:00
Sven Neumann b499d01a71 Bug 608188 - a few strings in Save as... > Raw image data dialog are always in English
Add missing call to INIT_18N().
2010-01-31 21:11:11 +01:00
Sven Neumann 48a393f44f Bug 607888 - "Fractal Explorer" string in the filter's title bar is always in English
Mark dialog title for translation.
2010-01-31 21:02:49 +01:00
Michael Natterer 2db98792dc Bug 607242 - GIMP 2.7.0 fails to build against libpng 1.4.0
Depend on the libpng version that is in debian testing (1.2.42) and
use png_set_expand_gray_1_2_4_to_8() instead of the deprecated
png_set_gray_1_2_4_to_8().
2010-01-31 11:56:36 +01:00
Jon Nordby bd8af017f5 Bug 605366 - OpenRaster support
Add basic OpenRaster support. At the very least, this allows
multi-layered .ora files to be shared between MyPaint and GIMP.
2010-01-24 09:01:33 +01:00
Michael Natterer 7175f3e883 Some more changes to build with GSEAL_ENABLE
- use more GTK+ accessors instead of struct members
- remove quite some #undef GSEAL_ENABLE from completely ported files
2010-01-15 15:35:03 +01:00
Michael Natterer d2406fd4c3 plug-ins: move the UI file to datadir/ui/plug-ins/plug-in-file-png.ui 2010-01-12 22:02:51 +01:00
Sven Neumann 9317bb4548 plug-ins: fix error reporting and a compiler warning 2010-01-12 21:12:40 +01:00
Martin Nordholts 7c32f5442a plug-ins: Check for errors when loading file-png.ui
Check for errors when loading file-png.ui. Still continue execution
though even if an error occurs, because the user can still export.
2010-01-09 20:03:58 +01:00
Sven Neumann b883d59411 Bug 606372 - Saving to .ppm fails on indexed colorspace
Don't change the pointer to the colormap and then attempt to free it.
2010-01-09 12:12:12 +01:00
Martin Nordholts 0abf5cc4f0 Use Glade + GtkBuilder for file-png.c save_dialog()
To give us experience with Glade + GtkBuilder, use it for the save
dialog in the PNG plug-in. The layout is as good as
identical. Mnemonics still works and strings are still translated.
2010-01-08 21:16:10 +01:00
Omari Stephens 11f094f565 plug-ins/pygimp: Minor style cleanup for readability
Use all the same quotation marks (", not '), switch from string slicing to
.startswith(), and fix and indentation mishap.
2009-12-29 12:52:49 +01:00
Sven Neumann f0348aff40 some minor code cleanups 2009-12-27 13:28:14 +01:00
Roman Joost 3749f2c62c Revamped the GimpXmpModelEntry object initialisation.
It is now possible to create an entry widget by using g_object_new and
provide three parameters: the schema_uri, the property name you want to
subscribe and an instance of an xmp-model.
2009-12-27 10:03:30 +01:00
Roman Joost 1c8255de59 Code cleanup.
I changed the name of the GimpXMPModelEntry, which reads now better as
GimpXmpModelEntry. I removed functions in the interface, which are not
in use anymore, because of the code improvements in the entry widget and
the XMPModel. The new entry widget is not build as a library anymore.
2009-12-27 10:03:28 +01:00
Roman Joost 9578088ce8 Set the correct icons if the entry changed a property in the XMPModel and use the new EntryWidget for the caption writer as well. 2009-12-27 10:03:26 +01:00
Roman Joost 3705c85e1e Implemented better signal handling for property-changed events.
The XMPModel listens now on the row-changed event and checks if the row
belong to a property or schema change. If a property change occured a
detailed property-changed signal is emitted. A detailed schema-changed
signal is currently not emitted, because not implemented.
2009-12-27 10:03:23 +01:00
Roman Joost a13e4692fb Registered new GimpXMPModelEntry, connected it with the XMPModel.
The new entry widget now makes use of the detailed signal from the
XMPModel.
2009-12-27 10:03:19 +01:00
Sven Neumann e8ff034ab5 Bug 605237 - the "Antialiasing..." message in the progress bar does not show translated
Add missing call to INIT_I18N().
2009-12-23 23:56:45 +01:00
Nils Philippsen b7ae59e9a4 SGI: allocate memory more consistently
Allocate memory for both pixels and rows in the same way to make the
code easier understandable.
2009-12-09 17:11:21 +01:00
Simon Budig 4d9724f2f6 SGI: fix out of bounds writes
The functions read_rle8() and read_rle16() didn't check if the addresses
to which they wrote are in bounds when expanding runlength encoded data.
2009-12-09 17:09:27 +01:00
Nils Philippsen 838be627be SGI: cast allocation calculations
In order to avoid overflows when calculating needed memory, cast the
first variable used into a large enough type so the whole calculation is
done in that type.
2009-12-09 17:09:17 +01:00
Nils Philippsen daaf1d2b97 SGI: sanitize input data
Refuse nonsensical xsize, ysize, zsize values.
2009-12-09 17:07:54 +01:00
Nils Philippsen 5aa82f3b6d PAT: sanitize input data
Guard against bogus values of ph.width, ph.height and document why there
are no allocation overflows.
2009-12-09 17:04:45 +01:00
Nils Philippsen b053021a29 GBR: more input data sanitation
Guard against bh.width or bh.height > GIMP_MAX_IMAGE_SIZE, only allow
valid values of bh.bytes.
2009-12-09 17:01:34 +01:00
Nils Philippsen 869dcd7be1 GBR: sanitize input data
Guard against bogus zero width, height, bytes and allocation overflows.
2009-12-09 17:01:34 +01:00
Nils Philippsen a9671395f6 PCX: Avoid allocation overflows.
Multiplying gint values may overflow unless cast into a larger type.
2009-12-09 16:32:29 +01:00
Nils Philippsen ed7f48be05 PCX: sanitize input data
Harden PCX plugin against bad width, height.
2009-12-09 15:40:13 +01:00
Alexandre Prokoudine fd3ab6ac2b Normalized naming of the file type, added missing , in sentences, fixed a typo 2009-11-30 03:31:35 +03:00
Michael Natterer 825fab3dd0 Bug 602761 - plug-in-grid: Parameters Horizontal/Vertical Spacing and Horizontal/Vertical Offset are reversed
Add "Lines" to the "Horizontal" and "Vertical" labels to clarify
what exactly is affected.
2009-11-24 14:58:28 +01:00
Michael Natterer 028b66beba Bug 602761 - plug-in-grid: Parameters Horizontal/Vertical Spacing and Horizontal/Vertical Offset are reversed
Revert commits bc099a98f3 and
c77781de89 from Jul 27 2006;
also changed refval boundaries of the "width" size entries
in the spirit of the original fix, only reversed.

Rationale: the "horizontal" parameters all have to affect the
horizontal *lines*, so have an effect in *vertical* direction.

Will commit a label change on top to clarify this.
2009-11-24 14:49:17 +01:00
Mircea Purdea 85b8d9668e Modified UI to include default timing
This patch makes two modifications to the UI: listing in the
'Playback speed' combo was changed from percentage values to X
factors, and a new combo was added for 'Default framerate'. The
latter includes common framerates which are used to define the
default duration on unmarked frames. Due to the way in which the
GTK+ timeout function is defined, the framerates and duration values
for this new combo use rounded integer values.
2009-11-20 20:56:09 +01:00
Simon Budig 9cc8d78ff3 Harden the PSD plugin against integer overflows.
Issues discovered by Stefan Cornelius, Secunia Research, advisory SA37232
and CVE identifier CVE-2009-3909. Fixes bug #600741.
2009-11-17 11:14:16 +01:00
Simon Budig 0e440cb6d4 Fix the PSD structs to use signed ints for bounding box coordinates. 2009-11-17 01:13:52 +01:00
Nils Philippsen 16e6a37687 Ensure valid bit depths when reading BMP files. 2009-11-16 18:16:38 +01:00
Nils Philippsen f63ba36dd9 Use more defensive coding in plausibility check.
Use an equivalent division instead of multiplying values and checking if
they are more than G_MAXINT32, because divisions cannot overflow.
2009-11-16 17:30:43 +01:00
Nils Philippsen 43d57c6663 Make plausibility check easier to understand.
Explicitly check that Bitmap_Head.biHeight is not G_MININT32
instead of relying on ABS(G_MININT32) being negative.
2009-11-16 17:30:43 +01:00
Sven Neumann 474b5fdff3 Bug 601891 - gimp_image_get_selection returns None
The code used to make the assumption that the selection mask was
a layer. Actually it is a channel and changing the code accordingly
fixes the reported problem.
2009-11-14 16:50:42 +01:00
Sven Neumann 5707f04066 plug-ins: remove dead code
Remove code that has been commented out long ago and that caused a
false positive when searching for use of deprecated GTK+ API.
2009-11-11 00:10:02 +01:00
Simon Budig e3afc99b2f Harden the BMP plugin against integer overflows.
Issues discovered by Stefan Cornelius, Secunia Research, advisory SA37232
and CVE identifier CVE-2009-1570. Fixes bug #600484.
2009-11-10 00:08:59 +01:00
Michael Natterer b6e57b11d3 Fix glitch in last commit to make it build 2009-11-09 19:20:08 +01:00
Sven Neumann 5fe5148368 plug-ins: clean up comment
Clean up a comment so that it doesn't cause a false positive when
looking for deprecated GTK+ symbols.
2009-11-09 19:08:48 +01:00
Sven Neumann 1339b5cd87 script-fu: remove dead code
Remove commented-out code that caused a false positive when
searching for deprecated GLib symbols.
2009-11-09 19:03:03 +01:00
Sven Neumann 8c49ecb2e5 plug-ins: remove dead code from the image-map plug-in
Remove code that has been commented out long ago when this plug-in
was ported from GtkCList to GtkTreeView.
2009-11-09 18:59:06 +01:00
Sven Neumann 724302020b plug-ins: remove redundant comment
Remove a comment that caused a false positive when searching for
deprecated GTK+ symbols. ChangeLogs don't belong into plug-in code
anyway.
2009-11-09 09:40:57 +01:00
Javier Jardón 525347d9f6 Remove deprecated glib symbol: g_mapped_free 2009-11-09 09:28:12 +01:00
Michael Natterer 018e8b0d29 Build with GSEAL_ENABLE and #undef it where accessors are missing 2009-10-17 20:31:57 +02:00
Martin Nordholts eb6bef33e4 Use gtk_widget_set_visible()
In places where the pattern

  if (show)
    gtk_widget_show (widget);
  else
    gtk_widget_hide (widget);

is used, change to

  gtk_widget_set_visible (widget, show);

Also do some other minor cleanups.
2009-10-17 15:07:34 +02:00
Massimo Valentini 05304f6d83 Bug 470698 - MapObject cannot modify highlight 2009-10-12 20:26:42 +02:00
Michael Natterer 06673f27e2 Use various GTK+ accessors instead of object->member 2009-10-10 15:10:57 +02:00
Michael Natterer 85274ea1f3 Use gtk_widget_get_window() instead of widget->window 2009-10-10 15:10:57 +02:00
Michael Natterer e267783c22 Use gtk_widget_get_window() instead of widget->window 2009-10-10 15:10:57 +02:00
Michael Natterer 641c2f4e22 Use gtk_widget_get_window() instead of widget->window 2009-10-10 15:10:57 +02:00
Michael Natterer 02b1566249 Use accessors instead of widget->window and adjustment->value 2009-10-10 15:10:56 +02:00
Michael Natterer b41bca97fb Use gtk_container_child_get() instead of table->children 2009-10-10 15:10:56 +02:00
Michael Natterer 055d10f366 Use gtk_adjustment_get_value() instead of adjustment->value 2009-10-10 15:10:56 +02:00
Michael Natterer 0458da1832 Use accessors instead of widget->window and adjustment->value 2009-10-10 15:10:56 +02:00
Michael Natterer 9f77899bf1 Use gtk_adjustmenr_get_value() instead of adjustment->value 2009-10-10 15:10:55 +02:00
Michael Natterer 1e47f5c67c Use gtk_widget_get_window() instead of widget->window 2009-10-10 15:10:55 +02:00
Michael Natterer 04836301aa Use accessors instead of widget->window and container->border_width 2009-10-09 23:02:25 +02:00
Michael Natterer a52a4a0fa3 Use GtkAdjustment's accessors 2009-10-09 23:02:24 +02:00
Michael Natterer 9186909ed3 Use gtk_adjustment_get_value() instead of adjustment->value 2009-10-09 23:02:24 +02:00
Michael Natterer 53ceee88cd Use GtkAdjustment's accessors 2009-10-09 23:02:24 +02:00
Michael Natterer e610e5420b Use various GTK+ accessors 2009-10-09 23:02:24 +02:00
Michael Natterer e27f1929d7 Use gtk_widget_get_window() instead of widget->window 2009-10-09 23:02:23 +02:00
Michael Natterer 8eccf3e2eb Use GtkSelectionData's accessors 2009-10-09 23:02:23 +02:00
Michael Natterer 561c29522c Use various GTK+ accessors instead of struct->member 2009-10-09 23:02:23 +02:00
Michael Natterer 83d2541613 Use gtk_widget_get_window() instead of widget->window 2009-10-09 23:02:23 +02:00
Michael Natterer 01e8de8ab7 Use gtk_widget_get_window() instead of widget->window 2009-10-09 23:02:22 +02:00
Michael Natterer b2dd7d0ca3 Use gtk_widget_get_window() instead of widget->window 2009-10-09 23:02:22 +02:00
Michael Natterer 9c9306f653 Use GtkSelectionData's accessors 2009-10-09 23:02:22 +02:00
Michael Natterer 104fc1cd45 Use gtk_adjustment_get_value() instead of adjustment->value 2009-10-09 21:19:11 +02:00
Michael Natterer 88bb075713 Use gtk_widget_get_window() instead of widget->window 2009-10-09 21:19:11 +02:00
Michael Natterer c0bf72eb3c Use gtk_widget_get_parent() instead of widget->parent 2009-10-09 21:19:11 +02:00
Michael Natterer 2e1caf6be8 Use gtk_widget_get_window() instead of widget->window 2009-10-09 21:19:10 +02:00
Michael Natterer abbb4d53a0 Use gtk_adjustment_get_value() instead of adjustment->value 2009-10-09 21:19:10 +02:00
Michael Natterer b71da00ef2 Use gtk_widget_get_window() intead of widget->window 2009-10-09 21:19:10 +02:00
Michael Natterer 17e81e96ca Use accessors instead of widget->window and bin->child 2009-10-09 21:19:10 +02:00
Michael Natterer d0fae3d338 Use gtk_adjustment_get_value() instead of adjustment->value 2009-10-09 21:19:09 +02:00
Michael Natterer a651f4b056 Use GtkAdjustment's accessors 2009-10-09 21:19:09 +02:00
Michael Natterer 7917cb0ef9 Use gtk_widget_get_window() instead of widget->window 2009-10-09 21:19:09 +02:00
Michael Natterer 2a7cb3915f Use gtk_widget_get_window() instead of widget->window 2009-10-09 21:19:09 +02:00
Michael Natterer f5115e06ec Use GtkAdjustment's accessors 2009-10-09 21:19:08 +02:00
Simon Budig 7a6fe273b7 Formatting fix. Argh. 2009-10-03 00:13:01 +02:00
Simon Budig 73071e4618 Fix crasher and behaviour in the GBR plugin for the GRAYA case. 2009-10-02 22:07:46 +02:00
Kevin Cozens 0e68a7d59a Updated TinyScheme to support UTF-8 coded filenames. See bug #592413. 2009-10-01 11:51:21 -04:00
Manish Singh 2182dec09b Bug 594651 - layer.scale() raises RuntimeError
Add "interpolation" to kwlist for pygimp layer.scale()
2009-09-11 12:55:25 -07:00
Manish Singh 15497c1d68 Explicit shared lib deps to support gold 2009-09-09 17:41:20 -07:00
Kevin Cozens 272073a196 Applied changes from CVS version 1.34 of official version of TinyScheme.
Fixed bug that could put the interpreter in to an endless loop on EOF in
the example case "(define foo".
2009-09-01 22:43:50 -04:00
Kevin Cozens 4acd4317a7 Eliminated compiler warnings (scheme.c). Fixed whitespace (dynload.c). 2009-09-01 21:52:11 -04:00
Sven Neumann a22d72971a Bug 593485 - the metadata plugin crashes
Remove xmp_model_free() and instead do the work in the GObject:finalize
method. Call g_object_unref() where xmp_model_free() used to be used.
2009-09-01 09:40:41 +02:00
Martin Nordholts f6eed71a5c plug-ins: Register .data as extension for raw data loader
In order to allow raw data files to be loaded without the need to
explicitly select the file type, make the raw data loader use the
extension ".data".
2009-08-22 10:41:03 +02:00
Kevin Cozens 728b1c6847 Eliminated some warnings when compiling TinyScheme. 2009-08-19 12:28:30 -04:00
Sven Neumann 9464d303a9 print: don't store image specific settings globally
It doesn't make sense to store image-specific settings such as resolution
and offsets in the global print-settings file. Only store them in the
image parasite, but remove them before saving the print-settings file.
2009-08-18 22:18:59 +02:00
Kevin Cozens bacce394b5 De-tabified file. 2009-08-18 10:48:10 -04:00
Kevin Cozens 5809ddcd32 Eliminated a compiler warning. 2009-08-18 10:47:43 -04:00
Kevin Cozens e602fc88af Defined *compile-hook*. Changes based on official version of TinyScheme
(CVS commit dated 2009/06/19 03:09).
2009-08-18 10:47:12 -04:00
Kevin Cozens 59ea11d78a Applied changes from CVS version 1.30 of official version of TinyScheme.
Some cleanups to in/outport and Eval_Cycle by Peter Michaux.
2009-08-18 10:46:01 -04:00
Kevin Cozens 05f2bd1aac Added style-control file variables for emacs to all C files.
Changes based on official version of TinyScheme (CVS commit dated
2009/06/15 00:01).
2009-08-18 10:45:03 -04:00
Kevin Cozens 70de6ab70f Applied changes from CVS version 1.27 of official version of TinyScheme.
Defined "snprintf" for WIN32 as "_snprintf".
2009-08-18 10:42:29 -04:00
Kevin Cozens 7ee46c4aa1 Added scheme_register_foreign_func_list and declarations for it.
Changes based on official version of TinyScheme (CVS commit dated
2008/07/11 19:09).
2009-08-18 10:38:33 -04:00
Kevin Cozens 4c862bf678 Applied changes from CVS version 1.24 of official version of TinyScheme.
Merged redundant list_length, is_list, OP_LISTP code.
2009-08-18 10:37:15 -04:00
Kevin Cozens 6a3a7befcf Applied changes from CVS version 1.23 of official version of TinyScheme.
Fixed potential problem of arglist to foreign calls being wrongly GC'ed.
2009-08-18 10:09:12 -04:00
Kevin Cozens 48c87c29fd Made nested calling thru C safer by save/restore old state.
Changes based on official version of TinyScheme (CVS commit dated
2008/05/25 03:27).
2009-08-18 10:09:12 -04:00
Kevin Cozens 76155d79df Minor changes to minimize differences to official version of TinyScheme.
Fixed potential buffer overflow in readstr_upto().
2009-08-18 10:09:12 -04:00
Sven Neumann 322be18790 remove trailing whitespace 2009-08-18 08:53:12 +02:00
Martin Nordholts ada56e5c2c plug-ins: Improve JPEG2000 error messages
Improve JPEG2000 error messages by using g_set_error() so we don't
throw many different errors in the users face, and make each error
unique and descriptive instead of using the same message regardless of
the type of error.
2009-08-17 23:34:18 +02:00
Sven Neumann e032ad3b8e metadata: formatting 2009-08-16 12:06:54 +02:00
Roman Joost dc249d4dc3 XMP Model now emits a property-changed signal incl. a detail.
The client can now subscribe to a specific property-change signal. The
detail is provided as <xmp-schema-prefix>:<xmp-property-name>. The
xmpdump test program was used to verify that the implementation works.
2009-08-15 19:47:49 +10:00
Roman Joost f436ffd722 Changed XMPModel to GtkTreeStore based object with one custom signal.
The XMPModel now emits a property-changed signal, if the property value
has been changed by xmp_model_set_scalar_property.
2009-08-15 19:47:49 +10:00
Michael Schumacher f19e60636a Bug 551444 – With Python 2.5, module extension should be .pyd
libtool >= 2.2 has a new command line option -shrext. Use this to set
the python modules' file name extension to .pyd
2009-08-11 00:08:38 +02:00
Massimo Valentini fc979283de Bug 569833 – file-jpeg-save erroneous with small quality values
Use the passed parameters if the quality setting is 0.01 or greater
instead of rejecting values below 0.05 in non-interactive mode.
2009-08-10 21:26:53 +02:00
Kevin Cozens 7661513746 Updated TinyScheme version number to 1.39.
The TinyScheme component of Script-Fu is now in sync with the 1.39
release of the official version of TinyScheme from May 18, 2008.
Previous commit fixed bug #553377 and not #553337.
2009-08-09 16:01:30 -04:00
Kevin Cozens 01e27e8d6f Commented call to file_pop() left in inchar() by mistake. Fixes bug #553337.
Several changes to reduce some formatting differences to official TinyScheme.
De-tabified init.scm file.
2009-08-09 15:20:43 -04:00
Martin Nordholts 29d9a94fd0 Bug 522483 – use gtk_show_uri() instead of calling firefox directly
Use gtk_show_uri() instead of g_spawn_async() on a browser.
2009-08-08 15:26:34 +02:00
Martin Nordholts f8930a5aaf plug-ins: Translate win32 error messages in web-browser.c 2009-08-08 10:31:11 +02:00
Kevin Cozens 3db68e254a Applied changes based on official version of TinyScheme (CVS commit dated
2008/01/25 01:31). Put OP_T0LVL in charge of reacting to EOF.
2009-08-08 00:25:55 -04:00
Kevin Cozens 21cebda8a9 Applied changes based on official version of TinyScheme (CVS commits dated
2008/01/22 04:18). Fix for the load bug.
2009-08-07 23:56:40 -04:00
Kevin Cozens 9541fe0387 Applied changes from CVS version 1.15 of official version of TinyScheme.
Changed to always use snprintf (Patch due to Ramiro bsd1628).
2009-08-07 16:25:31 -04:00
Kevin Cozens 28e7c3f612 Applied changes from CVS version 1.9 of official version of TinyScheme.
Fix for nasty gc bug. This change shifts the burden of protecting newly
allocated cells in foreign functions from the foreign functions to the
TinyScheme interpreter.
2009-08-07 15:14:45 -04:00
Kevin Cozens 3d848b3917 Applied changes from CVS version 1.28 of scheme.c in official version of
TinyScheme. Peter Michaux cleaned up port_rep_from_file.
2009-08-07 15:14:45 -04:00
Kevin Cozens 101262b479 Applied changes based on official version of TinyScheme (CVS commit dated
2008/06/28 19:28). Applied C++ patch by Shintaro Jingu.
2009-08-04 19:40:09 -04:00
Kevin Cozens 60ddcb625b Applied changes from CVS version 1.4 of init.c in official version of
TinyScheme. Added unwind-protect (from Tom Breton).
2009-08-04 19:08:26 -04:00
Kevin Cozens b11f689986 Applied changes from CVS version 1.2 of init.scm in official version of
TinyScheme. Updated gcd and lcm to comply with the Scheme standard.
2009-08-04 19:04:31 -04:00
Kevin Cozens 5e9907d68d Applied changes from CVS version 1.16 of official version of TinyScheme.
file_push checks array bounds (patch from Ray Lehtiniemi)
2009-08-04 18:39:31 -04:00
Kevin Cozens bf3d355fd7 Applied changes based on official version of TinyScheme (CVS commit dated
2007/12/22 10:48) which makes string output ports conform to SRFI-6.
NOTE: SRFI-6 compliance is incomplete in official version of TinyScheme.
      (See SourceForge bug #2832150)

Also included two minor additions/corrections to old ChangeLog files.
2009-08-04 14:23:55 -04:00
Barak Itkin e7e5a6d19d Bug 304399 – Color Palette Export to TXT, CSS, XML, or XHTML
Add a palette export script which allows exporting palettes to .css,
.php, .py, .txt and .java by adding a Export to menu item in the
palette context menu in the Palettes dockable.
2009-08-02 15:11:28 +02:00
Michael Natterer f712a316df Bug 589674 – "Send by Email" does not update "Filename"
Use g_filename_display_basename() so it doesn't choke on non-utf8
filenames.
2009-08-01 18:39:18 +02:00
Christopher Howard 9cddfeba73 Bug 589674 – "Send by Email" does not update "Filename"
Remove a conditional so that, in interactive mode, the Send by E-mail
feature always uses the name of the file as the default file field
value, instead of using the previously entered value of the field.
2009-08-01 11:36:14 +02:00
Massimo Valentini 61db48ac74 Bug 586851 – Transparent BMP files fail to load
If everything else fails, use gdk_pixbuf_new_from_file().
2009-07-22 18:17:00 +02:00
Sven Neumann 87f25f29d8 Bug 589205 – help-browser uses deprecated (and sometimes broken) webkit call
Use webkit_web_view_load_uri() instead of webkit_web_view_open().
2009-07-21 22:42:47 +02:00
Martin Nordholts cabcc592f0 Bug 582821 – 'Sphere Designer' does not reset correctly...
Make sure to reconstruct the list in the UI when using layers from a
previous invocation.
2009-07-21 18:52:12 +02:00
Barak Itkin 3801e20df8 Bug 582821 – 'Sphere Designer' does not reset correctly...
Make sure to always call rebuildlist() after reseting, including after
interactively clicking the Reset button. Also, we don't need to
restartrender() after rebuildlist() calls since that is done last in
rebuildlist() itself.
2009-07-21 17:53:05 +02:00
Martin Nordholts 19fe919dce plug-ins: Port file plug-ins to new export API 2009-07-21 16:03:58 +02:00
Martin Nordholts 03e9d6de71 Fix more g_mapped_file_free() warnings 2009-07-20 23:08:49 +02:00
Massimo Valentini c78f7d1382 Bug 570353 – first time open of .svg file ignores the requested units
The resolution used to convert the sizes between pixels and units was
only set initially and never updated.
2009-07-20 23:04:41 +02:00
Massimo Valentini e0f21468d4 Bug 555777 – Export to MNG animation fails
'mng_putchunk_plte' and 'mng_putchunk_trns' both copy  the array passed in
as if it was full size even when it is only partly used. This commit wraps
their calls passing the arrays dimensioned correctly.

In function 'respin_cmap', when 'find_unused_ia_colour' returns an index
suitable for transparency the number of colors in the colormap, the
following loop used to access three values beyond the end of the array
'before'.

Finally fix a typo in a call to mng_putchunk_text().
2009-07-20 22:55:43 +02:00
Massimo Valentini b28b0e4687 Bug 493778 – metadata plug-in crashes on some images
The problem is that the parser adds an empty property value when
parsing an empty Alt-array, "<rdf:Alt/>".

But when it is encoded it is expected to be in the form of a NULL
terminated array of pairs of property values, with the result that the
NULL terminator is considered the second element of the first pair and
the loop encoding these properties goes beyond the end of the array,
thus dereferencing invalid pointers.

This commit alters the parser to avoid adding dummy values when empty
rdf:Alt, rdf:Bag and rdf:Seq elements are found.
2009-07-20 17:51:21 +02:00
Martin Nordholts 5ad570e3cc Fix compilation errors
Fix compilation errors with obvious fixes.
2009-07-20 12:48:05 +02:00
Martin Nordholts b2b2b41e62 Get rid of artificial compiler warnings
Get rid of artificial compiler warnings generated with the #warning
directive. They pollute the build output and don't work as incentives
for fixing stuff.
2009-07-20 12:47:59 +02:00
Massimo Valentini 65c21b6bc3 Bug 567466 – PNG comment not found if more than 1 tEXt chunks
Fix an oversight: only the first tEXt chunk of a PNG was considered,
though repeatedly, when looking for the comment.
2009-07-16 22:24:59 +02:00
Massimo Valentini 48a6b0c59c Bug 585665 – Exporting to PSD with a blank text layer creates a corrupt file
Use write_gchar() to write an empty string, not write_gint16().
2009-07-16 22:21:40 +02:00
Michael Natterer e805cb0cf4 Use gtk_dialog_get_content_area() instead of dialog->vbox 2009-07-15 18:57:12 +02:00
Martin Nordholts c6798bc247 plug-ins: Use string literal as format in metadata plug-in 2009-07-14 12:28:01 +02:00
Martin Nordholts 7976f21a35 plug-ins: Remove unused read_extended_data_block() in file-psd.c 2009-07-14 12:27:58 +02:00
Massimo Valentini a7bca9407d Bug 569661 – Import from PDF throws errors when entering resolution in pixels per millimetre
Fix calculation of dpi value.
2009-07-07 17:09:21 +02:00
Massimo Valentini 34ccca92a5 Bug 567262 – Black pixels appear in "Spread" filter preview
The plug-in makes use of a GimpPixelFetcher to access the source image.
And a GimpPixelFetcher in its default state only returns pixels inside
the bounding box of the selection. Setting its edge-mode to whatever
but GIMP_PIXEL_FETCHER_EDGE_NONE allows to read pixels outside of the
selection.
2009-07-07 17:07:12 +02:00
Roman Joost 75484699da Disabled the build of the metadata plugin if libexif is disabled.
Relates to Bug 587172 - Merge Exif data with XMP model.
2009-07-07 12:01:03 +10:00
Roman Joost 5bc14cdc96 Reformatted source code and removed unused prototypes. 2009-06-30 18:41:38 +10:00
Roman Joost 46ad0f6c2a Replace open by save button in the export dialog.
The interface.c was retabbed before to remove existing tabs and replace
them with spaces.
2009-06-30 18:27:01 +10:00
Roman Joost e0fddee128 Set scalar properties for XMP (exif). 2009-06-30 18:27:01 +10:00
Roman Joost 7230d2673c Merges the exif-data to the xmp-model.
Added a function to merge the Exif data into the xmp model. The function
is using the image id and to access the Exif data parasite. For each
Exif property a corresponding value in the XMP model is created.
2009-06-30 18:22:29 +10:00
Christopher Montgomery 780404699e plug-ins: Add missing #include<X11/Xlib.h> that is breaking build 2009-06-28 11:12:16 +02:00
Sven Neumann 2e11cf878a Adapt mkgen.pl to create the .gitignore file with Win32 executables
The .gitignore file in plug-ins/common is created by mkgen.pl, just
like Makefile.am in this directory. Changed the script to also
include names of the Microsoft Windows executables in the created
.gitignore file.
2009-06-19 09:31:10 +02:00
Michael Schumacher eed061efbb Adding Microsoft Windows executables to the .gitignore files
All binaries have been added individually.
Old binaries are supposed to show up as untracked.
2009-06-19 00:14:17 +02:00
Michael Natterer 6049768abf Bug 578630 - File Creation Permission Bug Only for Some File Types: Creating as 644 (rw-r--r--) when should be 664 (rw-rw-r--)
Use 0666 as permissions instead of 0644 and let the user's umask care
about restricting, so creating a file with open() behaves the same way
as with fopen().
2009-06-15 19:28:06 +02:00
Michael Natterer 9b6c9e1fe4 Bug 155733 – need to check return values of gimp_drawable_mask_bounds()
Finally commit the patch from Luidnel Maignan, but don't spit messages
when the effected region is empty (core functions don't spit messages
either). Also got rid of some x2 and y2 variables that are not needed
any longer.
2009-06-07 23:52:37 +02:00
Nicholas Doyle 90db6c0891 plug-ins: Add support for opening raw 16bit (RGB565) color images 2009-06-06 21:50:56 +02:00
Sven Neumann 030aa9b26d plug-ins: minor coding style adjustments in file-xmc.c 2009-06-02 21:11:34 +02:00
Takeshi Matsuyama 27cec2c3f2 plug-ins: add X11 Mouse Cursor plug-in
This commit adds a plug-in to read and write X11 mouse cursor files.
2009-06-02 21:11:06 +02:00
Sven Neumann aac9e75ec3 updated mkgen.pl script for use with git
Change the mkgen.pl script to modify .gitignore instead of trying to
change the svn:ignore property.
2009-06-02 20:41:51 +02:00
Sven Neumann af965d82dd Bug 584345 – when printing, the number of copies should be reset to 1
at each new GIMP session

Do not store the number of copies in the print-settings resource file,
but keep it in the print-settings that are attached to the image.
2009-06-01 20:02:19 +02:00
Aurimas Juška 6e581ca990 Add JPEG2000 load plug-in written by Aurimas Juška 2009-06-01 18:44:30 +02:00
Christopher Montgomery b559354af1 plug-ins: Make sure to flush output in ts_stdout_output_func() 2009-05-28 21:07:07 +02:00
Manish Singh 582cb0f14e Explicitly specify library dependencies at link time, so we can use gold. 2009-05-24 10:42:39 -07:00
Manish Singh b64fe8779a Use gtk_orientable_set_orientation() instead of deprecated
gtk_toolbar_set_orientation()
2009-05-24 10:41:18 -07:00
Manish Singh 7d76f25e26 Use gtk_activatable_set_related_action() instead of deprecated
gtk_action_connect_proxy()
2009-05-24 10:38:09 -07:00
Sven Neumann 35ac02e66d Bug 557061 – Alpha to Logo
Applied patch from Eric Lamarque fixing an error in the Cool Metal Logo
script.
2009-05-21 18:49:51 +02:00
Martin Nordholts 34b5e99905 Rename configure.in to configure.ac
Rename configure.in to configure.ac and update references to the
file. Configure.ac is the recomended and promoted name in the autoconf
manual.
2009-05-17 14:49:04 +02:00
Martin Nordholts 2253ae52e9 Revert "plug-ins: Change 'Screenshot' menu label to 'From Screenshot'"
This reverts commit 34dbc7b228. The
label change was not properly discussed yet.
2009-05-17 14:01:36 +02:00
Martin Nordholts 34dbc7b228 plug-ins: Change 'Screenshot' menu label to 'From Screenshot'
Change 'Screenshot' menu label to 'From Screenshot' in the File ->
Create menu.
2009-05-17 13:47:43 +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 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
João S. O. Bueno 9779233d87 New script for creating pipe brushes from typed text 2009-05-07 13:30:03 -03:00
Sven Neumann 6fa2ece547 Avoid use of temporary files for accessing remote files
When using GIO/GVFS, remote files may have a local representation
provided by a FUSE mount. Try to detect this and access the file
directly instead of using a temporary file. Fallback to the old
behavior of using temporary files if GIO can't give us a local path
to the file.
2009-04-21 17:48:17 +02:00
Sven Neumann 74424325ab Fix default values for Image.new_layer() methods
Use image height instead of width as the default height of the
newly created layer (bug #579400).
2009-04-21 10:24:52 +02:00
Michael Natterer e2dc72b168 various plug-in parameter cleanups that have piled up on my disk: some
2009-04-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/*.c: various plug-in parameter cleanups that
	have piled up on my disk: some whitespace fixes and other
	formatting, but mostly changes to make plug-in boolean/enum
	parameter desciptions look more like the ones that are generated
	for core procedures.


svn path=/trunk/; revision=28260
2009-04-11 16:57:42 +00:00
Sven Neumann 9ba967f0e0 simplified the code.
2009-03-31  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-uri/uri-backend-gvfs.c (copy_uri): simplified the
	code.


svn path=/trunk/; revision=28234
2009-03-31 09:52:58 +00:00
Sven Neumann ebf0a98b18 Bug 577024 – help-browser plugin crashes when used with webkit 1.1.3
2009-03-28  Sven Neumann  <sven@gimp.org>

	Bug 577024 – help-browser plugin crashes when used with webkit 1.1.3

	* plug-ins/help-browser/help-browser.c (run): call g_thread_init().
	Seems to be needed with newer versions of webkit.


svn path=/trunk/; revision=28227
2009-03-28 16:42:50 +00:00
Sven Neumann a127f3756a Dropped support for the GnomeVFS file-uri backend. Recent GNOME releases
2009-03-23  Sven Neumann  <sven@gimp.org>

	Dropped support for the GnomeVFS file-uri backend. Recent GNOME
	releases use GIO/GVfs and libgnomeui will also go away soon.

	* INSTALL 
	* configure.in: removed checks for libgnomeui and 
libgnome-keyring.

	* plug-ins/file-uri/Makefile.am
	* plug-ins/file-uri/uri-backend-gnomevfs.c: removed.


svn path=/trunk/; revision=28211
2009-03-23 08:33:46 +00:00
Sven Neumann a85bbe7fec added a newline to the output in the error case.
2009-03-22  Sven Neumann  <sven@gimp.org>

        * app/batch.c (batch_run_cmd): added a newline to the output in
        the error case.

        * plug-ins/script-fu/script-fu-eval.c (script_fu_eval_run):
        instead of disabling all output in batch mode, use the usual
        routine for error handling and pass the error string along with


svn path=/trunk/; revision=28200
2009-03-22 20:49:55 +00:00
Sven Neumann a9327fca52 gimp_brush_real_transform_pixmap): don't mix variable declarations and
2009-03-16  Sven Neumann  <sven@gimp.org>

	* app/core/gimpbrush-transform.c 
(gimp_brush_real_transform_mask):
	gimp_brush_real_transform_pixmap): don't mix variable 
declarations
	and code. Added missing const qualifiers.

	* plug-ins/common/ripple.c (ripple_horizontal): removed stray
	semicolon.


svn path=/trunk/; revision=28162
2009-03-16 19:57:31 +00:00
Sven Neumann 12b621726a Bug 571117 – lcms plug-in crashes on broken profile
2009-03-13  Sven Neumann  <sven@gimp.org>

	Bug 571117 – lcms plug-in crashes on broken profile

	* plug-ins/common/lcms.c: don't abort on lcms errors.


svn path=/trunk/; revision=28152
2009-03-13 11:37:06 +00:00
Sven Neumann afc35ae7e2 Bug 573695 – 1-bit white background saved as PBM becomes all black
2009-03-12  Sven Neumann  <sven@gimp.org>

	Bug 573695 – 1-bit white background saved as PBM becomes all 
black

	* plug-ins/common/file-pnm.c: look at the colormap and test 
which
	of the two colors is black and which is white.


svn path=/trunk/; revision=28144
2009-03-12 22:18:44 +00:00
Sven Neumann daa1cecb7c fixed typo.
2009-03-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-jpeg/jpeg.h (PLUG_IN_BINARY): fixed typo.


svn path=/trunk/; revision=28134
2009-03-10 23:13:55 +00:00
Sven Neumann 4fa43f5bfd plug-ins/file-jpeg/jpeg-load.c (load_image) need to finish the progress
2009-03-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-jpeg/jpeg-load.c (load_image)
	* plug-ins/file-jpeg/jpeg-save.c (save_image): need to finish 
the
	progress update.


svn path=/trunk/; revision=28118
2009-03-06 23:21:09 +00:00
Michael Natterer b77822fb4c use enum GimpOrientationType instead of local #defines for HORIZONTAL and
2009-03-05  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/blinds.c: use enum GimpOrientationType instead
	of local #defines for HORIZONTAL and VERTICAL with identical
	values. Some indentation and formatting fixups.


svn path=/trunk/; revision=28112
2009-03-05 20:03:10 +00:00
Sven Neumann a196a2dbe0 app/widgets/gimpviewrendererimagefile.c
2009-03-05  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpviewrendererimagefile.c
	(gimp_view_renderer_imagefile_get_icon)
	* plug-ins/print/print.c (query): removed GTK+ version checks 
that
	have become obsolete.


svn path=/trunk/; revision=28111
2009-03-05 19:59:45 +00:00
Sven Neumann bb86d4ba52 plug-ins/file-uri/Makefile.am removed these files.
2009-03-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-uri/Makefile.am
	* plug-ins/file-uri/gimpmountoperation.[ch]: removed these 
files.

	* plug-ins/file-uri/uri-backend-gvfs.c: use GtkMountOperation
	instead of our copy of this widget.


svn path=/trunk/; revision=28110
2009-03-05 19:44:15 +00:00
Sven Neumann f8265c5fc7 Bug 573695 – 1-bit white background saved as PBM becomes all black
2009-03-05  Sven Neumann  <sven@gimp.org>

	Bug 573695 – 1-bit white background saved as PBM becomes all 
black

	* plug-ins/common/file-pnm.c: need to handle the special case 
that
	the image colormap has only one entry.


svn path=/trunk/; revision=28104
2009-03-05 14:08:56 +00:00
Sven Neumann 849a18b08c Bug 574149 – Can't get name/filename of files loaded from URI
2009-03-04  Sven Neumann  <sven@gimp.org>

	Bug 574149 – Can't get name/filename of files loaded from URI

	* tools/pdbgen/pdb/image.pdb: added new procedure 
gimp-image-get-uri.

	* app/pdb/image-cmds.c
	* libgimp/gimpimage_pdb.c: regenerated.

	* plug-ins/pygimp/pygimp-image.c: wrap the new procedure into an
	Image attribute.


svn path=/trunk/; revision=28103
2009-03-04 19:35:18 +00:00
Michael Natterer 2ca579d666 use enum GimpOrientationType instead of local #defines for HORIZONTAL and
2009-03-01  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/ripple.c: use enum GimpOrientationType instead
	of local #defines for HORIZONTAL and VERTICAL with identical
	values. Some indentation and formatting fixups.


svn path=/trunk/; revision=28086
2009-03-01 21:50:53 +00:00
Sven Neumann d3df2d4a24 update the progress less often.
2009-02-28  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpregioniterator.c: update the progress less often.

	* plug-ins/common/ripple.c: formatting.


svn path=/trunk/; revision=28082
2009-02-28 17:49:52 +00:00
Sven Neumann c098eb6846 reverted accidental commit.
2009-02-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-svg.c: reverted accidental commit.


svn path=/trunk/; revision=28080
2009-02-28 17:33:56 +00:00
Sven Neumann e93e0b2543 Bug 573488 – Small bug in Filter>Distorts>Ripple
2009-02-28  Sven Neumann  <sven@gimp.org>

	Bug 573488 – Small bug in Filter>Distorts>Ripple

	* plug-ins/common/ripple.c (ripple_vertical): fixed bug spotted 
in
	SMEAR mode, pointed out by Andreas Groth.


svn path=/trunk/; revision=28079
2009-02-28 17:32:20 +00:00
Sven Neumann c367ce336d sprinkled with const qualifiers.
2009-02-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-pcx.c: sprinkled with const qualifiers.


svn path=/trunk/; revision=28071
2009-02-25 10:56:41 +00:00
Sven Neumann 1d0aa536cb warn if a script uses the decprecated way of registering its menu
2009-02-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py (register): warn if a script uses the
	decprecated way of registering its menu location.


svn path=/trunk/; revision=28067
2009-02-23 10:03:17 +00:00
Michael Natterer 9a5afb3a1e plug-ins/file-faxg3/Makefile.am plug-ins/help/Makefile.am add
2009-02-12  Michael Natterer  <mitch@gimp.org>

	* plug-ins/file-faxg3/Makefile.am
	* plug-ins/help/Makefile.am
	* plug-ins/metadata/Makefile.am: add $(libgimpconfig) to LDADD
	where it was missing. Libgimp pulls in libgimpconfig and these
	plug-ins were linking against the installed libgimpconfig under
	some #$&%*#%&%$& .la file circumstances.


svn path=/trunk/; revision=28017
2009-02-12 20:35:21 +00:00
Martin Nordholts 4d7a6b10d1 Added .gitignore files generated with git svn create-ignore.
svn path=/trunk/; revision=27972
2009-01-31 11:37:44 +00:00
Sven Neumann bb0ca406ef check the return value of fgets().
2009-01-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/curve-bend.c (p_load_pointfile): check the
	return value of fgets().


svn path=/trunk/; revision=27957
2009-01-26 09:05:48 +00:00
Michael Natterer 4ea1437646 plug-ins/common/*.c plug-ins/color-rotate/color-rotate.c
2009-01-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/*.c
	* plug-ins/color-rotate/color-rotate.c
	* plug-ins/file-bmp/bmp.c
	* plug-ins/file-faxg3/faxg3.c
	* plug-ins/file-fits/fits.c
	* plug-ins/file-fli/fli-gimp.c
	* plug-ins/file-ico/ico.c
	* plug-ins/file-jpeg/jpeg.c
	* plug-ins/file-psd/psd-save.c
	* plug-ins/file-psd/psd.c
	* plug-ins/file-sgi/sgi.c
	* plug-ins/file-uri/uri.c
	* plug-ins/file-xjt/xjt.c
	* plug-ins/flame/flame.c
	* plug-ins/fractal-explorer/fractal-explorer.c
	* plug-ins/gfig/gfig.c
	* plug-ins/gimpressionist/gimp.c
	* plug-ins/gradient-flare/gradient-flare.c
	* plug-ins/help-browser/help-browser.c
	* plug-ins/ifs-compose/ifs-compose.c
	* plug-ins/imagemap/imap_main.c
	* plug-ins/lighting/lighting-main.c
	* plug-ins/map-object/map-object-main.c
	* plug-ins/maze/maze.c
	* plug-ins/metadata/metadata.c
	* plug-ins/pagecurl/pagecurl.c
	* plug-ins/print/print.c
	* plug-ins/pygimp/gimpfu.py
	* plug-ins/script-fu/script-fu-script.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/selection-to-path/selection-to-path.c
	* plug-ins/twain/twain.c
	* plug-ins/win-snap/winsnap.c: document the "run-mode" parameter
	as we document enums for core procedures.


svn path=/trunk/; revision=27922
2009-01-19 20:11:36 +00:00
Sven Neumann bd5ffab689 Bug 568095 – Patch to improve unsharp mask performance
2009-01-18  Sven Neumann  <sven@gimp.org>

	Bug 568095 – Patch to improve unsharp mask performance

	* plug-ins/common/unsharp-mask.c (box_blur_line): applied 
another
	patch from Winston Chang with further performance improvements.


svn path=/trunk/; revision=27919
2009-01-18 11:15:43 +00:00
Sven Neumann f59218d3dd added -DBABL_DISABLE_DEPRECATED.
2009-01-18  Sven Neumann  <sven@gimp.org>

	* configure.in (CPPFLAGS): added -DBABL_DISABLE_DEPRECATED.

	* plug-ins/common/unsharp-mask.c: formatting.


svn path=/trunk/; revision=27917
2009-01-18 10:40:03 +00:00
Michael Natterer d9b5207aa2 Change licence to GPLv3 (and to LGPLv3 for libgimp).
2009-01-17  Michael Natterer  <mitch@gimp.org>

	* all files with a GPL header and all COPYING files:

	Change licence to GPLv3 (and to LGPLv3 for libgimp).

	Cleaned up some copyright headers and regenerated the parsers in
	the ImageMap plugin.


svn path=/trunk/; revision=27913
2009-01-17 22:28:01 +00:00
Sven Neumann 51bfd07f18 Bug 568095 – Patch to improve unsharp mask performance
2009-01-17  Sven Neumann  <sven@gimp.org>

	Bug 568095 – Patch to improve unsharp mask performance

	* plug-ins/common/unsharp-mask.c (unsharp_region): applied patch
	from Winston Chang that improves performance for larger radii by
	approximating the gaussian blur with a three-pass box blur.


svn path=/trunk/; revision=27912
2009-01-17 22:17:42 +00:00
Sven Neumann b279420793 Bug 568021 – Unused code in unsharp-mask.c
2009-01-17  Sven Neumann  <sven@gimp.org>

	Bug 568021 – Unused code in unsharp-mask.c

	* plug-ins/common/unsharp-mask.c: applied patch from Winston 
Chang
	that removes unused code.


svn path=/trunk/; revision=27910
2009-01-17 16:05:13 +00:00
Sven Neumann d2654f071c Bug 568016 – Black pullout parameter of plug-in-newsprint has no effect
2009-01-17  Sven Neumann  <sven@gimp.org>

	Bug 568016 – Black pullout parameter of plug-in-newsprint has
	no effect

	* plug-ins/common/newsprint.c: fixed the documentation of the
	colorspace parameter.


svn path=/trunk/; revision=27908
2009-01-17 13:57:16 +00:00
Sven Neumann eeae281bc0 Bug 566498 – Noise distribution error in RGB Noise and HSV Noise
2009-01-06  Sven Neumann  <sven@gimp.org>

	Bug 566498 – Noise distribution error in RGB Noise and HSV Noise

	* plug-ins/common/noise-hsv.c
	* plug-ins/common/noise-rgb.c: applied patch from Marco Rossini.


svn path=/trunk/; revision=27896
2009-01-06 22:42:47 +00:00
Sven Neumann 8ae65ad5a3 plug-ins/print/print.[ch] plug-ins/print/print-draw-page.c
2008-12-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.[ch]
	* plug-ins/print/print-draw-page.c
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.c: optionally draw crop-marks.


svn path=/trunk/; revision=27859
2008-12-30 21:36:04 +00:00
Sven Neumann 28237630eb Bug 563985 – jpg save dialog: "cancel" is treated like "commit" for
2008-12-28  Sven Neumann  <sven@gimp.org>

	Bug 563985 – jpg save dialog: "cancel" is treated like "commit"
	for settings

	* plug-ins/file-jpeg/jpeg.c (run): only attach the comment and
	settings to the image if the save was successful.


svn path=/trunk/; revision=27843
2008-12-28 02:10:32 +00:00
Sven Neumann d86d085601 let the save procedure also accept a grayscale layer with alpha channel,
2008-12-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-gbr.c: let the save procedure also accept 
a
	grayscale layer with alpha channel, as we do in the GIH save
	procedure.

	* plug-ins/common/file-gih.c: when loading a brush mask pipe,
	create grayscale layers without an alpha channel. Changed the 
save
	procedure to also accept layers without alpha channel.


svn path=/trunk/; revision=27831
2008-12-26 22:07:53 +00:00
Sven Neumann 5700bd6003 Bug 565138 – python-fu-foggify does not check if image is in rgb mode
2008-12-21  Sven Neumann  <sven@gimp.org>

	Bug 565138 – python-fu-foggify does not check if image is in rgb 
mode

	* plug-ins/pygimp/plug-ins/foggify.py (foggify): fixed handling 
of
	grayscale images.


svn path=/trunk/; revision=27817
2008-12-21 15:33:07 +00:00
Sven Neumann 91189b62b2 reverted last change, it was bogus.
2008-12-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-png.c: reverted last change, it was 
bogus.


svn path=/trunk/; revision=27808
2008-12-17 19:33:30 +00:00
Sven Neumann a6f377dd02 use a tile cache to optimize pixel access.
2008-12-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-png.c (load_image) (save_image): use a 
tile
	cache to optimize pixel access.


svn path=/trunk/; revision=27805
2008-12-17 19:23:25 +00:00
Sven Neumann 1c30c4ae7b allow to save images that are plain white or plain black using the CCITT
2008-12-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-tiff-save.c (save_image)
	(image_is_monochrome): allow to save images that are plain white 
or
	plain black using the CCITT Fax compression methods.


svn path=/trunk/; revision=27756
2008-12-03 16:22:57 +00:00
Sven Neumann 0e3acdccb7 minor cleanup.
2008-12-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-ps.c: minor cleanup.


svn path=/trunk/; revision=27755
2008-12-03 16:07:32 +00:00
Sven Neumann 47612a393b use the G_KEY_FILE_DESKTOP defines from GLib.
2008-12-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-desktop-link.c: use the 
G_KEY_FILE_DESKTOP
	defines from GLib.


svn path=/trunk/; revision=27745
2008-12-02 14:18:53 +00:00
Sven Neumann 930772a763 Bug 562459 – PF_PALETTE: 'TypeError' when used in a plugin that is
2008-11-27  Sven Neumann  <sven@gimp.org>

	Bug 562459 – PF_PALETTE: 'TypeError' when used in a plugin that 
is
	registered in <Image>

	* plug-ins/pygimp/gimpui.defs (gimp_palette_select_button_new):
	the 'title' parameter is optional.


svn path=/trunk/; revision=27735
2008-11-27 20:49:14 +00:00
Sven Neumann 3cbb3dc994 Bug 562386 – PF_SLIDER and PF_SPINNER 'Step' values do not change
2008-11-27  Sven Neumann  <sven@gimp.org>

	Bug 562386 – PF_SLIDER and PF_SPINNER 'Step' values do not 
change
	consistently...

	* plug-ins/pygimp/gimpfu.py (SliderEntry): set the precision on
	the slider just as we do it for the spin-button.


svn path=/trunk/; revision=27730
2008-11-27 11:57:07 +00:00
Lars-Peter Clausen 080d1a42f2 Let SpinnerEntry return a float instead of trying to convert the textvalue to an
int.

svn path=/trunk/; revision=27728
2008-11-27 11:33:02 +00:00
Sven Neumann 44c92ad267 Bug 562386 – PF_SLIDER and PF_SPINNER 'Step' values do not change
2008-11-27  Sven Neumann  <sven@gimp.org>

	Bug 562386 – PF_SLIDER and PF_SPINNER 'Step' values do not 
change
	consistently...

	* plug-ins/pygimp/gimpfu.py (SpinnerEntry): initialize the
	spin-button the way that gtk_spin_button_new_with_range() is
	implemented.


svn path=/trunk/; revision=27726
2008-11-27 10:25:10 +00:00
Sven Neumann 3271c2a698 Bug 561899 – GIMP can't save to mounted filesystem if file exists
2008-11-22  Sven Neumann  <sven@gimp.org>

	Bug 561899 – GIMP can't save to mounted filesystem if file 
exists

	* plug-ins/file-uri/uri-backend-gvfs.c (copy_uri): pass the
	G_FILE_COPY_OVERWRITE flag to g_file_copy().


svn path=/trunk/; revision=27709
2008-11-22 16:55:32 +00:00
Sven Neumann d43a0fbf19 Bug 558454 – Plugin Map Color Range disapears from GIMP
2008-11-19  Sven Neumann  <sven@gimp.org>

	Bug 558454 – Plugin Map Color Range disapears from GIMP

	* plug-ins/script-fu/scripts/Makefile.am

	* plug-ins/script-fu/scripts/plug-in-compat.init: new file
	providing compatibility with plug-ins from older GIMP
	versions. Contains a reimplementation of plug-in-color-map based
	on ideas and code from Eric Lamarque.

	* plug-ins/script-fu/scheme-wrapper.c (tinyscheme_init): load 
the
	plug-in-compat.init file.


svn path=/trunk/; revision=27683
2008-11-19 08:17:28 +00:00
Martin Nordholts 9730756266 Bug 559239 – Error while loading psd-data
* plug-ins/file-psd/psd-layer-res-load.c (load_layer_resource):
Layer resource data should not be padded.

svn path=/trunk/; revision=27680
2008-11-18 19:54:45 +00:00
Sven Neumann a7e23df19d corrected column tooltip (pointed out by Cristian Secară).
2008-11-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/unit-editor.c (columns): corrected column
	tooltip (pointed out by Cristian Secară).


svn path=/trunk/; revision=27679
2008-11-18 12:49:01 +00:00
Sven Neumann cb2e2b636a also return image type and number of pages. Followup to bug #559725.
2008-11-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-pdf.c: also return image type and number 
of
	pages. Followup to bug #559725.


svn path=/trunk/; revision=27610
2008-11-10 23:15:40 +00:00
Sven Neumann e9699aae0f return image size from the "file-gif-load-thumb" procedure.
2008-11-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-gif-load.c: return image size from the
	"file-gif-load-thumb" procedure.


svn path=/trunk/; revision=27609
2008-11-10 23:04:52 +00:00
Sven Neumann e4b3589dab update the progress less often.
2008-11-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/unsharp-mask.c (unsharp_region): update the
	progress less often.


svn path=/trunk/; revision=27599
2008-11-10 10:44:03 +00:00
Michael Natterer 855b114f50 Bye bye floating_sel_rigor() and floating_sel_relax():
2008-11-09  Michael Natterer  <mitch@gimp.org>

	Bye bye floating_sel_rigor() and floating_sel_relax():

	* app/core/gimpdrawable.[ch] (gimp_drawable_init_src_region):
	implement compositing the floating selection on the fly. Add
	return parameter "TileManager **temp_tiles" which returns the temp
	buffer used for compositing; the caller has to unref the tiles.

	* app/core/gimpchannel-project.c
	* app/core/gimplayer-project.c: unref the temp_tiles.

	* app/core/gimplayer.[ch]: remove members fs.backing_store and
	fs.initial.

	* app/core/gimplayer-floating-sel.[ch]: remove functions rigor(),
	relax(), store() and restore(), they are not needed any longer.
	Some minor cleanup, more to come.

	* app/core/gimpprojection-construct.c: don't composite the
	floating selection before projecting because that happens on the
	fly now.

	* app/core/core-enums.[ch]
	* app/core/gimpfloatingselundo.c
	* app/core/gimpimage-undo-push.[ch]: remove the rigor and relax
	undos.

	* app/core/gimpdrawable.c
	* app/core/gimpimage-convert.c
	* app/core/gimpimage-duplicate.c
	* app/core/gimpimage.c
	* app/core/gimplayer.c
	* app/xcf/xcf-save.c: remove all calls to rigor and relax and all
	implementations of virtual functions that were just there to
	rigor/releax around chaining up.

	* tools/pdbgen/pdb/floating_sel.pdb: remove all code from the
	rigor and relax wrappers and deprecate the API.

	* app/pdb/floating-sel-cmds.c
	* libgimp/gimpfloatingsel_pdb.[ch]: regenerated.

	* plug-ins/file-xjt/xjt.c: don't call rigor and relax.


svn path=/trunk/; revision=27579
2008-11-09 16:49:37 +00:00
Sven Neumann 477110a7a3 formatting
svn path=/trunk/; revision=27567
2008-11-06 16:34:02 +00:00
Nils Philippsen 0800b7e3e9 fix memory leak
* plug-ins/file-jpeg/jpeg-save.c: fix memory leak

svn path=/trunk/; revision=27566
2008-11-06 15:56:58 +00:00
Sven Neumann cc7222d8e4 added missing include.
2008-11-04  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplay-foreach.c: added missing include.

	* app/actions/debug-commands.c
	* plug-ins/common/lcms.c
	* plug-ins/common/mail.c
	* plug-ins/file-bmp/bmp-write.c
	* plug-ins/file-fits/fits.c
	* plug-ins/file-jpeg/jpeg.c
	* plug-ins/file-uri/uri.c
	* plug-ins/help/gimphelpdomain.c
	* plug-ins/ifs-compose/ifs-compose.c
	* plug-ins/print/print.c: fixed use of g_message() with literal
	strings.


svn path=/trunk/; revision=27551
2008-11-04 14:05:24 +00:00
Sven Neumann c8375c0113 Bug 559081 – JPEG Save dialog preview should adjust size units
2008-11-03  Sven Neumann  <sven@gimp.org>

	Bug 559081 – JPEG Save dialog preview should adjust size units

	* plug-ins/file-jpeg/jpeg-save.c: use 
g_format_size_for_display()
	to display the JPEG file size.


svn path=/trunk/; revision=27532
2008-11-03 16:39:20 +00:00
Michael Natterer b27e735232 a comment was still saying "poppler.c".
2008-10-29  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/file-pdf.c: a comment was still saying
	"poppler.c".


svn path=/trunk/; revision=27465
2008-10-29 20:06:27 +00:00
Sven Neumann 48baf2dd47 plug-ins/script-fu/scripts/Makefile.am renamed from web-browser.scm.
2008-10-29  Sven Neumann  <sven@gimp.org>

        * plug-ins/script-fu/scripts/Makefile.am
        * plug-ins/script-fu/scripts/gimp-online.scm: renamed from
        web-browser.scm.


svn path=/trunk/; revision=27457
2008-10-29 12:05:56 +00:00
Martin Nordholts 76ba090647 plug-ins/file-psd/psd-save.c Add support for reading/writing PSDs with the
* plug-ins/file-psd/psd-save.c
* plug-ins/file-psd/psd-util.c: Add support for reading/writing
PSDs with the Linear Dodge layer mode which is the same as GIMPs
Addition layer mode.

svn path=/trunk/; revision=27407
2008-10-25 16:23:19 +00:00
Sven Neumann 1effaac2bb check the crossing mode and don't unset the "inside" flag when the event
2008-10-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-preview.c 
(print_preview_leave_notify_event):
	check the crossing mode and don't unset the "inside" flag when 
the
	event is caused by a pointer grab/ungrab.


svn path=/trunk/; revision=27368
2008-10-22 20:34:20 +00:00
Sven Neumann e959bf084c Bug 524615 – Print not to scale
2008-10-22  Sven Neumann  <sven@gimp.org>

	Bug 524615 – Print not to scale

	* plug-ins/print/print.c: set the unit for dimensions on the 
Cairo
	context used for printing to GTK_UNIT_PIXELS.

	* plug-ins/print/print-draw-page.c (print_draw_page): changed 
the
	Cairo scale factors accordingly. Seems to fix printing on 
Windows.


svn path=/trunk/; revision=27364
2008-10-22 15:01:34 +00:00
Sven Neumann 2b892dd8b2 Bug 556741 – Alpha layer automatically added (in psd format) but not
2008-10-22  Sven Neumann  <sven@gimp.org>

	Bug 556741 – Alpha layer automatically added (in psd format) but
	not desired

	* plug-ins/file-psd/psd-save.c: applied patch from Dennis Ranke
	that flattens the projection for indexed images.


svn path=/trunk/; revision=27358
2008-10-22 06:47:18 +00:00
Sven Neumann 236b1ba900 use pointer coordinates from the passed event instead of calling
2008-10-20  Sven Neumann  <sven@sven>

	* plug-ins/common/bump-map.c (dialog_preview_events): use 
pointer
	coordinates from the passed event instead of calling
	gtk_widget_get_pointer().


svn path=/trunk/; revision=27339
2008-10-20 13:27:00 +00:00
Sven Neumann 262ca5d4c9 set the OK and Reset button insensitive until the user has defined a
2008-10-20  Sven Neumann  <sven@sven>

	* plug-ins/common/iwarp.c: set the OK and Reset button 
insensitive
	until the user has defined a deformation to apply. Cleaned up
	event handling.


svn path=/trunk/; revision=27338
2008-10-20 13:17:14 +00:00
David Odin 83e631faf4 untabified
* plug-ins/common/*.c: untabified

svn path=/trunk/; revision=27335
2008-10-20 06:04:39 +00:00
Sven Neumann 11e495c92c use GSlice to allocate structs.
2008-10-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/metadata/xmp-parse.c: use GSlice to allocate structs.


svn path=/trunk/; revision=27333
2008-10-19 16:55:42 +00:00
Sven Neumann 186ac9c6d8 plug-ins/metadata/xmp-encode.c plug-ins/metadata/xmp-parse.c
2008-10-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/metadata/xmp-encode.c
	* plug-ins/metadata/xmp-parse.c
	* plug-ins/metadata/metadata.c
	* plug-ins/metadata/xmpdump.c: removal of unused includes and
	other minor cleanups.


svn path=/trunk/; revision=27332
2008-10-19 16:44:40 +00:00
Sven Neumann 6204aa3222 Bug 493778 – metadata plug-in crashes on some images
2008-10-19  Sven Neumann  <sven@gimp.org>

	Bug 493778 – metadata plug-in crashes on some images

	* plug-ins/metadata/xmp-encode.c (gen_property): introduced a
	utility function to create XML elements. Deal gracefully with 
NULL
	and empty values. Does not fix the crash, but fixes a warning 
that
	has been reported in the same bug report.


svn path=/trunk/; revision=27323
2008-10-19 13:29:35 +00:00
Michael Natterer 099bc23234 add -Wmissing-format-attribute to CFLAGS.
2008-10-19  Michael Natterer  <mitch@gimp.org>

	* configure.in: add -Wmissing-format-attribute to CFLAGS.

	* plug-ins/imagemap/imap_main.c
	* plug-ins/imagemap/imap_object.h
	* plug-ins/imagemap/imap_source.c
	* plug-ins/imagemap/imap_statusbar.h: add G_GNUC_PRINTF().


svn path=/trunk/; revision=27316
2008-10-18 23:05:56 +00:00
Sven Neumann 4d44235e6a fixed handling of empty strings. Don't quit silently, write an error
2008-10-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-psd/psd-save.c (xfwrite): fixed handling of 
empty
	strings. Don't quit silently, write an error message to stderr 
at
	least.


svn path=/trunk/; revision=27302
2008-10-17 20:30:07 +00:00
Sven Neumann af64515e53 Bug 556182 – Could you please explain a few strings [I18N]
2008-10-13  Sven Neumann  <sven@gimp.org>

	Bug 556182 – Could you please explain a few strings [I18N]
	
	* plug-ins/pygimp/plug-ins/py-slice.py: added translator 
comments.


svn path=/trunk/; revision=27272
2008-10-13 20:33:31 +00:00
Sven Neumann 86f8a07f8f Bug 555697 – build fails if configured with --without-libjpeg
2008-10-09  Sven Neumann  <sven@gimp.org>

	Bug 555697 – build fails if configured with --without-libjpeg
	
	* plug-ins/Makefile.am: applied patch from Simon Zilliken that
	disables the build of the PSD plug-in if JPEG support is 
disabled.


svn path=/trunk/; revision=27196
2008-10-09 16:35:02 +00:00
Martin Nordholts c7a49fdeb1 Bug 555587 – PSD file crashes PSD plug-in
* plug-ins/file-psd/psd-load.c (add_merged_image): Handle
img_a->alpha_names being NULL.

svn path=/trunk/; revision=27181
2008-10-08 19:59:36 +00:00
Martin Nordholts c88595fd82 Decrease scope of comp_mode and initialize it.
* plug-ins/file-psd/psd-load.c (add_layers): Decrease scope of
comp_mode and initialize it.

svn path=/trunk/; revision=27176
2008-10-08 18:09:47 +00:00
Martin Nordholts 74402e2eb0 Bug 555222 – PSD Load Plugin: unsupported compression mode
* plug-ins/file-psd/psd-load.c (add_layers): Some PSD files can
have channels where a compression method used for the channel data
is specified, but without any actual channel data. Handle this
case. Fix inspired by patch from Chris Mohler.

svn path=/trunk/; revision=27175
2008-10-08 18:00:48 +00:00
Sven Neumann 15c0e9a873 be more tolerant and continue loading with a warning message if there are
2008-10-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-gif-load.c (GetCode): be more tolerant 
and
	continue loading with a warning message if there are bits 
missing
	at the end of the file. Fixes bug #555280.


svn path=/trunk/; revision=27150
2008-10-06 21:18:58 +00:00
Michael Natterer 0c586f7b41 plug-ins/common/file-gih.c setting a spin button's page_increment to 1 is
2008-10-06  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/file-gih.c
	* plug-ins/common/file-xbm.c: setting a spin button's
	page_increment to 1 is of no use, set it to 10 instead.


svn path=/trunk/; revision=27148
2008-10-06 20:46:21 +00:00
Sven Neumann 46475f6ab1 fixed problem introduced by the use of an enum for the subsampling factor.
2008-10-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-jpeg/jpeg.c (run): fixed problem introduced by 
the
	use of an enum for the subsampling factor. Fixes bug #554890.


svn path=/trunk/; revision=27129
2008-10-04 22:46:42 +00:00
Michael Natterer 097e85de0c return errors via return_vals instead of displaying them with g_message().
2008-10-04  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/web-browser.c: return errors via return_vals
	instead of displaying them with g_message().


svn path=/trunk/; revision=27128
2008-10-04 21:50:32 +00:00
Sven Neumann 13110ea95d some cleanups to the subsampling code; in an attempt to fix bug #555031.
2008-10-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-jpeg/jpeg-save.c: some cleanups to the 
subsampling
	code; in an attempt to fix bug #555031.


svn path=/trunk/; revision=27126
2008-10-04 21:12:14 +00:00
Sven Neumann 9852ccc268 removed trailing whitespace and corrected error message.
2008-10-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/web-browser.c (browser_open_url): removed
	trailing whitespace and corrected error message.


svn path=/trunk/; revision=27120
2008-10-03 19:40:20 +00:00
Hans Breuer 136b71c2e3 when ShellExecute() is failing give the detailed (currently intentionally
2008-10-03  Hans Breuer  <hans@breuer.org>

	* plug-ins/common/web-browser.c : when ShellExecute() is failing give
	the detailed (currently intentionally untranslated) error message via 
	g_message()


svn path=/trunk/; revision=27119
2008-10-03 19:30:13 +00:00
Hans Breuer d94419a9fd updated include <string.h> for memcmp() include <string.h> for strcmp()
2008-10-03  Hans Breuer  <hans@breuer.org>

	* **/makefie.msc gimpdefs.msc app/gimpcore.def : updated
	* app/core/gimpcurve.c : include <string.h> for memcmp()
	* app/gegl/gimpcurvesconfig.c : include <string.h> for strcmp()

svn path=/trunk/; revision=27118
2008-10-03 19:27:54 +00:00
Michael Natterer 89e6d516e9 Bug 554785 – Compile failure on uri-backend-libcurl
2008-10-03  Michael Natterer  <mitch@gimp.org>

	Bug 554785 – Compile failure on uri-backend-libcurl

	* plug-ins/file-uri/uri-backend-libcurl.c: apply patch from Robby
	Workman which fixes the build for this file.


svn path=/trunk/; revision=27116
2008-10-03 12:58:41 +00:00
Sven Neumann e94e09f935 removed spurious commas that broke the build.
2008-10-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-uri/uri-backend-wget.c: removed spurious commas
	that broke the build.


svn path=/trunk/; revision=27103
2008-10-02 06:38:44 +00:00
Martin Nordholts abc09ec57a Bug 472403 – Add bevel script fu does not work if there is no
selection

* plug-ins/script-fu/scripts/add-bevel.scm (script-fu-add-bevel):
Applied modified patch from Barak Itkin that when there is no
selection makes the bevel be performed on the whole layer instead
of the whole image (which was broken in the first place). It also
fixes some bugs with setting the selection when there is no
initial selection.

svn path=/trunk/; revision=27070
2008-09-28 11:02:27 +00:00
Martin Nordholts fece66338e Rename 'select' to 'selection' since that is what it holds.
* plug-ins/script-fu/scripts/add-bevel.scm (script-fu-add-bevel):
Rename 'select' to 'selection' since that is what it holds.

svn path=/trunk/; revision=27069
2008-09-28 10:03:48 +00:00
Martin Nordholts b8e83c9449 Bug 551864 – plugin Flame fails for some settings on 64bit
machines

* plug-ins/flame/rect.c (render_rectangle): To handle p[0] and
p[1] being NaN, make sure that they are "within bounds" instead of
"not outside bounds".

svn path=/trunk/; revision=27067
2008-09-27 16:03:38 +00:00
Michael Natterer a16f672caa free the right array.
2008-09-25  Michael Natterer  <mitch@gimp.org>

	* plug-ins/print/print-draw-page.c
	(print_cairo_surface_from_drawable): free the right array.


svn path=/trunk/; revision=27057
2008-09-25 15:09:28 +00:00
Sven Neumann dae9f75a17 plug-ins/file-jpeg/jpeg.[ch] plug-ins/file-jpeg/jpeg-save.[ch] introduced
2008-09-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-jpeg/jpeg.[ch]
	* plug-ins/file-jpeg/jpeg-save.[ch]
	* plug-ins/file-jpeg/jpeg-settings.[ch]: introduced an enum for
	the subsampling factor.


svn path=/trunk/; revision=27056
2008-09-25 14:30:02 +00:00
Sven Neumann 9665fee425 Bug 553412 – JPEG sampling factors not set to 1x1 on grayscale images:
2008-09-25  Sven Neumann  <sven@gimp.org>

	Bug 553412 – JPEG sampling factors not set to 1x1 on grayscale
	images:

	* plug-ins/file-jpeg/jpeg-save.c: always set subsampling to 1x1
	for grayscale images and indicate this properly in the UI.


svn path=/trunk/; revision=27055
2008-09-25 14:24:27 +00:00
Sven Neumann 4bdf294b94 undef GIMP_DISABLE_DEPRECATED as we need the deprecated
2008-09-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/pygimp-image.c: undef GIMP_DISABLE_DEPRECATED
	as we need the deprecated gimp_image_free_shadow() here.

	* plug-ins/pygimp/pygimp-drawable.c: added 
Drawable.free_shadow().


svn path=/trunk/; revision=27043
2008-09-24 11:17:12 +00:00
Sven Neumann 7414d0bc16 plug-ins/pygimp/pygimp-drawable.c added optional interpolation parameters
2008-09-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/pygimp-drawable.c
	* plug-ins/pygimp/pygimp-image.c: added optional interpolation
	parameters to the image.scale() and layer.scale() methods.


svn path=/trunk/; revision=27042
2008-09-24 09:48:44 +00:00
Michael Natterer 9336d7be74 plug-ins/script-fu/Makefile.am new files containing script_fu_stresacpe().
2008-09-20  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/Makefile.am
	* plug-ins/script-fu/script-fu-utils.[ch]: new files containing
	script_fu_stresacpe().

	* plug-ins/script-fu/script-fu-script.c
	* plug-ins/script-fu/script-fu-scripts.[ch]: changed accordingly.


svn path=/trunk/; revision=27023
2008-09-20 09:58:30 +00:00
Michael Natterer 00c330825a rename "menu_path" to "menu_label". Having a full path here is just compat
2008-09-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-types.h (struct SFScript): rename
	"menu_path" to "menu_label". Having a full path here is just
	compat cruft.

	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-script.[ch]: changed accordingly.


svn path=/trunk/; revision=27016
2008-09-19 19:17:12 +00:00
Sven Neumann a2b283645a also apply the menu mapping on scripts that use script-fu-menu-register to
2008-09-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c: also apply the menu
	mapping on scripts that use script-fu-menu-register to add
	themselves to the menus.



svn path=/trunk/; revision=27015
2008-09-19 15:42:02 +00:00
Michael Natterer d80d1fabe9 move variables to local scopes, fix some whitespace and indentation, some
2008-09-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.c: move variables to local
	scopes, fix some whitespace and indentation, some misc. cleanup,
	remove comments about array calling conventions that had lots of
	copy and paste errors.


svn path=/trunk/; revision=27014
2008-09-19 12:15:26 +00:00
Sven Neumann c7af52b846 renamed "file-new-menu" to "file-create-menu" and changed the menu label
2008-09-19  Sven Neumann  <sven@gimp.org>

	* app/actions/file-actions.c: renamed "file-new-menu" to
	"file-create-menu" and changed the menu label from "New" to 
"Create".

	* app/plug-in/plug-in-menu-path.c
	* menus/image-menu.xml.in
	* plug-ins/common/screenshot.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/script-fu/scripts/*.scm
	* plug-ins/twain/twain.c
	* plug-ins/win-snap/winsnap.c: changed accordingly.


svn path=/trunk/; revision=27013
2008-09-19 12:01:12 +00:00
Sven Neumann a44896eeed increased size of the stack-allocated error string.
2008-09-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.c
	(script_fu_marshal_procedure_call): increased size of the
	stack-allocated error string.


svn path=/trunk/; revision=27011
2008-09-19 09:47:10 +00:00
Michael Natterer bf7b72088f fix warning about missing braces around array initializer.
2008-09-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_script_proc):
	fix warning about missing braces around array initializer.


svn path=/trunk/; revision=27010
2008-09-19 09:36:17 +00:00
Michael Natterer cb702ebd1e add new functions script_fu_script_get_title() and
2008-09-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-script.[ch]: add new functions
	script_fu_script_get_title() and script_fu_script_reset().

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_add_script):
	don't set all default values *and* values when parsing the script,
	just set the defaults and call script_fu_script_reset() afterwards.

	* plug-ins/script-fu/script-fu-interface.c (script_fu_interface):
	use the new script_fu_script_get_title().

	(script_fu_reset): call script_fu_script_reset() and then update
	the UI from the current values, instead of doing slightly
	different things for each arg type.


svn path=/trunk/; revision=27009
2008-09-19 09:34:35 +00:00
Sven Neumann 3bfd6e7d7d allow to copy selected text to the clipboard using Ctrl-C or the
2008-09-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/help-browser/dialog.c (update_actions): allow to copy
	selected text to the clipboard using Ctrl-C or the right-click
	menu.


svn path=/trunk/; revision=27006
2008-09-19 07:24:16 +00:00
Sven Neumann 6405455161 the plug-in can only run on layers, not masks and channels. Added a check
2008-09-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/edge-dog.c: the plug-in can only run on 
layers,
	not masks and channels. Added a check for this and bail out with
	an error message. Fixes bug #552625.

	* plug-ins/common/curve-bend.c: return error messages via the
	procedure's return values.


svn path=/trunk/; revision=27000
2008-09-18 19:31:26 +00:00