Commit Graph

6382 Commits

Author SHA1 Message Date
Michael Natterer 09ebacdb82 pygimp: undeprecate quite some stuff 2010-11-24 22:02:22 +01:00
Mukund Sivaraman cfde98394c Fix scheme for (integer? 7.0) which should return #t 2010-11-20 15:43:37 +05:30
Nelson A. de Oliveira f72d8a4a39 Move file opening block to after some tests
Instead fclosing fp for every return, it's better to move the block
to a lower position, since it's not used before.
2010-11-12 21:56:17 +01:00
Nelson A. de Oliveira 7666e5cf36 Fix memory and descriptor leaks 2010-11-12 21:56:17 +01:00
Nils Philippsen d2ebadcfb9 colorxhtml: check validity of source_type 2010-11-09 11:33:49 +01:00
Mikael Magnusson b07d02cdc6 plug-ins: destroy cairo surface in CML Explorer 2010-11-02 21:50:45 +01:00
Mikael Magnusson 81fee76747 plug-ins: port Lighting Effects to cairo 2010-11-02 21:34:11 +01:00
Michael Natterer 73d7fbedeb plug-ins: port file-pdf-load to GimpUnitComboBox and build it again 2010-10-31 21:38:27 +01:00
Mikael Magnusson 16f5727e59 plug-ins: port CML Explorer to cairo 2010-10-31 16:54:33 +01:00
Mikael Magnusson 39199fb98b plug-ins: port sphere-designer to cairo 2010-10-31 15:47:06 +01:00
Michael Natterer 29d63afbb7 pdb: remove gimp-item-to-selection again 2010-10-30 22:19:22 +02:00
Simon Budig 5111498e11 More input validation in the psd load plugin
plug-ins/file-psd/psd-load.c: Avoid dereferencing a random pointer
on chn_a[cidx].data[i] when comp_mode is unrecognized.
Spotted by Mikael Magnusson <mikachu@gmail.com>.
2010-10-28 20:34:44 +02:00
Mukund Sivaraman b072e75833 file-jpeg: Make cinfo struct static so asynchronous saves don't crash
The plug-in already makes a copy of the cinfo struct for asynchronous
save, but it seems that somewhere inside cinfo, a pointer points to
another region in this struct. So, everything is copied as-is, and
the pointer ends up pointing to somewhere in the save_image() stack
which is gone when that function returns.
2010-10-23 17:23:22 +05:30
Mukund Sivaraman 64ed52144a Update indentation 2010-10-23 00:39:03 +05:30
Mukund Sivaraman 4998863806 file-jpeg: Fix a crash when toggling settings in preview mode
This patch cancels the GSource for background_jpeg_save() and calls it
synchronously to free resources. Without this patch, multiple GSources
for background_jpeg_save() get setup and result in a crash.
2010-10-22 22:23:42 +05:30
Mukund Sivaraman 349a401cc5 file-jp2-load: Elaborate comment 2010-10-19 20:26:30 +05:30
Sven Neumann 6302ea7de8 pygimp: remove wrappers for gimp_min_colors() and gimp_install_cmap() 2010-10-19 10:02:27 +02:00
Mukund Sivaraman 9bbcf8c6b3 plug-ins/common/file-jp2-load: Check for other kinds of alpha components
ImageMagick seems to write out the 'matte' component (number 3).
2010-10-18 19:21:51 +05:30
Mukund Sivaraman 83eeb724ca plug-ins/common/screenshot: Remove extra article 2010-10-17 16:06:24 +05:30
Mukund Sivaraman 42f67f4d96 Rename WebKit's AM_CONDITIONAL
This is so that WebKit can be used elsewhere in GIMP.
2010-10-17 00:29:04 +05:30
Mukund Sivaraman daf6456663 Fix install rule for individual plug-ins 2010-10-16 15:08:42 +05:30
Nils Philippsen bec9e4b4ea pygimp: deprecate gimpui.UnitMenu 2010-10-15 17:27:06 +02:00
Nils Philippsen bc265758b0 pygimp: add wrapper for GimpUnit, GimpUnitComboBox 2010-10-15 17:27:06 +02:00
Nils Philippsen b07eed8208 pygimp: fix building with deprecated GimpUnitMenu 2010-10-15 17:27:06 +02:00
Michael Natterer c36f762f7d libgimpwidgets: deprecate GimpUnitMenu and gimp_prop_unit_menu_new()
Add gimp_prop_unit_combo_box_new() and adapt all places using the
prop_unit_menu. Some things are broken now, like there are no pixel
digits set, resolution unit menus show "pixels" and warn badly when
pixels is selected, and file-pdf-load is not built right now.
More fixes to come...
2010-10-14 23:03:34 +02:00
Alexandre Prokoudine fee17f8712 Cleanup of recent changes in porting scripts to new API. Marked layer names in carved-logo.scm for translation while at that 2010-10-10 21:07:24 +04:00
Alexandre Prokoudine 3abf6de944 Porting scripts to new API, marking layer names for translation 2010-10-10 17:59:29 +04:00
Sven Neumann 4d18135b46 script-fu: use "Rule" instead of "Hrule" 2010-10-10 01:56:00 +02:00
Sven Neumann 9100fd1c62 script-fu: don't include whitespace used as separator in translatable string
Actually we should use a printf()-like syntax here to make such strings
translatable.
2010-10-10 01:54:11 +02:00
Alexandre Prokoudine 0a4657ae9f Porting scripts to new API, marking layer names for translation 2010-10-10 03:52:15 +04:00
Alexandre Prokoudine e1a705c125 Marking layer names for translation 2010-10-10 03:41:21 +04:00
Alexandre Prokoudine e062acbc64 Porting scripts to new API, marking layer names for translation 2010-10-10 03:40:59 +04:00
Alexandre Prokoudine 466523f732 Porting scripts to new API 2010-10-10 02:40:48 +04:00
Alexandre Prokoudine bb9c1210b3 Porting to new API: add-[layer|channel] > insert-[layer|channel] and more, perspective-shadow.scm will need revisiting re. new item transformation API 2010-10-10 02:14:53 +04:00
Mukund Sivaraman 7a9793ba6e plug-ins: Use the correct enum value in file-psp 2010-10-08 22:56:53 +05:30
Mukund Sivaraman 9853df88a1 plug-ins: Increase size of values array in file-xmc to allow for values[5] access 2010-10-07 17:55:36 +05:30
Mukund Sivaraman cfe6e3a00e plug-ins: Increase size of values array in file-gih to allow for values[1] access 2010-10-07 17:52:13 +05:30
Mukund Sivaraman ea29074bf8 plug-ins: Increase size of values array to allow for values[3] access 2010-10-07 17:50:36 +05:30
Martin Nordholts 4a32f3e500 plug-ins: Port common/file-tiff-load.c to new item transform API
We don't need to use gimp_context_set_transform_resize() since we flip
around the center.

