2007-07-27 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-callbacks.c: factored out utility
function gimp_display_shell_update_focus() which sets the active
tool into the proper state after the canvas received focus.
(gimp_display_shell_canvas_tool_events): use it here instead of
duplicating the code 3 times.
(gimp_display_shell_ruler_button_press): use it here too so the
move and color tools don't do weird things in click-to-focus
mode (when FOCUS_IN is delivered after BUTTON_PRESS).
svn path=/trunk/; revision=23020
2007-07-27 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/jpeg.[ch]
* plug-ins/jpeg/jpeg-save.c (save_dialog): Make the "Save XMP
data" checkbox insensitive if there is no XMP packet to save.
svn path=/trunk/; revision=23019
2007-07-26 Raphael Quinet <raphael@gimp.org>
* plug-ins/jpeg/Makefile.am
* plug-ins/jpeg/jpeg-quality.[ch]
* plug-ins/jpeg/jpeg-settings.[ch]: new files including functions
for detecting the quality setting of existing JPEG files by
analyzing their quantization tables, functions for storing this
quality and other JPEG settings in a parasite, and functions for
restoring these values.
* plug-ins/jpeg/jpeg-load.c (load_image): save the original JPEG
settings in a parasite after reading the JPEG header.
* plug-ins/jpeg/jpeg.c (run): restore the original JPEG settings
if they had been attached to a parasite and if they are better
than the defaults.
* plug-ins/jpeg/jpeg-save.c (save_image): added new type of
subsampling 1x2,1x1,1x1, which is useful for images with height >
width such as rotated images from some cameras.
(save_dialog): added hints about how the subsampling types can be
used, marked these strings as translatable.
* plug-ins/jpeg/jpegqual.c: new utility to report the quality
settings and sampling factors of existing JPEG files.
svn path=/trunk/; revision=23018
2007-07-26 Michael Natterer <mitch@gimp.org>
* plug-ins/common/xbm.c: change the default mask file suffix from
"_mask" to "-mask".
svn path=/trunk/; revision=23015
2007-07-26 Michael Natterer <mitch@gimp.org>
* cursors/cursor-move.png
* cursors/gimp-tool-cursors.xcf
* cursors/xbm/cursor-move.xbm
* cursors/xbm/cursor-move-mask.xbm: moved the move cursor two
pixels right and down so it has its hotspot where the small
crosshair has it. Reduces cursor jumping in the rectangle tool.
svn path=/trunk/; revision=23014
2007-07-26 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-dnd.c: moved common code into new
utility function gimp_display_shell_dnd_flush(). Also move focus
to the image window from this function.
svn path=/trunk/; revision=23012
2007-07-26 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/scripts/Makefile.am: moved contactsheet.scm
to test_SCRIPTS. We should look at it again after the 2.4 release.
svn path=/trunk/; revision=23010
2007-07-26 Sven Neumann <sven@gimp.org>
* plug-ins/print/print-page-layout.c
* plug-ins/print/print-settings.c: applied patch from Stefan
Röllin to save and restore the use-full-page setting (bug
#387604).
svn path=/trunk/; revision=23009
2007-07-25 Sven Neumann <sven@gimp.org>
* plug-ins/print/print.c: only show an error dialog if being
called interactively.
svn path=/trunk/; revision=23007
2007-07-25 Sven Neumann <sven@gimp.org>
* plug-ins/print/print-draw-page.c (draw_page_cairo): reverted
last change. Instead reimplemented the drawing to fetch the pixels
directly into the cairo image surface.
svn path=/trunk/; revision=22998
2007-07-25 Sven Neumann <sven@gimp.org>
* plug-ins/print/print-draw-page.c (draw_page_cairo): push a group
around the image surface fills. This seems to get rid of the white
stripes in the output.
svn path=/trunk/; revision=22997
2007-07-25 Sven Neumann <sven@gimp.org>
* plug-ins/print/print.c (run): always call gimp_ui_init(), we need
funtionality from GTK+, even if called non-interactively.
svn path=/trunk/; revision=22996
2007-07-25 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/progress.pdb: added new procedure gimp-progress-end.
* app/pdb/progress_cmds.c
* app/pdb/internal_procs.c
* libgimp/gimpprogress_pdb.[ch]: regenerated.
* plug-ins/print/print.[ch]
* plug-ins/print/print-settings.[ch]: end the progress and save
the settings from the "end-print" handler. The plug-in then
appears finished but keeps running in the background until it has
finished the print operation.
svn path=/trunk/; revision=22994
2007-07-25 Sven Neumann <sven@gimp.org>
* plug-ins/print/print.c: delete the export image from the
"end-print" handler.
svn path=/trunk/; revision=22993
2007-07-25 Michael Natterer <mitch@gimp.org>
* app/tools/gimptool.c (gimp_tool_set_active_modifier_state):
don't have the tool release ALT when the user releases CONTROL.
Fixes another stuck modifier instance and other modifier
weirdness.
svn path=/trunk/; revision=22992