2008-09-23 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/widgets/gimpdbusservice.c: include "gimpuimanager.h", not
"gimpuimanager.c".
svn path=/branches/gimp-2-4/; revision=27034
2008-09-01 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/core/gimpprojection-construct.c
(gimp_projection_initialize):
also need to initialize the projection if the layer mask could
introduce transparency. Fixes bug #550024.
svn path=/branches/gimp-2-4/; revision=26825
2008-08-23 Lars-Peter Clausen <lars@metafoo.de>
Merged from trunk:
* tools/pdbgen/pdb/gradient.pdb
(gimp_gradient_segment_range_blend_(colors|opacity)): Don't crash
if the index of the last segment is out of range.
* app/pdb/gradient-cmds.c: regenerated.
svn path=/branches/gimp-2-4/; revision=26726
2008-08-05 Sven Neumann <sven@gimp.org>
* app/gui/gimpdbusservice.[ch]: changed refcounting and fixed a
bug that I had introduced with the latest changes.
svn path=/branches/gimp-2-4/; revision=26392
2008-08-05 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/gui/gimpdbusservice.[ch]: keep a queue of D-Bus requests
and
work on them one after another instead of handling them all in
parallel. Complements the fix for bug #546426.
svn path=/branches/gimp-2-4/; revision=26387
2008-08-05 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/widgets/gimpdbusservice.c: open the files from an idle
handler. Opening a file may take a while (in particular if it
involves asking the user for input) and we need to respond to
the
D-Bus call before it times out.
svn path=/branches/gimp-2-4/; revision=26371
2008-07-27 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/text/gimptext-compat.c (text_get_extents): applied the
same
workaround for a memory leak in PangoFT2 (bug #143542) as was
applied long ago in gimptextlayout.c.
svn path=/branches/gimp-2-4/; revision=26325
2008-06-04 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/tools/gimpcropoptions.c
* app/tools/gimprectangleoptions.c
* app/tools/gimprectangleselectoptions.c: fixed handling of the
"highlight" property that needs different default values for the
Crop and Rectangle Select tools (bug #536582).
svn path=/branches/gimp-2-4/; revision=25891
2008-05-24 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/display/gimpdisplayshell-callbacks.c
(gimp_display_shell_canvas_tool_events): fixed use of
gdk_device_get_history(). Fixes airbrush tool with tablets on
newer X.org releases.
svn path=/branches/gimp-2-4/; revision=25786
2008-05-14 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/core/gimpbrushclipboard.c
(gimp_brush_clipboard_buffer_changed): for an opaque buffer,
initialize the brush mask with 255 instead of 0. Fixes bug
#532886.
svn path=/branches/gimp-2-4/; revision=25660
2008-05-10 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimprectangletool.c: Fix emission of rectangle-changed
signal.
* app/tools/gimpcroptool.c
* app/tools/gimprectangleselecttool.c: Use the rectangle-changed
signal to update the default aspect ratio. Fixes bug #530519.
svn path=/branches/gimp-2-4/; revision=25632
2008-05-10 Martin Nordholts <martinn@svn.gnome.org>
Merged from trunk:
* app/tools/gimprectangletool.c
(gimp_rectangle_tool_button_press): Active the tool control
earlier.
(gimp_rectangle_tool_synthesize_motion): Bail out if the tool
control is active, we don't want to synthesize a motion in this
case as it emits unwanted rectangle-changed signals.
svn path=/branches/gimp-2-4/; revision=25631
2008-05-10 Martin Nordholts <martinn@svn.gnome.org>
Merged from trunk:
* app/tools/gimprectangleselecttool.c
(gimp_rectangle_select_tool_cancel): Don't forget updating the
default aspect ratio when cancelling a rectangle select.
svn path=/branches/gimp-2-4/; revision=25621
2008-05-10 Martin Nordholts <martinn@svn.gnome.org>
Merged from trunk:
* app/tools/gimprectangletool.c
(gimp_rectangle_tool_button_release): Update the tool options
after a release; the rectangle might change if a rubber-banding is
cancelled.
svn path=/branches/gimp-2-4/; revision=25609
2008-05-10 Martin Nordholts <martinn@svn.gnome.org>
Merged from trunk:
* app/tools/gimpcroptool.c: Add a GimpRectangleTool::cancel()
implementation that updates default aspect ratio when cancelling a
crop.
svn path=/branches/gimp-2-4/; revision=25602
2008-05-10 Martin Nordholts <martinn@svn.gnome.org>
Merged from trunk:
* app/tools/gimpcroptool.[ch]: Keep track of the current image and
manage a subscription to "size-changed" so that default aspect
ratio is properly updated. (Bug #532057.)
(gimp_crop_tool_execute): No need to explicitly call
gimp_crop_tool_update_option_defaults() any longer.
svn path=/branches/gimp-2-4/; revision=25600
2008-04-28 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/base/hue-saturation.c (hue_saturation): applied patch from
Michael Deal that fixes use of the overlap option (bug #527085).
svn path=/branches/gimp-2-4/; revision=25540
2008-04-16 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/config/test-config.c: initialize the units vtable in
libgimpbase instead of trying to override symbols from it.
Fixes bug #528160.
svn path=/branches/gimp-2-4/; revision=25492
2008-04-03 Michael Natterer <mitch@gimp.org>
Merged from trunk:
* app/core/gimpimage-convert.c (gimp_image_convert): don't accept
palettes with more than 256 colors.
* tools/pdbgen/pdb/convert.pdb: fail here too for palettes
with > 256 colors. Fixes bug #525471.
* app/pdb/convert_cmds.c: regenerated.
svn path=/branches/gimp-2-4/; revision=25349
2008-03-30 Martin Nordholts <martinn@svn.gnome.org>
Merged from trunk:
* app/widgets/gimpcontainertreeview-dnd.c
(gimp_container_tree_view_drag_drop): Make all code paths result
in a call to gtk_drag_finish() if we return TRUE. Fixes bug
#317992.
svn path=/branches/gimp-2-4/; revision=25321
2008-03-30 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/core/gimparea.c (gimp_area_list_free): don't leak the
memory
allocated for the GSList.
svn path=/branches/gimp-2-4/; revision=25318
2008-03-30 Sven Neumann <sven@gimp.org>
Merged Bill's changes for bug #521433 from trunk with some minor
cleanups:
* app/paint/gimpbrushcore.[ch]: made
gimp_brush_core_get_brush_mask() public.
* app/paint/gimpheal.c: respect the brush mask.
svn path=/branches/gimp-2-4/; revision=25308
2008-03-22 Sven Neumann <sven@gimp.org>
* app/tools/gimpcurvestool.c (gimp_curves_tool_initialize): set
the curve type to the type of the initial curve, which is
SMOOTH.
Fixes bug #523873.
svn path=/branches/gimp-2-4/; revision=25171
2008-03-09 Michael Natterer <mitch@gimp.org>
Merged from trunk (slightly modified):
Fix mishandling of the "antialias" GParamSpec. Fixes bug #521069:
* app/tools/gimpselectionoptions.c (gimp_selection_options_reset):
don't set the default for "antialias" depending on the tool
type (which is impossible since the antialias GParamSpec only
exists once, and not once for each subclass).
* app/tools/gimpforegroundselectoptions.c: override the antialias
property here and default to FALSE.
svn path=/branches/gimp-2-4/; revision=25078
2008-03-08 Sven Neumann <sven@gimp.org>
* app/about.h: reverted the last change, it breaks the string
freeze.
svn path=/branches/gimp-2-4/; revision=25067
2008-02-27 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/core/gimpdrawable-transform.c (gimp_drawable_transform_affine):
pass the direction parameter down to
gimp_drawable_transform_tiles_affine() instead of hardcoding it to
GIMP_TRANSFORM_FORWARD. Fixes bug #518910.
svn path=/branches/gimp-2-4/; revision=24991
2008-02-27 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/gui/gui-vtable.c (gui_display_create): added a sanity
check
which might help to catch the problem reported in bug #518905.
svn path=/branches/gimp-2-4/; revision=24988
2008-02-25 Sven Neumann <sven@gimp.org>
* app/tools/gimpcurvestool.c (curves_graph_events): in the
button-press handler for smooth curves, recalculate the curve
before updating the preview. Fixes bug #518012.
svn path=/branches/gimp-2-4/; revision=24957
2008-02-24 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/actions/edit-actions.c: removed default keyboard shortcuts
from actions that work with named buffers. Use Ctrl-Shift-V as
the
default keyboard shortcut for "Paste As New Image" and
Ctrl-Shift-C for "Copy Visible".
svn path=/branches/gimp-2-4/; revision=24955
2008-02-21 Michael Natterer <mitch@gimp.org>
Merged from trunk:
* app/actions/plug-in-actions.c (plug_in_actions_history_changed):
don't call plug_in_actions_update() because that updated the
sensitivity of *all* plug-in actions according to the properties
of the *current* image. Instead, look up the original GtkAction of
the history items of *this* action group and copy the sensitivity
from that action. Fixes bug #517683.
svn path=/branches/gimp-2-4/; revision=24935
2008-02-14 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/text/gimpfont.c (gimp_font_get_sample_string): check if the
font has the glyphs from the sample string. Fixes bug #514021.
svn path=/branches/gimp-2-4/; revision=24885
2008-02-05 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/dialogs/image-new-dialog.c (image_new_create_image):
use the user context when creating the new image. Fixes bug #514082.
svn path=/branches/gimp-2-4/; revision=24807
2008-02-04 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/display/gimpdisplayshell-preview.c
(gimp_display_shell_trace_tri_edge): use a gint for direction,
not
a gchar which might be unsigned. Patch from Giuliano Pochini;
fixes bug #340965.
svn path=/branches/gimp-2-4/; revision=24796
2008-02-04 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/paint/gimpbrushcore.c (gimp_brush_core_create_bound_segs):
changed workaround to look at the brush size instead (bug #514309).
svn path=/branches/gimp-2-4/; revision=24787
2008-02-04 Sven Neumann <sven@gimp.org>
* app/paint/gimpbrushcore.c (gimp_brush_core_create_bound_segs):
only smooth the inner area of the mask so that we don't enlarge
the boundary for hard brushes (bug #304798).
svn path=/branches/gimp-2-4/; revision=24781
2008-01-24 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/core/gimpimage.c
* app/core/gimpimage-undo.c: fixed handling of the image undo
counter for the case where the user has undone the image to a
state before the last save and then pushes a new undo. Fixes
bug #509822.
svn path=/branches/gimp-2-4/; revision=24700
2008-01-23 Martin Nordholts <martinn@svn.gnome.org>
Merged from trunk:
* app/tools/gimprectangleselecttool.c
(gimp_rect_select_tool_execute): Reset the automatic undo/redo
mechanism so that commiting pending rectangles with Return
works (bug #511599).
svn path=/branches/gimp-2-4/; revision=24697
2008-01-23 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/display/gimpdisplayshell-selection.c: show the selection,
even if the window is flagged as invisible, but don't start the
animation. Addresses bug #505758.
svn path=/branches/gimp-2-4/; revision=24695
2008-01-23 Sven Neumann <sven@gimp.org>
* app/dialogs/about-dialog.c (about_dialog_create): use a
run-time
check for the GTK+ version instead of a compile time one.
svn path=/branches/gimp-2-4/; revision=24689
2008-01-22 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/core/gimpprojection.c (gimp_projection_idle_render_init):
decreased the priority of the projection idle renderer to 150,
halfway between G_PRIORITY_HIGH_IDLE and
G_PRIORITY_DEFAULT_IDLE.
Fixes bug #511214.
svn path=/branches/gimp-2-4/; revision=24681
2008-01-22 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/paint/gimpbrushcore.c (gimp_brush_core_create_bound_segs):
dilate the brush mask in order to obtain a simpler boundary.
Addresses bug #304798.
svn path=/branches/gimp-2-4/; revision=24677
2008-01-21 Michael Natterer <mitch@gimp.org>
Merged from trunk:
* app/widgets/gimpcolorbar.c (gimp_color_bar_class_init): fix the
ID of the "histogram-channel" property.
svn path=/branches/gimp-2-4/; revision=24661
2008-01-15 Michael Natterer <mitch@gimp.org>
Merged from trunk:
* app/tools/gimpimagemaptool.c (gimp_image_map_tool_notify_preview):
check for image_map_tool->image_map also when the preview is
switched on, not only when it's switched off.
svn path=/branches/gimp-2-4/; revision=24619
2008-01-04 Sven Neumann <sven@gimp.org>
Merged from trunk:
* app/config/gimpdisplayconfig.c: changed the default marching
ants
speed to 200.
svn path=/branches/gimp-2-4/; revision=24535