Note that the current code will never work before we try to rotate the
layer before it is added to the image, but that's a different bug...
2010-10-06 19:55:33 +02:00
Martin Nordholts 719e04f5d9 plug-ins: Port common/curve-bend.c to new item transform API 2010-10-06 19:55:33 +02:00
Martin Nordholts 9d0e69d43b plug-ins/file-sgi: Quickfix for -Wtype-limits warnings
Quickfix for "warning: comparison is always false due to limited range
of data type".
2010-10-05 08:04:17 +02:00
Martin Nordholts cc7755f876 Port stuff to gimp_item_is_text_layer()
Port stuff to gimp_item_is_text_layer() instead of
gimp_drawable_is_text_layer(). Nevermind the previous commit, it
should never have been pushed...
2010-10-05 07:39:00 +02:00
Sven Neumann 6be41a6675 Bug 631199 - Printing and Print preview broken with cairo 1.10
Add missing calls to cairo_surface_mark_dirty().
2010-10-03 14:05:20 +02:00
Sven Neumann ec5fa2fb26 plug-ins: unify handling of return values
For consistency Use a static GParam array for the return values
in all plug-ins.
2010-09-30 22:46:30 +02:00
Mukund Sivaraman cad6ba9b94 Make values static to avoid returning bogus ptr
God knows how many other plug-ins have this.
2010-09-30 23:14:56 +05:30
Alexandre Prokoudine eed3b054bc Porting to new API: add-[layer|channel] > insert-[layer|channel] and more 2010-09-28 09:10:07 +04:00
Alexandre Prokoudine 9f2f17851c Porting to new API: add-[layer|channel] > insert-[layer|channel] 2010-09-28 03:44:30 +04:00
Alexandre Prokoudine b02ba67199 Porting to new API: add-[layer|channel] > -insert-[layer|channel] 2010-09-28 03:30:33 +04:00
Kevin Cozens b0d8ba5ffd Additional fixes for handling UTF-8 coded strings (Bugs 572865 & 628893)
plug-ins/script-fu/scheme-wrapper.c:
- Fixed set and get of UTF-8 coded strings for parasites.

