2007-09-13 Kevin Cozens <kcozens@cvs.gnome.org>
* plug-ins/script-fu/scripts/lava.scm: Removed 'from-selection'.
Reset active layer after calling gimp-selection-save. Modified
version of patch from Jakub Friedl which fixes bug #476672. Don't
add alpha if drawable already has alpha. Minor format changes.
svn path=/trunk/; revision=23534
2007-09-13 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpcolorprofilestore-private.h
* libgimpwidgets/gimpcolorprofilestore.c
* libgimpwidgets/gimpcolorprofilecombobox.c: only keep the eight
most recently used profiles in the history.
svn path=/trunk/; revision=23529
2007-09-13 Michael Natterer <mitch@gimp.org>
* configure.in: : remove PANGO_DISABLE_DEPRECATED only for
pango >= 1.19, GIMP builds fine against 1.18
svn path=/trunk/; revision=23525
2007-09-13 Sven Neumann <sven@gimp.org>
* app/core/gimpviewable.c: removed static variable debug_context
but keep the warnings about NULL contexts.
svn path=/trunk/; revision=23524
2007-09-13 Sven Neumann <sven@gimp.org>
* app/text/gimpfontlist.c (gimp_font_list_add_font): corrected
Pango version number in comment.
* app/widgets/gimpundoeditor.c (gimp_undo_editor_set_context):
chain up after initializing the context. Fixes a warning about
gimp_viewable_get_new_preview() being called with a NULL context.
svn path=/trunk/; revision=23523
2007-09-13 Michael Natterer <mitch@gimp.org>
* configure.in: remove FOO_DISABLE_DEPRECATED for only glib >= 2.15
and gtk+ >= 2.13, GIMP builds fine against the 2.14 and 2.12 APIs
apart from:
* app/tools/gimpselectionoptions.c
* libgimpwidgets/gimphelpui.c: undef GTK_DISABLE_DEPRECATED because
GtkTooltips is deprecated in gtk+ 2.12.
* libgimp/gimpui.c
* plug-ins/common/pat.c: the address of an array is always
non-NULL, no need to check for that. Fixes new gcc warnings.
svn path=/trunk/; revision=23522
* app/display/gimpdisplayshell-render.c: (render_image_tile_fault),
(render_image_tile_fault_one_row): clone the middle row/column when
walking off the source drawable during downscaling. Probably fixes bug
#469567.
svn path=/trunk/; revision=23521
2007-09-12 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpunitmenu.c (gimp_unit_menu_create_selection):
if the parent toplevel is modal, make the unit selection dialog
modal too. Fixes bug #389358.
svn path=/trunk/; revision=23520
2007-09-12 Michael Natterer <mitch@gimp.org>
Bring back our menus when building on OS X but not against the
quartz GDK backend:
* configure.in: added conditional HAVE_GDK_QUARTZ.
* menus/Makefile.am: use it when moving the help menu around.
* app/dialogs/preferences-dialog.c
* app/display/gimpdisplayshell.c
* app/gui/gtk-macmenu.c
* app/gui/gui.c
* app/widgets/gimptoolbox.c: use #ifdef GDK_WINDOWING_QUARTZ
instead of #ifdef HAVE_CARBON when enabling the global menubar.
svn path=/trunk/; revision=23512
* app/core/gimp-transform-region.c: (supersample_dtest): do not invoke
supersampling for linear, bicubic and lanczos until the largest
horizontal/vertical difference between transformed pixel corners goes
above sqrt(2) (this ensures interpolation instead of supersampling is
used for rotation.)
svn path=/trunk/; revision=23509
2007-09-11 Manish Singh <yosh@gimp.org>
* plug-ins/common/psp.c: don't use "major" and "minor" as variable
names, they may conflict with system symbols.
svn path=/trunk/; revision=23503
2007-09-11 Sven Neumann <sven@gimp.org>
* app/core/gimpimage.c (gimp_image_add_layers): make the first of
the added layers the active layer. Fixes bug #469752.
svn path=/trunk/; revision=23501
2007-09-11 Sven Neumann <sven@gimp.org>
* app/dialogs/file-open-dialog.c: don't reverse the order of URIs
when opening multiple files as layers. Fixes one aspect of bug
#469752.
svn path=/trunk/; revision=23498
2007-09-11 Sven Neumann <sven@gimp.org>
* plug-ins/common/lcms.c: allow to specify rendering intent and
black point compensation. Fixes bug #474787.
svn path=/trunk/; revision=23497
2007-09-10 Sven Neumann <sven@gimp.org>
* plug-ins/common/lens.c: applied patch from Aurimas Juška which
simplifies the code by using GimpPixelFetcher and fixes handling
of selections in the preview. Fixes the last aspect of bug #356716.
svn path=/trunk/; revision=23495
2007-09-10 Sven Neumann <sven@gimp.org>
* plug-ins/common/psp.c: applied patch from Nils Philippsen that
fixes an endianess problem (bug #475464).
svn path=/trunk/; revision=23492
2007-09-10 Sven Neumann <sven@gimp.org>
* etc/ps-menurc: minor update for 2.4. Removed bindings for brush
radius as these keys are now bound by default.
svn path=/trunk/; revision=23490
2007-09-07 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-scripts.c (script_fu_script_proc):
applied patch from Kevin Cozens which implements RUN-WITH-LAST-VALS.
On top of that, factored out script_fu_collect_standard_args()
which collects DISPLAY,IMAGE,[DRAWABLE|LAYER|...] from the passed
parameters according to the new calling conventions (the old code
for INTERACTIVE was broken). Also cleaned up the function a bit.
Fixes bug #472493.
svn path=/trunk/; revision=23474
2007-09-07 Michael Natterer <mitch@gimp.org>
* app/base/tile-manager.c (read_pixel_data_1): use a temporary
variable to store the return value of tile_manager_get() instead
of assigning to tm->cached_tile directly to make sure
tm->cached_num and tm->cached_tile are always in a consistent
state (the requested tile might be invalid and needs to be
validated, which would call tile_manager_get() recursively, which
in turn would clear the cached tile). Fixes bug #472770.
svn path=/trunk/; revision=23472
2007-09-06 Kevin Cozens <kcozens@cvs.gnome.org>
* plug-ins/script-fu/scripts/contactsheet.scm: Preserve aspect ratio
of original images. Center thumbnails in space above filename label.
Added new sheet size of 1600x1200 pixels. Changed a dialog label.
svn path=/trunk/; revision=23470
2007-09-06 Simon Budig <simon@gimp.org>
* plug-ins/common/convmatrix.c: there is no need to mess
with the selected channels within check_config(). Also fix
bug with with copying its values into the chanmask
in convolve_image()
Fixes bug #472518
svn path=/trunk/; revision=23468
2007-09-06 Simon Budig <simon@gimp.org>
* plug-ins/script-fu/tinyscheme/scheme-private.h: quick fix:
raise the cell segment size as well as the number of possible
segments to reduce the likelihood of a failing (make-vector)
(yes, this is a hack and no proper fix)
svn path=/trunk/; revision=23465
2007-09-03 Michael Natterer <mitch@gimp.org>
* Made 2.4.0-rc2 release.
* app/Makefile.am (dist-dump-gimprc): added some sed voodoo to
make sure the num-processors in the distributed gimprc and its
manpage don't depend on the machine that does make dist.
svn path=/trunk/; revision=23453
2007-09-03 Michael Natterer <mitch@gimp.org>
* app/core/gimp-transform-region.c: Applied slightly reformatted
patch by Jakub Friedl and Daniel Hornung which ROUND()s the
floating point result values before assigning them to integers to
avoid reducing the output space to [0..254] (thus darkening the
image). Fixes bug #472806.
svn path=/trunk/; revision=23451
2007-09-03 Michael Natterer <mitch@gimp.org>
* data/tips/Makefile.am
* desktop/Makefile.am:
s/.intltool-merge-cachemake/.intltool-merge-cache/ to fix
distcheck, probably a "make" was entered in the wrong window.
svn path=/trunk/; revision=23450
2007-09-02 Martin Nordholts <martinn@svn.gnome.org>
* app/display/gimpdisplayshell-draw.c
(gimp_display_shell_draw_area): Remove the STRESS_TEST stuff,
gimp_image_invalidate_without_render does not exist anymore
anyway.
svn path=/trunk/; revision=23441
2007-09-02 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimprectangleselecttool.c
(gimp_rect_select_tool_update_option_defaults): New function to
update default values for Fixed: Size. This function is called to
update defaults values for Fixed: Size to that of the pending
rectangle width x height if there is one, or 100x100 otherwise.
* app/tools/gimpcroptool.c
(gimp_crop_tool_update_option_defaults): Set Fixed: Size to the
size of the pending crop rectangle, or 100x100 if there is none.
svn path=/trunk/; revision=23440
2007-09-01 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimpcroptool.c
(gimp_crop_tool_update_default_fixed_ratio_options):
Generalize the default Fixed: Aspect ratio option setting code
so that it can later be used for Fixed: Size as well, and move
it to
* app/tools/gimprectangletool.[ch]
(gimp_rectangle_tool_pending_size_set)
(gimp_rectangle_tool_constraint_size_set): and use these two new
functions instead.
svn path=/trunk/; revision=23435
2007-08-31 Simon Budig <simon@gimp.org>
* plug-ins/script-fu/tinyscheme/scheme.[ch]
* plug-ins/script-fu/tinyscheme/scheme-private.h: make it possible
for foreign functions to return an error.
* plug-ins/script-fu/script-fu-scripts.c
* plug-ins/script-fu/scheme-wrapper.c: Make use of this.
Fixes bug #472026.
svn path=/trunk/; revision=23432
2007-08-31 Michael Natterer <mitch@gimp.org>
* app/gui/sync-menu.[ch]: renamed...
* app/gui/gtk-macmenu.[ch]: ...to these to match new namespace.
* app/gui/Makefile.am
* app/gui/gui.c: changed accordingly.
svn path=/trunk/; revision=23428
2007-08-31 Michael Natterer <mitch@gimp.org>
* app/gui/sync-menu.[ch]: new versions with sane namespace and
support for setting the application menu's "Quit", "About" and
"Preferences" items.
* app/gui/gui.c: changed accordingly and use the new menu items
from the application menu.
svn path=/trunk/; revision=23427
2007-08-31 Michael Natterer <mitch@gimp.org>
* app/base/tile-manager.c (tile_manager_get): if
tile_manager->cached_tile is requested for writing, clear the
cache before giving out the tile. Fixes bug #472170.
svn path=/trunk/; revision=23425
* app/display/gimpdisplayshell-render.c: (render_image_tile_fault):
use nearest neighbour resampling when rendering for a 1byte per pixel
drawable (ony happens when interacting with the SIOX tool, and then
the buffer is a indexed; not a greyscale buffer), fixes bug #472027.
svn path=/trunk/; revision=23424
2007-08-31 Raphael Quinet <raphael@gimp.org>
* app/display/gimpdisplayshell-render.c (render_image_tile_fault):
do not use anti-aliasing when the zoom is exactly 200%. Fixes bug
#472150. Also miscellaneous cosmetic changes.
svn path=/trunk/; revision=23423
2007-08-31 Simon Budig <simon@gimp.org>
* plug-ins/common/antialias.c: fixed subtle cut'n'paste bug,
made the code a little bit more readable.
svn path=/trunk/; revision=23421
2007-08-30 Karine Delvare <edhel@gimp.org>
* plug-ins/common/illusion.c
* plug-ins/common/polar.c
* plug-ins/common/whirlpinch.c: applied patches from Aurimas Juška
that fixes use of the GimpZoomPreview widget in those plug-ins (see
bug #356716), and makes illusion handle selections properly.
svn path=/trunk/; revision=23416
2007-08-30 Michael Natterer <mitch@gimp.org>
* app/gui/sync-menu.c: take over cosmetic fix from upstream.
* configure.in: add HAVE_CARBON as AM_CONDITIONAL
* menus/image-menu.xml.in: add the Help menu to the image menu.
* menus/Makefile.am
* menus/menus.xsl: filter it away if we are not on carbon.
* app/menus/menus.c: added the "help" action group to the image UI
manager.
svn path=/trunk/; revision=23412
2007-08-30 Simon Budig <simon@gimp.org>
* plug-ins/script-fu/scheme-wrapper.c
* plug-ins/script-fu/tinyscheme/scheme.[ch]
* plug-ins/script-fu/scheme-wrapper.h: Shuffeled some
code around to have scheme.c not include scheme-wrapper.h.
svn path=/trunk/; revision=23411
2007-08-30 Raphael Quinet <raphael@gimp.org>
* data/tips/gimp-tips.xml.in: expanded old tip and mentioned that
it is possible to configure most window managers so that they do
not steal the Alt key from the applications. Fixes bug #471565.
svn path=/trunk/; revision=23410
2007-08-30 Raphael Quinet <raphael@gimp.org>
* plug-ins/common/pcx.c: applied modified patch from Nils
Philippsen that adds more sanity checks when loading and saving
images. Fixes the reopened bug #471189.
svn path=/trunk/; revision=23409
2007-08-30 Michael Natterer <mitch@gimp.org>
First version of global menubar support for OSX. Work in progress.
* app/gui/Makefile.am
* app/gui/sync-menu.[ch]: new files containing code that takes
a GtkMenuShell and proxies it in the OSX global menubar. Taken
from http://developer.imendio.com/projects/gtk-macosx/menubar
* app/gui/gui.c: put the global image popup menu to the menubar.
* app/dialogs/preferences-dialog.c
* app/display/gimpdisplayshell.c
* app/widgets/gimptoolbox.c: #ifdef out all menubars in windows.
* app/Makefile.am (AM_LDFLAGS): add $(CARBON_LDFLAGS)
svn path=/trunk/; revision=23408
2007-08-29 Kevin Cozens <kcozens@cvs.gnome.org>
* plug-ins/script-fu/tinyscheme/scheme.c: Applied the change suggested
in SourceForge bug #1593861 that fixes the case where integer? thinks
non-numbers are sometimes integers.
svn path=/trunk/; revision=23402
2007-08-30 Simon Budig <simon@gimp.org>
* plug-ins/script-fu/tinyscheme/scheme.[ch]
* plug-ins/script-fu/tinyscheme/scheme-private.h: small changes
to tinyscheme - mostly removing workarounds for message output.
* plug-ins/script-fu/scheme-wrapper.[ch]: try to channel the
output through a central function, have various output functions
to handle the messages. Remove some hacks.
* plug-ins/script-fu/script-fu-text-console.c
* plug-ins/script-fu/script-fu-scripts.[ch]
* plug-ins/script-fu/script-fu-interface.c
* plug-ins/script-fu/script-fu.c
* plug-ins/script-fu/script-fu-server.c
* plug-ins/script-fu/script-fu-console.[ch]: use the new
infrastructure. Remove more hacks.
* plug-ins/script-fu/servertest.py: small script to test the
communication with the script-fu-server.
svn path=/trunk/; revision=23400
2007-08-29 Raphael Quinet <raphael@gimp.org>
* plug-ins/metadata/xmp-encode.c (gen_property): escape the text
values output in the XMP packet. Based on a bug report and patch
by John Marshall. Fixes bug #455481.
svn path=/trunk/; revision=23398
2007-08-29 Jakub Friedl <jfriedl@suse.cz>
* plug-ins/common/scatter_hsv.c: Calling randomize_value with
max value 359 instead of 360 to fix off by 1 error when wrapping
around.
svn path=/trunk/; revision=23397
2007-08-29 Jakub Friedl <jfriedl@suse.cz>
* plug-ins/common/convmatrix.c: Removes the fprint function.
Values are printed using g_snprintf and "%g" which supresses
trailing zeroes. Fixes bug #471051.
svn path=/trunk/; revision=23396
2007-08-29 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpeg-save.[ch]
* plug-ins/jpeg/jpeg.c: change the behavior of the code so that
"Use quality settings from original image" does what it claims,
even if these settings are worse than the user's defaults (note
that the option is not automatically enabled in this case). Also
set the subsampling type when that box is checked.
* plug-ins/jpeg/jpeg-settings.h: formatting.
svn path=/trunk/; revision=23395
2007-08-29 Raphael Quinet <raphael@gimp.org>
* plug-ins/common/pcx.c: applied modified patch from Nils
Philippsen that uses the glib endianness conversion macros instead
of the ones provided in the old code (broken on S390/S390x).
Fixes bug #471189.
svn path=/trunk/; revision=23394
2007-08-29 Michael Natterer <mitch@gimp.org>
* plug-ins/common/lcms.c (lcms_image_apply_profile):
gimp-selection-* procedures operate on the image_ID, not on the
selection drawable_ID itself. Fixes bug #470589. Also remove the
saved selection channel after reloading it.
svn path=/trunk/; revision=23393
2007-08-29 Michael Natterer <mitch@gimp.org>
* themes/Default/images/preferences/Makefile.am (PREFS_IMAGES):
install and distribute the new icons. Fixes bug #436815
svn path=/trunk/; revision=23392
2007-08-28 Michael Natterer <mitch@gimp.org>
* libgimpbase/gimpdatafiles.c (gimp_datafiles_read_directories):
skip files starting with '.' so we don't try to parse .DS_Store
and other metadata storage files. Also moved variables to local
scopes.
svn path=/trunk/; revision=23388
2007-08-28 Tor Lillqvist <tml@novell.com>
* libgimpbase/gimpenv.c: Update doc comments about filename
encoding on Windows. It is now always UTF-8, like in
GLib. (#471033) Change "Win32" to "Windows" in doc comments.
svn path=/trunk/; revision=23387
2007-08-28 Jakub Friedl <jfriedl@suse.cz>
* plug-ins/common/redeye.c: CLAMP()ing the red value
so that it is in the 0-255 range. Fixes bug #470914.
svn path=/trunk/; revision=23386
2007-08-24 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpeg-save.c (save_dialog): use a label that is
easier to understand. Required code changes will follow later.
svn path=/trunk/; revision=23373
2007-08-24 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpeg-settings.c (jpeg_swap_original_settings): new
function that swaps the vertical and horizontal axis for the saved
subsampling parameters and quantization tables.
* plug-ins/jpeg/jpeg-exif.c (jpeg_exif_rotate): swap the saved
settings when the image is rotated. Fixes bug #466593.
* devel-docs/release-howto.txt: added note about having admin
access to Bugzilla and to the news section on www.gimp.org.
svn path=/trunk/; revision=23370
2007-08-24 Raphael Quinet <raphael@gimp.org>
* tools/pdbgen/pdb/selection.pdb: fixed incorrect description of
gimp-selection-is-empty, reported by pk. This function returns
TRUE when the selection is empty, but the description stated the
opposite.
* app/pdb/selection_cmds.c
* libgimp/gimpselection_pdb.c: regenerated.
svn path=/trunk/; revision=23368
2007-08-24 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-draw.c
(gimp_display_shell_draw_area): don't use SCALEX()/SCALEY() on x/y
*and* width/height of the highlight rectangle because that adds up
the error introduced by the ceil() contained in these macros.
Instead, scale manually and use ceil() on x/y and floor() on
width/height. Fixes off-by-one rendering artifacts (bug #467972).
svn path=/trunk/; revision=23367
* app/display/gimpdisplayshell-render.c: swapped center and middle
terms around (now center means horizontal (betwen left and right )and
middle means vertical (between top and bottom)).
svn path=/trunk/; revision=23363
* app/display/gimpdisplayshell-render.c: (compute_sample): removed
a temporary variable, simplified logic slightly.
(render_image_tile_fault, render_image_tile_fault_one_row): moved
sum computation out of loop.
svn path=/trunk/; revision=23362