plug-ins/script-fu/tinyscheme/scheme.c:
- Additional fix to string-append and fixed substring. The mk_empty_string
  routine is not the way to allocate space for UTF-8 coded strings.
- Added some comments.
2010-09-20 23:20:45 -04:00
Kevin Cozens ae6670ba8b Last part of fixes for handling UTF-8 coded strings (Bugs 572865 & 628893)
At the end of a double quoted string, readstrexp() was passing byte count
instead of character count to mk_counted_string(). Cleaned up basic_inchar().
It ignores bad UTF-8 coded characters when reading from file or buffer.
2010-09-19 17:48:17 -04:00
Kevin Cozens 6855267470 First part of fixes for handling UTF-8 coded strings (Bugs 572865 & 628893)
Fixed string-set! and string-append due to mixup of chars vs. bytes.
Fixed calculation of pointer to past end of string in open-*-string
routines.
2010-09-19 17:48:17 -04:00
Michael Natterer 16491ce8a8 pygimp: completely undeprecate pygimp-image.c
Somebody really needs to take care of deprecating all that
stuff in pygimp itself, and add API for the new functions.
2010-09-16 20:58:21 +02:00
Michael Natterer 98d8d686e8 pygimp: don't use gimp_image,layer_scale_full() 2010-09-16 20:53:15 +02:00
Massimo Valentini 2643107912 Bug 623850 - (Paco) Recursive Gaussian Filter error 2010-09-16 19:50:16 +02:00
Barak Itkin 1135f2db92 Bug 624487 - Fix incorrect "wrap mode" documentation values in Edge plug-in 2010-09-13 02:55:20 +02:00
Seth Burgess 90eda12905 plug-ins: Fix preview in Difference of Gaussians
Implement invert as part of normalize routine - See Bug 557380
2010-09-13 02:23:05 +02:00
Barak Itkin 0097286a45 plug-ins: remove execute permission from common/file-pdf-save.c 2010-09-12 18:51:38 +02:00
Michael Natterer 3c15255030 plug-ins: port curve-bend curve drawing to cairo 2010-09-12 00:54:39 +02:00
Michael Natterer 9b440396e1 plug-ins: port ifs-compose drawing to cairo 2010-09-10 14:44:41 +02:00
Michael Natterer a0d3d8d763 plug-ins: port color-rotate drawing to cairo and simplify the code 2010-09-09 21:50:55 +02:00
Michael Natterer 52a6a8deb8 plug-ins: port sample-colorize drawing to cairo 2010-09-09 14:07:27 +02:00
Michael Natterer 333eeab13f plug-ins: pagr-size must be 0 on adjustments used for spin buttons 2010-09-09 13:50:15 +02:00
Michael Natterer fe536cf845 plug-ins: remove more useless logic from nova 2010-09-09 02:07:58 +02:00
Michael Natterer 3c062c3f23 plug-ins: port lens-flare center drawing to cairo 2010-09-09 02:07:13 +02:00
Michael Natterer 0ad9051bc3 plug-ins: more cleanup in nova and tile-small 2010-09-09 01:54:00 +02:00
Lloyd Konneker c5658da09c Bug 155733 - need to check return values of gimp_drawable_mask_bounds()
Fix one of many plugins: gimpressionist

Checks for intersecting selection before opening a dialog, and
finding none, returns an error string. Without the patch, the plugin
dialog has a black preview, when user chooses OK assertions fail, and
the plugin has no effect, but doesn't crash.
2010-09-08 21:49:04 +02:00
Michael Natterer 0aa35c8c8e plug-ins: use the same opacities for drawing lines on top of the preview 2010-09-08 21:00:29 +02:00
Michael Natterer 9970a2b14b plug-ins: port nova cursor drawing to cairo and simplify drawing a lot 2010-09-08 20:52:02 +02:00
Michael Natterer 73b5f87873 plug-ins: port tile-small selection drawing to cairo 2010-09-08 20:33:39 +02:00
Michael Natterer e0ad0f478e plug-ins: port filter-pack drawing to cairo 2010-09-08 14:36:29 +02:00
Michael Natterer 4264afbb0e pygimp: port to gimp_item_to_selection() 2010-09-07 00:35:28 +02:00
Sven Neumann bab75db54e python: port plug-ins to Image.insert_layer() 2010-09-06 23:58:10 +02:00
Sven Neumann 378a465caa python: add Image.insert_layer() and Image.insert_channel() 2010-09-06 23:43:22 +02:00
Sven Neumann 48f6219585 python: use gimp_image_insert_layer() instead of add_layer() 2010-09-06 23:31:04 +02:00
Michael Natterer bbd7ec6b5c plug-ins: port from gimp_image_add_foo() to gimp_image_insert_foo()
I'm sure some plug-ins need to add their items *not* at the toplevel,
but since making plug-ins really tree-aware is a lot more work than
just fixing insert positions, I went for passing -1 as parent in
almost all cases. And because of laziness...
2010-09-06 11:40:46 +02:00
Michael Natterer edf1bb794f plug-ins: use gimp_item_to_selection() instead of deprecated API 2010-09-05 23:22:17 +02:00
Sven Neumann ee31bd1c4d plug-ins: whitespace and coding style cleanups
Apply whitespace and coding style cleanups to the new optimized
code. Also sprinkle with const qualifiers.
2010-09-05 19:35:33 +02:00
KermiDT 6a99cf7ed4 Bug 628817 - Optimized Despeckle plug-in
Included optimized version of despeckle plug-in.
2010-09-05 19:35:11 +02:00
Martin Nordholts fc121e7ba8 Disable strict aliasing where we break aliasing rules
Add -fno-strict-aliasing to CFLAGS for files where we get
"dereferencing type-punned pointer will break strict-aliasing
rules"-warnings.
2010-09-04 13:49:09 +02:00
Martin Nordholts 27471e1f7c plug-ins/common: Allow arbitrary CFLAGS in mkgen.pl
Don't require a plug-in to specify a *FLAGS* variable in
plugin-defs.pl, to make it possible to for example add

  cflags => '-fno-strict-aliasing'

directly.
2010-09-04 13:49:08 +02:00
Martin Nordholts 529559407e plug-ins/pygimp: Fix copy-paste error in gimpthumb.override 2010-09-03 09:32:25 +02:00
Martin Nordholts 136499d1ae plug-ins/imagemap: Kill #define COMMAND_PROTO
Kill #define COMMAND_PROTO and move its definition to the only client,
and get rid of warnings about defined functions not being used.
2010-09-03 09:06:12 +02:00
Martin Nordholts b3189cdbf6 plug-ins/pygimp: Workaround for missing header
Add workaround for missing header in gimpui.c and gimpthumb.c to avoid
compile warnings about "no previous prototype".
2010-09-03 08:28:28 +02:00
Martin Nordholts 1d79b045e8 plug-ins/pygimp: Fix setitem function signatures
Use 'Py_ssize_t' not 'int' so we compile without warnings on 64-bit
too.
2010-09-03 08:20:00 +02:00
Martin Nordholts d40984f505 plug-ins/pygimp: Cast PyMappingMethods.mp_length to lenfunc
From Pyton 2.5 - which is the minimum Python version we require - the
type of the mp_length member in PyMappingMethods is lenfunc, not
inquiry. Fix this to get rid of "initialization from incompatible
pointer type" warnings.
2010-09-03 08:12:05 +02:00
Tor Lillqvist 6d62a5e4fe Fix Win32 build
No sa_family_t in winsock headers, so typedef it.
2010-09-02 19:34:51 +03:00
Michael Schumacher e77dd90fc0 Bug 574018 - Add a manifest to executables
Created a resource file for plug-ins and a rule to link it to them.
The application icon file is smaller than the default one, there's no
point in doubling the size of a plug-in executable just for an icon.

If no problems turn up, this will close the bug.
2010-09-01 08:24:45 +02:00
Michael Natterer 6130f6b0bb plug-ins: clean up includes in file-pdf-save.c 2010-08-28 12:44:30 +02:00
Barak Itkin f1266c2b0a plug-ins: fix some warnings in file-pdf-save, and fix configure.ac to include it 2010-08-28 00:10:00 +03:00
Barak Itkin 6f8c412735 plug-ins: add the new file-pdf-save plugin (Bug #382688) 2010-08-28 00:09:59 +03:00
Barak Itkin 7f10c24f4a plug-ins: rename file-pdf to file-pdf-load
Renaming the PDF import plugin to file-pdf load is needed in order to introduce
the new PDF export plugin
2010-08-28 00:09:59 +03:00
Massimo Valentini 9bde117b05 Bug 623169 - Memory leaks in GIMP
Fix an oversight that was committed with the last patch.
2010-08-22 21:37:24 +02:00
Michael Schumacher 74f39616a0 Bug 627009 - Image type filter doesn't include .rgba SGI files
Added the rgba file extension to the load and save handler
registration of the SGI file plug-in.
2010-08-16 22:42:52 +02:00
Martin Nordholts 270ba46eba Bug 623186 - GIF save plugin chokes on layers larger than canvas
GIMP_RUN_WITH_LAST_VALS must have the UI initialized too, for example
when doing File -> Export <file>.
2010-08-16 21:58:14 +02:00
Martin Nordholts 693a76a336 Remove old and unused ChangeLogs 2010-08-16 21:41:02 +02:00
Michael Schumacher fe7b253512 Bug 626020 - Console window opening on file-ps-load
Added G_SPAWN_STDOUT_TO_DEV_NULL and G_SPAWN_STDERR_TO_DEV_NULL to the
g_spawn_sync () flags. According to Tor Lillqvist this won't fix the bug,
but the GLib docs state that these flags have to be added if stdout and
stderr are set to NULL.
2010-08-12 21:54:44 +02:00
Barak Itkin 03f1034a97 script-fu: Use the new gimp-item api where possible 2010-08-03 00:13:51 +03:00
SimaMoto,RyōTa 1dfa7b5e76 Bug 625571 - Request context tags for reasonable translation on some plug-ins
Set gettext context signatures on "From:" and "To:" labels
of the Color Rotate and the Color to Alpha plug-ins.
2010-07-31 15:25:12 +02:00
Sven Neumann 2a901da559 Bug 624944 - "Colour Exchange" dialog is too high in size
Rearrange widgets into two columns.
2010-07-21 21:42:27 +02:00
Ulf-D. Ehlert f76981143d Bug 624761 - Stencil Chrome filter: missing parameter check
Limit the result of the internal "highlights" routine to 100.0,
preventing invalid "gimp-color-balance" color parameters.
Also, replace some parameters with appropriate named constants.
2010-07-21 20:43:48 +02:00
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