2008-05-09 Sven Neumann <sven@gimp.org>
* configure.in: check for a minimum required cairo version
(1.4.14).
* app/core/gimpscanconvert.c: copied some code from cairo until
we depend on cairo 1.6.
svn path=/trunk/; revision=25593
2008-05-09 Simon Budig <simon@gimp.org>
* app/core/gimpscanconvert.[ch]: removed Libart usage,
replaced with Cairo. Dashed strokes do not yet work again, will
happen tomorrow. Also the blending modes need a second look at.
Also removed deprecated API which made it unnecessarily complicated.
* app/tools/gimpiscissorstool.c: use the current API.
* app/core/Makefile.am
* app/Makefile.am
* configure.in: removed libart dependency, added cairo dependency
where necessary.
svn path=/trunk/; revision=25591
2008-05-08 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-callbacks.c
(gimp_display_shell_events): don't call gtk_widget_grab_focus() here.
(gimp_display_shell_canvas_tool_events): call it here instead and
add comments about how BUTTON_PRESS and FOCUS_IN interact.
Also return TRUE from BUTTON_PRESS, BUTTON_RELEASE and
MOTION_NOTIFY.
svn path=/trunk/; revision=25590
2008-05-08 Sven Neumann <sven@gimp.org>
* app/display/gimpscalecombobox.c (gimp_scale_combo_box_init):
removed the entry's inner border to save some precious space in
the status-bar.
svn path=/trunk/; revision=25588
2008-05-08 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-callbacks.c
(gimp_display_shell_events): move the focus to the canvas on
button-press events.
* app/widgets/gimpwindow.c (gimp_window_key_press_event):
removed
a use of G_UNLIKELY() that is somewhat bogus here.
svn path=/trunk/; revision=25587
2008-05-08 Sven Neumann <sven@gimp.org>
* app/widgets/gimpfiledialog.[ch]: added infrastructure to
access
and set some state information of the GtkFileChooser.
* app/dialogs/file-open-dialog.c
* app/dialogs/file-save-dialog.c: don't keep the file-chooser
dialogs around. Instead keep the state attached to the Gimp
object
(one state for load, one for save dialogs). Closes bug #528811.
svn path=/trunk/; revision=25586
2008-05-07 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimpcroptool.c (gimp_crop_tool_image_changed): Make it
feel like a class member function by G_CONNECT_SWAPPED-izing it.
svn path=/trunk/; revision=25582
2008-05-07 Sven Neumann <sven@gimp.org>
* plug-ins/common/blur-gauss-selective.c: allocate temporary
memory on the stack. Minor code cleanups.
svn path=/trunk/; revision=25579
2008-05-06 Michael Natterer <mitch@gimp.org>
* app/plug-in/gimpplugin-message.c: split
gimp_plug_in_handle_tile_request() into two functions:
gimp_plug_in_handle_tile_put() and gimp_plug_in_handle_tile_get().
svn path=/trunk/; revision=25578
2008-05-06 Michael Natterer <mitch@gimp.org>
* app/plug-in/gimpplugin-message.c
(gimp_plug_in_handle_proc_install): show an error message instead
of crashing when a plug-in registers a prodecure with a NULL
argument or return value name. Also introduce two macros which
make the utf-8 validation of all strings much more readable.
svn path=/trunk/; revision=25577
2008-05-06 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/scripts/3d-outline.scm: applied patch from
Ulf-D. Ehlert. Makes the vacated region, which is created when
specifying a non-zero shadow offset, to be filled with the
background color (white) instead of transparency (bug #530216).
svn path=/trunk/; revision=25575
2008-05-06 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpcolorprofilestore.c
(gimp_color_profile_store_load_profile): check if the file exists
before adding it to the history. Fixes bug #528958.
svn path=/trunk/; revision=25572
2008-05-05 Michael Natterer <mitch@gimp.org>
* app/actions/drawable-commands.c
(drawable_levels_stretch_cmd_callback): the second parameter of
gimp_drawable_levels_stretch() is now a GimpProgress.
svn path=/trunk/; revision=25570
2008-05-05 Sven Neumann <sven@gimp.org>
* plug-ins/common/unsharp-mask.c (gen_convolve_matrix): fixed
algorithm to calculate the center value. Fixes bug #530077.
svn path=/trunk/; revision=25567
2008-05-05 Sven Neumann <sven@gimp.org>
* plug-ins/common/blinds.c (MAX_FANS): increased the maximum
number of blinds to 100.
svn path=/trunk/; revision=25566
2008-05-05 Sven Neumann <sven@gimp.org>
* app/tools/gimppainttool.c
* app/display/gimpdisplayshell-coords.c: applied patch from
Alexia
Death which changes the maximum smoothing for paint tools to
more
conservative default and adds velocity dependent smooth
suppression.
svn path=/trunk/; revision=25564
2008-05-02 Martin Nordholts <martinn@svn.gnome.org>
* gimptexttool.c
* gimptexttool.h:
* gimprectangletool.c
* gimprectangletool.h
* gimprectangleselecttool.c: Renamed the "rectangle-changed"
signal to "rectangle-change-complete" which is much better name
since the signal is not emited when the rectangle is changed, but
when the change is complete.
svn path=/trunk/; revision=25557
2008-04-30 Sven Neumann <sven@gimp.org>
* app/display/gimpscalecombobox.c
(gimp_scale_combo_box_entry_key_press): also handle the Tab keys
and call the "activate" handler when Tab is pressed.
svn path=/trunk/; revision=25553
2008-04-30 Sven Neumann <sven@gimp.org>
* app/display/gimpscalecombobox.c: install a "key-press-event"
handler and reset the entry when the Escape key is pressed.
svn path=/trunk/; revision=25552
2008-04-29 Sven Neumann <sven@gimp.org>
* themes/Default/gtkrc
* themes/Small/gtkrc: reduce the minimum array size for
GtkComboBox widgets in the image window.
svn path=/trunk/; revision=25550
2008-04-29 Sven Neumann <sven@gimp.org>
* app/display/gimpscalecombobox.[ch]: added signal
"entry-activated".
* app/display/gimpstatusbar.c (gimp_statusbar_new): connect to
the
new signal and move the focus to the canvas.
* app/display/gimpdisplayshell.c (gimp_display_shell_new):
comment.
svn path=/trunk/; revision=25549
2008-04-28 Sven Neumann <sven@gimp.org>
* app/display/gimpscalecombobox.c: keep the current scale value,
beep and reset the entry when the user input cannot be parsed.
Also changed the input parser to interpret a single number as a
percentage.
svn path=/trunk/; revision=25547
2008-04-28 Sven Neumann <sven@gimp.org>
* app/display/gimpscalecombobox.[ch]: derive from
GtkComboBoxEntry.
Needs some more work with respect to input validation and focus
handling...
svn path=/trunk/; revision=25542
2008-04-28 Sven Neumann <sven@gimp.org>
* app/widgets/Makefile.am
* app/widgets/widgets-types.h
* app/widgets/gimpwindow.[ch]: added GimpWindow class and moved
key-press-event handler from GimpDock to this class.
* app/widgets/gimpdock.[ch]:
* app/display/gimpdisplayshell.[ch]: derive from GimpWindow.
svn path=/trunk/; revision=25541
2008-04-28 Sven Neumann <sven@gimp.org>
* app/base/hue-saturation.c (hue_saturation): applied patch from
Michael Deal that fixes use of the overlap option (bug #527085).
svn path=/trunk/; revision=25539
2008-04-28 Sven Neumann <sven@gimp.org>
* menus/image-menu.xml.in: removed GEGL tool from the Colors
menu
and also moved it out of the color tools menu.
svn path=/trunk/; revision=25538
2008-04-26 Martin Nordholts <martinn@svn.gnome.org>
* plug-ins/flame/libifs.c: Applied patch from Aurimas Juška. Use
the standard rand() instead of random().
svn path=/trunk/; revision=25534
* app/tools/gimpgegltool.c: (gimp_get_subtype_classes),
(gimp_gegl_tool_compare_operation_names), (gimp_get_geglopclasses),
(gimp_gegl_tool_dialog): made the GEGL tool only show ops from
relevant categories, the list of relevant categories is hard coded
for now.
svn path=/trunk/; revision=25533
2008-04-26 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimprectangletool.c
(gimp_rectangle_tool_options_notify): No need to bail out if there
is no display.
svn path=/trunk/; revision=25532
2008-04-26 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimprectangletool.c
(gimp_rectangle_tool_options_notify): Some more simplifications
and cleanups.
svn path=/trunk/; revision=25531
2008-04-26 Michael Natterer <mitch@gimp.org>
* menus/image-menu.xml.in: the gegl tool was missing from the
"Tools" menu.
svn path=/trunk/; revision=25529
2008-04-26 Martin Nordholts <martinn@svn.gnome.org>
* plug-ins/flame/flame.c
* plug-ins/flame/libifs.[ch]: Applied
modified patch by Luis Barrancos that adds 22 new variations to
the flame plugin (bug #389004).
svn path=/trunk/; revision=25527
2008-04-25 Michael Natterer <mitch@gimp.org>
* app/paint/gimppaintoptions.c (gimp_paint_options_get_jitter):
add g_return_if_fail().
* app/paint/gimpheal.c (gimp_heal_motion)
* app/paint/gimpdodgeburn.c (gimp_dodge_burn_motion): free stuff
right after it's not used any longer, instead of at the end of the
function.
* app/paint/gimppaintbrush.c (_gimp_paintbrush_motion): move a
statement to improve consistency with other motion() functions.
svn path=/trunk/; revision=25526
2008-04-25 Michael Natterer <mitch@gimp.org>
* plug-ins/print/print.c (query): fix help string of the page
setup procedure.
svn path=/trunk/; revision=25525
2008-04-25 Sven Neumann <sven@gimp.org>
* app/app.c
* app/gegl/gimp-gegl.c: reverted change from 2008-01-31. Use the
GEGL option group again now that GEGL provides some commmand-line
options.
svn path=/trunk/; revision=25524
2008-04-25 Michael Natterer <mitch@gimp.org>
* app/paint/gimppaintoptions.[ch]: reorder jitter options stuff to
be consistently ordered all over the place.
svn path=/trunk/; revision=25523
2008-04-25 Sven Neumann <sven@gimp.org>
* app/widgets/gimptoolbox.c: do not any longer accept
middle-mouse-button paste on the toolbox buttons but use the
toolbox drop area for that.
svn path=/trunk/; revision=25521
2008-04-24 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimprectangletool.c
(gimp_rectangle_tool_options_notify): Do appropriate equal and
not-equal comparions for floting point numbers. Fixes bug #527863.
svn path=/trunk/; revision=25516
2008-04-22 Michael Natterer <mitch@gimp.org>
* app/actions/view-actions.c (view_actions_update): simplify call
to window_actions_update() (we already have a local "shell"
variable that is NULL when there is no display).
svn path=/trunk/; revision=25514
2008-04-22 Sven Neumann <sven@gimp.org>
* app/display/gimpstatusbar.c (gimp_statusbar_frame_size_request):
take vertical padding into account to avoid resizing the statusbar.
svn path=/trunk/; revision=25512
2008-04-21 Michael Natterer <mitch@gimp.org>
* app/plug-in/gimpplugin-cleanup.c: do the actual cleanup in
utility functions and reduce gimp_plug_in_cleanup() to merely
iterating the cleanup lists.
svn path=/trunk/; revision=25511
2008-04-21 Michael Natterer <mitch@gimp.org>
Move the shadow tiles from the image to the drawable.
Fixes bug #100469.
* app/core/Makefile.am
* app/core/gimpdrawable-shadow.[ch]: new files implementing
the shadow tiles.
* app/core/gimpimage.[ch]: remove the shadow tile manager from the
GimpImage struct. Remove gimp_image_get_shadow_tiles() and
_free_shadow_tiles().
* app/core/gimpdrawable.[ch]: add the shadow tile manager
here. Remove get_shadow_tiles() and merge_shadow(). Free the
shadow tiles in finalize and when the drawable gets removed from
the image.
* app/core/gimpdrawable-brightness-contrast.c
* app/core/gimpdrawable-color-balance.c
* app/core/gimpdrawable-colorize.c
* app/core/gimpdrawable-curves.c
* app/core/gimpdrawable-desaturate.c
* app/core/gimpdrawable-equalize.c
* app/core/gimpdrawable-hue-saturation.c
* app/core/gimpdrawable-invert.c
* app/core/gimpdrawable-levels.c
* app/core/gimpdrawable-operation.c
* app/core/gimpdrawable-posterize.c
* app/core/gimpdrawable-threshold.c
* app/core/gimpimagemap.c: changed accordingly. Free the shadow tiles
after using them.
* app/plug-in/gimpplugin-cleanup.[ch]: add
gimp_plug_in_cleanup_add_shadow() and _remove_shadow() which keep
track of whether shadow tiles were created on behalf of a plug-in
procedure.
(gimp_plug_in_cleanup): free shadow tiles which were created but
not destroyed by a plug-in procedure.
* app/plug-in/gimpplugin-message.c (plug_in_handle_tile_request):
call gimp_plug_in_cleanup_add_shadow() whenever a plug-in requests
shadow tiles.
* tools/pdbgen/pdb/drawable.pdb: use the new drawable shadow
API. Add new procedure gimp-drawable-free-shadow. Call
gimp_plug_in_cleaup_remove_shadow() when it gets called.
* tools/pdbgen/pdb/image.pdb: deprecate gimp-image-free-shadow.
Calling it has no effect any longer.
* app/pdb/drawable-cmds.c
* app/pdb/image-cmds.c
* app/pdb/internal-procs.c
* libgimp/gimpimage_pdb.[ch]
* libgimp/gimpdrawable_pdb.[ch]: regenerated.
svn path=/trunk/; revision=25510
2008-04-21 Sven Neumann <sven@gimp.org>
* plug-ins/common/psp.c: applied patch from Christoph Brill
which
adds enum values and typedefs used in newer versions of the PSP
file format (see bug #120757).
svn path=/trunk/; revision=25509
2008-04-21 Michael Natterer <mitch@gimp.org>
* libgimpmath/gimpmd5.c (gimp_md5_get_digest): moving a cast to
the right parameter fixes two warnings.
svn path=/trunk/; revision=25504
2008-04-20 Michael Natterer <mitch@gimp.org>
* app/core/gimpdrawable-levels.[ch]: replaced unused parameter
"context" by "progress" and pass the progress on internally.
Factor common code out to gimp_drawable_levels_internal().
* tools/pdbgen/pdb/color.pdb: pass progress instead of context.
* app/pdb/color-cmds.c: regenerated.
svn path=/trunk/; revision=25501
2008-04-19 Michael Natterer <mitch@gimp.org>
* app/core/gimpdata.c: prototype indentation and minor declatation
and function reordering for the sake of consistency.
svn path=/trunk/; revision=25499
2008-04-18 Sven Neumann <sven@gimp.org>
* app/tools/gimpblendtool.c (gimp_blend_tool_draw): don't draw
the
handles on pixel centers, we don't blend between pixel centers.
svn path=/trunk/; revision=25498
2008-04-17 Michael Natterer <mitch@gimp.org>
Add some infrastructure that will be used soon:
* app/plug-in/gimppluginprocframe.[ch]: replace "cleanup" list
by two lists "image_cleanups" and "item_cleanups" and call
gimp_plug_in_cleanup() if any of them is non-NULL.
* app/plug-in/gimpplugin-cleanup.c: add private new() and free()
functions for GimpPlugInCleanupImage structs and add the same
infrastructure for GimpPlugInCleanupItem structs which are
currently unused.
svn path=/trunk/; revision=25497
2008-04-17 Michael Natterer <mitch@gimp.org>
* configure.in: remove AC_HEADER_DIRENT, we use GDir all over the
place now.
svn path=/trunk/; revision=25495
2008-04-16 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-coords.c
(gimp_display_shell_eval_event): remove local "inertia" variable
and simply modify the passed "inertia_factor" when needed.
svn path=/trunk/; revision=25494
2008-04-16 Sven Neumann <sven@gimp.org>
* app/config/test-config.c: initialize the units vtable in
libgimpbase instead of trying to override symbols from it.
Fixes bug #528160.
svn path=/trunk/; revision=25491
2008-04-15 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-coords.c
(gimp_display_shell_eval_event): fix calculation of filter
distance, it was missing a 1 / zoom_factor. Moved variables to
local scope. Remove resundant thistime variable. Turned const
gdouble into a #define.
svn path=/trunk/; revision=25490
2008-04-14 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/gimpfu.py (_query.make_params): strip
mnemonics
from parameter names before passing them to
gimp.install_procedure().
svn path=/trunk/; revision=25489
2008-04-14 Michael Natterer <mitch@gimp.org>
* app/plug-in/gimpplugin-message.c (gimp_plug_in_handle_tile_req):
made messages about killed plug-ins due to invalid tile requests
more verbose. They are good for debugging only and not translated,
so more info can't hurt. Also fail (kill the plug-in) if a tile is
requested that lives on the undo stack.
svn path=/trunk/; revision=25487
2008-04-14 Michael Natterer <mitch@gimp.org>
* app/tools/gimppolygonselecttool.c
(gimp_polygon_select_tool_button_release): simplify and fix logic
to do the "right" thing. Hard to describe, try youself ;)
svn path=/trunk/; revision=25485
2008-04-14 Sven Neumann <sven@gimp.org>
* app/display/gimpstatusbar.c: introduced a #define for the spacing
between the icon and the statusbar label.
svn path=/trunk/; revision=25484
2008-04-14 Michael Natterer <mitch@gimp.org>
* libgimpbase/gimpmemsize.c: #undef GIMP_DISABLE_DEPRECATED so
gimp_memsize_to_string() sees its own prototype.
svn path=/trunk/; revision=25483
2008-04-14 Sven Neumann <sven@gimp.org>
* app/display/gimpstatusbar.[ch]: rewritten the code that draws
the icon in the statusbar label. The new code gives nicer
spacing.
svn path=/trunk/; revision=25481
2008-04-14 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpeg.h
* plug-ins/jpeg/jpeg-exif.c
* plug-ins/jpeg/jpeg-load.c: rotate the thumbnail according to
the
EXIF orientation as required by the updated thumbnail spec.
svn path=/trunk/; revision=25480
2008-04-14 Sven Neumann <sven@gimp.org>
* app/display/gimpstatusbar.[ch]: added stock-id parameters to
all
statusbar setters.
* app/display/gimpdisplayshell-title.c: pass NULL as stock-id.
* app/tools/gimptool.c: pass the tool icon to the statusbar.
* app/tools/gimpeditselectiontool.c
(gimp_edit_selection_tool_start):
inherit the tool-info from the parent tool.
svn path=/trunk/; revision=25477
2008-04-13 Sven Neumann <sven@gimp.org>
* app/widgets/gimpunitcombobox.c: added "label-scale" style
property.
* app/display/gimpscalecombobox.[ch]: ditto. Also removed the
support for extra action items.
* app/display/gimpstatusbar.c: changed accordingly.
* themes/Default/gtkrc
* themes/Small/gtkrc: use a smaller font for the combo-box
labels
in the statusbar.
svn path=/trunk/; revision=25475
2008-04-13 Michael Natterer <mitch@gimp.org>
* app/tools/gimpiscissorstool.c: minor cosmetics.
* cursors/gimp-tool-cursors.xcf: add the new SELECT modifier.
svn path=/trunk/; revision=25474
2008-04-12 Martin Nordholts <martinn@svn.gnome.org>
Applied modified patch from Daniel Hornung that changes the mouse
cursor to a "clicking will create a selection"-icon when hovering
the center of a pending Scissors Select Tool selection (bug #493370)
* app/tools/gimpiscissorstool.c
(gimp_iscissors_tool_cursor_update): Use the new cursor icon.
* cursors/modifier-select.png
* cursors/xbm/modifier-select.xbm
* cursors/xbm/modifier-select-mask.xbm: New cursor icon.
* cursors/makefile.msc
* cursors/Makefile.am
* app/widgets/gimpcursor.c
* app/widgets/widgets-enums.h: Changed accordingly.
svn path=/trunk/; revision=25473
2008-04-12 Martin Nordholts <martinn@svn.gnome.org>
* app/core/gimpimage-snap.c (gimp_image_snap_rectangle): Applied
patch from Mark Locascio that makes the center point of rectangles
snap (bug #527659).
svn path=/trunk/; revision=25471
2008-04-11 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimppropwidgets.c (gimp_prop_size_entry_new):
reduced spacing between entry and unit menu.
svn path=/trunk/; revision=25468
2008-04-11 Sven Neumann <sven@gimp.org>
* app/tools/gimptextoptions.c (gimp_text_options_gui): tweaked the
layout to save a few pixels.
svn path=/trunk/; revision=25467
2008-04-11 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-appearance.c
(gimp_display_shell_appearance_update): don't show the status
bar's resize grip in fullscreen mode.
svn path=/trunk/; revision=25465
2008-04-11 Michael Natterer <mitch@gimp.org>
* plug-ins/print/print-preview.c: unset the move cursor in
GtkWidget::leave_notify_event() so it always gets unset when the
pointer leaves the widget.
svn path=/trunk/; revision=25464
2008-04-10 Sven Neumann <sven@gimp.org>
* app/display/gimpstatusbar.[ch]
(gimp_statusbar_progress_message):
improved the check if the message can be shown in the statusbar.
Do not show messages that don't fit into the given space.
* app/gui/gui-message.c (gui_message_error_dialog): if there's
already an error dialog associated with a progress, then use it.
svn path=/trunk/; revision=25461
2008-04-10 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpcomponenteditor.c: implement
GimpDocked::set_context() and set the GimpViewRenderers'
contexts. Unclear how this could have been missed since it
warned badly about NULL contexts.
svn path=/trunk/; revision=25460
2008-04-10 Michael Natterer <mitch@gimp.org>
* plug-ins/pygimp/plug-ins/python-console.py
* plug-ins/script-fu/scripts/ts-helloworld.scm: fix new menu paths.
svn path=/trunk/; revision=25459
2008-04-09 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/scripts/ts-helloworld.scm
* plug-ins/script-fu/scripts/test-sphere.scm
* plug-ins/script-fu/scripts/contactsheet.scm: register in new
menu locations.
svn path=/trunk/; revision=25447
2008-04-09 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/plug-ins/benchmark-foreground-extract.py
* plug-ins/pygimp/plug-ins/python-console.py
* plug-ins/pygimp/plug-ins/sphere.py: register in new menu
locations.
svn path=/trunk/; revision=25445
2008-04-09 Sven Neumann <sven@gimp.org>
* app/plug-in/plug-in-menu-path.c (plug_in_menu_path_map):
removed
function name from debug output.
svn path=/trunk/; revision=25443
2008-04-09 Sven Neumann <sven@gimp.org>
* plug-ins/win-snap/winsnap.c
* plug-ins/common/screenshot.c
* plug-ins/script-fu/script-fu.c
* plug-ins/script-fu/scripts/*.scm: register in new menu
locations.
svn path=/trunk/; revision=25442
2008-04-09 Michael Natterer <mitch@gimp.org>
* app/plug-in/plug-in-menu-path.c (plug_in_menu_path_map): enable
and improve debug output for mapped menu paths.
svn path=/trunk/; revision=25437
2008-04-09 Sven Neumann <sven@gimp.org>
* app/widgets/gimptexteditor.c (gimp_text_editor_new): disabled
the language entry until it works.
svn path=/trunk/; revision=25432
2008-04-09 Sven Neumann <sven@gimp.org>
* app/core/core-enums.[ch] (enum GimpUndoType): better descriptions
for the GIMP_UNDO_FS_RIGOR and GIMP_UNDO_FS_RELAX undo types.
* app/core/gimplayer-floating-sel.c: corrected a comment.
svn path=/trunk/; revision=25431
2008-04-09 Michael Natterer <mitch@gimp.org>
* menus/image-menu.xml.in: add "File/New" submenu and an "Acquire"
placeholder inside it. Removed "File/Acquire". Removed the "Xtns"
menu.
* app/plug-in/plug-in-menu-path.[ch] (plug_in_menu_path_map):
add "menu_label" parameter and add support for mapping around
individual menu items while preserving their translation and
mnemonics. Add mappings for the known menus from "Xtns" and map
them to "File/New".
Map everything else in "Xtns" to "Filters/Extensions".
* app/plug-in/gimppluginmanager-menu-branch.c
(gimp_plug_in_manager_add_menu_branch): pass the menu_label so
menu branches can be mapped with their translation.
* app/plug-in/gimppluginprocedure.c
(gimp_plug_in_procedure_add_menu_path): pass NULL because mapping
menu items which have no submenu makes no sense and is redundant.
* app/actions/image-actions.c: remove the "Xtns" menu action.
* app/actions/file-actions.c: add action for the "File/New" menu
and removed the "File/Acquire" action.
* app/actions/edit-actions.c: rename "Paste as New" to
"From Clipboard".
* menus/image-menu.xml.in: add the "From Clipboard" action to the
"File/New" menu.
svn path=/trunk/; revision=25427
2008-04-09 Sven Neumann <sven@gimp.org>
* app/core/gimpcontainer.[ch]: added new methods
gimp_container_get_{first,last}_child().
* app/actions/file-actions.c (file_actions_close_all_update)
* app/dialogs/layer-add-mask-dialog.c (layer_add_mask_dialog_new)
* app/dialogs/palette-import-dialog.c (palette_import_image_callback)
* app/gui/gui-vtable.c (gui_get_empty_display):
* app/widgets/gimpmenudock.c (gimp_menu_dock_image_changed): use
the new GimpContainer methods.
* app/core/gimpundostack.c: use the new GimpContainer methods and
cleaned up the code.
svn path=/trunk/; revision=25426
2008-04-09 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/scripts/Makefile.am
* plug-ins/script-fu/scripts/sphere.scm: removed Sphere
script. It's a nice simple example but it has no real value.
* plug-ins/script-fu/script-fu.c (script_fu_extension_init):
removed "<Toolbox>/Xtns/Misc".
svn path=/trunk/; revision=25424
2008-04-09 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/script-fu-scripts.c (script_fu_add_script):
marked a message for translation. Declare 'val' as const and use
an extra variable where a not const variable is needed.
svn path=/trunk/; revision=25423
2008-04-09 Sven Neumann <sven@gimp.org>
* menus/image-menu.xml.in: moved Languages to the bottom. Removed
separator from the Filters list as there was really no rule as to
what goes above and what goes below.
* app/actions/plug-in-actions.c: added Filters->Decor submenu.
* plug-ins/script-fu/script-fu.c (script_fu_extension_init):
removed registration of redundant menu branches.
svn path=/trunk/; revision=25422
2008-04-08 Michael Natterer <mitch@gimp.org>
* menus/image-menu.xml.in: add placeholder "Help/Programming"
* plug-ins/common/plugin-browser.c
* plug-ins/common/procedure-browser.c: move the plug-in and
procedure browsers there.
* menus/image-menu.xml.in: moved the (now by default empty)
"Extensions" placeholder from "Xtns" to "Filters". Let's see what
cruft shows up there.
* app/plug-in/plug-in-menu-path.c: map "Xtns/Extensions" to
"Filters/Extensions".
svn path=/trunk/; revision=25415
2008-04-08 Michael Natterer <mitch@gimp.org>
Start getting rid of the "Xtns" menu:
* app/actions/dialogs-actions.c (dialogs_toplevel_actions):
renamed "Module Manager" to "Modules".
* menus/image-menu.xml.in: move it to "Edit/Preferences" for the
time being so it doesn't block the removal of the "Xtns" menu.
Move "Languages" placeholder from "Xtns" to "Filters".
* app/plug-in/plug-in-menu-path.c (menu_path_mappings): map
"Xtns/Languages" to "Filters/Languages".
svn path=/trunk/; revision=25414
2008-04-08 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpdialogfactory.c
(gimp_dialog_factory_set_user_pos): set GDK_HINT_MIN_SIZE on
dialogs which had no previous sessionrc entry. Fixes the minimum
size of the very first empty display of a new GIMP installation
and shouldn't have any ill effects on other windows.
svn path=/trunk/; revision=25409
2008-04-07 Sven Neumann <sven@gimp.org>
* app/tools/gimprectangletool.[ch]:
* app/tools/gimptexttool.c removed out 'force-narrow' mode as it
is hard to use and just looks broken.
svn path=/trunk/; revision=25399
* app/tools/gimprectangletool.[ch]: add "force_narrow"
parameter.
* app/tools/gimptexttool.c: Force rectangle to always
be narrow, and squash a few bugs.
svn path=/trunk/; revision=25397
2008-04-07 Sven Neumann <sven@gimp.org>
* plug-ins/common/compose.c: use gimp_drawable_is_valid() to check
if a drawable ID is valid.
svn path=/trunk/; revision=25394
2008-04-07 Sven Neumann <sven@gimp.org>
* app/actions/templates-actions.c
* app/actions/templates-commands.c: when creating an image from a
template, skip the New Image dialog as suggested in bug #480802.
svn path=/trunk/; revision=25391
2008-04-07 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplay-handlers.c (gimp_display_saved_handler):
use gimp_statusbar_push_temp() directly instead of going through
gimp_message(). Use the GTK_STOCK_SAVE icon for the statusbar
message.
svn path=/trunk/; revision=25388
2008-04-07 Sven Neumann <sven@gimp.org>
* plug-ins/print/print.[ch]: set the number of pages to one before
showing the dialog. Not that it would make a difference, but it
could...
svn path=/trunk/; revision=25387
2008-04-07 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/procedural_db.pdb (procedural_db_proc_exists):
canonicalize the procedure name and also try compat names.
* app/pdb/procedural-db-cmds.c: regenerated.
svn path=/trunk/; revision=25386
2008-04-06 Sven Neumann <sven@gimp.org>
* plug-ins/print/print.c (page_setup): do a query for the
temporary procedure installed by the 'file-print-gtk' procedure.
Temporary solution until bug #344818 has been addressed.
svn path=/trunk/; revision=25383
2008-04-05 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplay.[ch]: added new function
gimp_display_close() which decides if gimp_display_delete() or
gimp_display_empty() needs to be called.
* app/display/gimpdisplay-foreach.[ch]: added new function
gimp_displays_close() and removed the 'do_quit' parameter from
gimp_displays_delete().
* app/gui/gui.c (gui_exit_callback): changed accordingly.
* app/display/gimpdisplayshell-close.c: removed
gimp_display_shell_really_close() and call gimp_display_close()
instead.
* app/display/gimpdisplayshell.c (gimp_display_shell_empty):
moved
code to update the ui managers here.
* app/actions/file-commands.c (file_save_cmd_callback)
(file_close_cmd_callback)
* app/dialogs/file-save-dialog.c (file_save_dialog_response)
* app/dialogs/quit-dialog.c (quit_close_all_dialog_response):
close displays instead of deleting them.
* app/gui/gui-vtable.c (gui_display_delete): call
gimp_display_close().
svn path=/trunk/; revision=25377
2008-04-04 Sven Neumann <sven@gimp.org>
* app/core/gimpselection.c (gimp_selection_float): clear the
selection as gimp_selection_extract() doesn't do this for us any
longer (see bug #510534).
svn path=/trunk/; revision=25366
2008-04-04 Sven Neumann <sven@gimp.org>
* plug-ins/psd/psd-load.c: marked string for translation (the same
string exists in the TIFF loader already).
svn path=/trunk/; revision=25364
2008-04-04 Sven Neumann <sven@gimp.org>
* app/pdb/gimppdb-utils.[ch]: added test for floating items.
* tools/pdbgen/pdb/image.pdb: use it to improve error handling.
* app/pdb/image_cmds.c: regenerated.
svn path=/trunk/; revision=25356
2008-04-04 Sven Neumann <sven@gimp.org>
* app/pdb/gimppdb-utils.[ch]: added utility functions to check
the
image base type.
* tools/pdbgen/pdb/convert.pdb: use it so that we get a proper
error set on failure.
* app/pdb/convert_cmds.c: regenerated.
svn path=/trunk/; revision=25354
2008-04-03 Michael Natterer <mitch@gimp.org>
* app/pdb/gimppdb-utils.c
* tools/pdbgen/pdb/text_layer.pdb: GIMP_PDB_CALLING_ERROR and
GIMP_PDB_EXECUTION_ERROR are not from the GimpPdbErrorCode
enum. Use GIMP_PDB_INVALID_ARGUMENT instead.
* app/pdb/text_layer_cmds.c: regenerated.
svn path=/trunk/; revision=25351
2008-04-03 Michael Natterer <mitch@gimp.org>
* 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=/trunk/; revision=25348
* app/text/gimptextlayout.c
* app/tools/gimptexttool.[ch]
* app/tools/gimprectangletool.[ch]
* app/tools/gimptextoptions.c: allow resizing of text
box. This is work in progress, and needs some tweaks
and fixes. See bug #122707.
svn path=/trunk/; revision=25344
2008-04-02 Sven Neumann <sven@gimp.org>
* tools/pdbgen/Makefile.am
* tools/pdbgen/pdb/text_layer.pdb: new text layer PDB API
created
by Marcus Heese (see bug #164539).
* app/pdb/Makefile.am
* app/pdb/text_layer_cmds.c: new generated file.
* libgimp/Makefile.am
* libgimp/gimptextlayer_pdb.[ch]: new generated files.
* app/pdb/internal_procs.[ch]
* libgimp/gimp_pdb.h
* tools/pdbgen/groups.pl: regenerated.
svn path=/trunk/; revision=25342
2008-04-02 Sven Neumann <sven@gimp.org>
* tools/pdbgen/app.pl: special treatment for gimppdberror.h to
get
a saner include order.
* app/pdb/floating_sel_cmds.c
* app/pdb/image_cmds.c: regenerated.
svn path=/trunk/; revision=25341
2008-04-02 Sven Neumann <sven@gimp.org>
* tools/pdbgen/stddefs.pdb: added shortcut for contributions
from
Marcus Heese.
* tools/pdbgen/pdb/drawable.pdb: added
gimp_drawable_is_text_layer(),
taken from the patch attached to bug #164539.
* app/pdb/internal_procs.c
* app/pdb/drawable_cmds.c
* libgimp/gimpdrawable_pdb.[ch]: regenerated.
* libgimp/gimp.def: updated.
svn path=/trunk/; revision=25337
2008-04-02 Sven Neumann <sven@gimp.org>
* app/tools/gimpperspectiveclonetool.c: removed frame around the
mode radio buttons (bug #525747).
* app/tools/gimpdodgeburntool.c: relabelled "Mode" frame to
"Range".
svn path=/trunk/; revision=25336
2008-04-02 Sven Neumann <sven@gimp.org>
* plug-ins/help/gimp-help-lookup.c: fixed typos in descriptions of
the command-line options.
svn path=/trunk/; revision=25334
2008-04-02 Sven Neumann <sven@gimp.org>
* app/actions/file-actions.c: don't set a help-id on items in the
Open Recent menu.
* app/menus/file-menu.c (file_menu_setup): show a larger thumbnail
in the tooltips for recently used images.
svn path=/trunk/; revision=25332
2008-04-02 Sven Neumann <sven@gimp.org>
* plug-ins/help/Makefile.am
* plug-ins/help/gimphelpdomain.[ch]
* plug-ins/help/gimphelplocale.[ch]
* plug-ins/help/gimphelp.[ch]
* plug-ins/help/gimp-help-lookup.c: use GIO to access the help index.
svn path=/trunk/; revision=25331
2008-04-01 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-title.c
(gimp_display_shell_update_title_idle): no need to translate the
empty string.
svn path=/trunk/; revision=25328
2008-03-31 Sven Neumann <sven@gimp.org>
* app/text/text-enums.[ch]
* libgimpbase/gimpbaseenums.[ch]: as a first step towards a new
text PDB API, moved GimpTextDirection and GimpTextJustification
enums to libgimpbase.
* libgimpbase/gimpbase.def: updated.
svn path=/trunk/; revision=25325
2008-03-31 Michael Natterer <mitch@gimp.org>
* plug-ins/maze/*: renamed most files and added proper headers
instead of duplicating the prototypes in each .c file that uses
them. Indentation, spacing, formatting, some general cleanup.
svn path=/trunk/; revision=25324
2008-03-31 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpbrusheditor.c (gimp_brush_editor_notify_brush):
Add missing code for the "spacing" property. Spotted by Jerry Baker.
svn path=/trunk/; revision=25323
2008-03-30 Martin Nordholts <martinn@svn.gnome.org>
* 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=/trunk/; revision=25320
2008-03-30 Sven Neumann <sven@gimp.org>
* app/core/gimparea.c (gimp_area_list_free): don't leak the
memory
allocated for the GSList.
svn path=/trunk/; revision=25317
2008-03-30 Sven Neumann <sven@gimp.org>
* app/widgets/gimpcontainertreeview.c: added a finalizer that
frees
the memory allocated for the cell lists.
svn path=/trunk/; revision=25316
2008-03-30 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell.c
(gimp_display_shell_scale_changed):
never set the dest_inc and src_dec variables to zero.
svn path=/trunk/; revision=25313
2008-03-30 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-cursor.[ch]: added new function
gimp_display_shell_unset_cursor().
(gimp_display_shell_real_set_cursor): deal with cursor_type -1
and
change the cursor to the default desktop cursor. Fixes warnings
on
image load.
* app/display/gimpdisplayshell.c (gimp_display_shell_empty):
use gimp_display_shell_unset_cursor().
svn path=/trunk/; revision=25312
2008-03-29 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpmenudock.c (gimp_menu_dock_auto_clicked): when
the "Auto" button gets enabled, always copy both display and image
to the local context (because there can be displays without image
now).
svn path=/trunk/; revision=25306
2008-03-29 Michael Natterer <mitch@gimp.org>
* app/gui/gui-vtable.c (gui_display_create): remove temporary
"object" variable, it's prefectly fine to say GIMP_DISPLAY() on a
NULL pointer.
svn path=/trunk/; revision=25305
2008-03-29 Sven Neumann <sven@gimp.org>
* libgimpmath/gimpmd5.[ch]: removed implementation of the MD5
algorithm and delegate to GChecksum instead.
* libgimpmath/Makefile.am
* libgimpmath/test-md5.c: removed test of the MD5
implementation.
svn path=/trunk/; revision=25302
2008-03-29 Mukund Sivaraman <muks@mukund.org>
* app/core/gimpdrawable-operation.c: Use #warning only if
compiler is gcc.
svn path=/trunk/; revision=25297
2008-03-28 Mukund Sivaraman <muks@mukund.org>
Fixes for some Sparse reported issues in app, libgimp*/
* app/gui/gui-vtable.c: Included <gdk/gdkx.h>
* libgimp/gimpprocview.c: author, date, copyright are pointers.
* libgimpwidgets/gimpcolorprofilestore.c: Last argument of
g_scanner_scope_add_symbol() is a pointer.
svn path=/trunk/; revision=25293
2008-03-28 Mukund Sivaraman <muks@mukund.org>
Fixes for some Sparse reported issues in app/
* app/core/gimpdrawable-operation.c: Added prototype for
gegl_node_add_child().
* app/core/gimpcurve.c: Remove C99 code
* app/tools/gimpcurvestool.c
* app/tools/gimpperspectiveclonetool.c
* app/vectors/gimpstroke.c: Mark functions as static.
* app/base/siox.c: state is a pointer.
* app/plug-in/gimppluginprocframe.c: values is a pointer.
* app/plug-in/plug-in-rc.c: plug_in_rc_parse() returns a pointer.
* app/plug-in/gimpinterpreterdb.c: Check program[0] for '\0'
instead of the pointer program itself.
svn path=/trunk/; revision=25292
2008-03-28 Mukund Sivaraman <muks@mukund.org>
* plug-ins/common/png.c: Fixed a bug where a pointer to a gint
is passed to a function which expects gsize, which can cause
out of bounds access.
svn path=/trunk/; revision=25291
2008-03-28 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/scripts/guides-from-selection.scm
* plug-ins/script-fu/scripts/guides-new-percent.scm
* plug-ins/script-fu/scripts/guides-new.scm
* plug-ins/script-fu/scripts/guides-remove-all.scm: use "*" as
image type (not "") so the menu item is disabled when there is no
image.
svn path=/trunk/; revision=25289
2008-03-28 Sven Neumann <sven@gimp.org>
* libgimpthumb/gimpthumb-utils.c (gimp_thumb_png_name): use
GCheckSum instead of the MD5 routine from libgimpmath.
* gimpthumb.pc.in
* libgimpthumb/Makefile.am: removed libgimpmath dependency from
libgimpthumb.
svn path=/trunk/; revision=25287
2008-03-28 Sven Neumann <sven@gimp.org>
* configure.in: put GIO check back in as we need it to initialize
GIO_CFLAGS and GIO_LIBS. Renamed --without-gio to --without-gvfs.
* INSTALL: changed accordingly.
* plug-ins/uri/Makefile.am
* plug-ins/uri/uri-backend-gio.c
* plug-ins/uri/uri-backend-gvfs.c: renamed the gio backend to gvfs.
svn path=/trunk/; revision=25284
2008-03-28 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/scripts/line-nova.scm (script-fu-line-nova):
move the call to gimp-selection-save inside the undo group.
(script-fu-register): use "*" as image type (not "") so the menu
item is disabled when there is no image.
svn path=/trunk/; revision=25276
2008-03-28 Michael Natterer <mitch@gimp.org>
* configure.in: require glib >= 2.16.1. Don't warn about
deprecations for glib >= 2.19.0 and gtk+ >= 2.15.0. Remove check
for GIO but keep the --without-gio option for the URI plugin.
svn path=/trunk/; revision=25275
2008-03-28 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimphelpui.c: show a custom tooltip for menu
items and inform the user the she can get more help by pressing F1.
svn path=/trunk/; revision=25273
2008-03-28 Sven Neumann <sven@gimp.org>
* app/dialogs/tips-parser.[ch]
* app/dialogs/tips-dialog.c: improved the creation of fallback
tips in case of an error parsing the tips file.
(tips_dialog_create): simplified dialog layout.
* app/dialogs/preferences-dialog.c: removed the check button for
the "show-tips" option.
svn path=/trunk/; revision=25270
2008-03-27 Sven Neumann <sven@gimp.org>
* plug-ins/common/pnm.c (load_image): changed message to say
"Unsupported maximum value" instead of "Invalid maximum value"
as suggested in bug #149723.
svn path=/trunk/; revision=25268
2008-03-27 Sven Neumann <sven@gimp.org>
* data/tips/gimp-tips.dtd
* data/tips/gimp-tips.xml.in: simplified the gimp-tips XML
format
as we do not any longer need a special welcome tip.
* app/dialogs/tips-dialog.c
* app/dialogs/tips-parser.[ch]: changed accordingly.
svn path=/trunk/; revision=25267
2008-03-27 Sven Neumann <sven@gimp.org>
Preparing for a revamp of the "Tip of the Day" feature:
* app/config/gimpguiconfig.[ch]: removed "show-tips" property.
* app/gui/gui.[ch]: removed gui_post_init() as it's only purpose
was
to show the tips dialog.
* app/app.c: changed accordingly.
* app/dialogs/tips-dialog.c: removed some stuff that we are not
going to need any longer.
svn path=/trunk/; revision=25265
2008-03-27 Sven Neumann <sven@gimp.org>
Properly pass the focus from the core to plug-in dialogs:
* libgimpbase/gimpprotocol.[ch]: added a user_time member to the
GimpConfig struct. Bumped the protocol version to 0x0012.
* app/core/gimp-gui.[ch]
* app/gui/gui-vtable.c: added gimp_get_user_time() to get the
timestamp of the last user interaction.
* app/plug-in/gimppluginmanager-call.c
(gimp_plug_in_manager_call_run): pass the timestamp to in the
GimpConfig message.
* libgimp/gimp.[ch]:
* libgimp/gimp.def: added method to access the timestamp as set
in the config message.
* libgimp/gimpui.c (gimp_ui_init): construct a fake startup ID and
set the DESKTOP_STARTUP_ID environment variable.
svn path=/trunk/; revision=25263
2008-03-27 Sven Neumann <sven@gimp.org>
* app/widgets/gimpdockable.c (gimp_dockable_detach): open the new
dock window at the mouse pointer position.
svn path=/trunk/; revision=25262
2008-03-27 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-dnd.c
(gimp_display_shell_drop_uri_list): don't flush if there's no image.
(gimp_display_shell_dnd_flush): use gtk_window_present() instead of
gdk_window_focus().
svn path=/trunk/; revision=25261
2008-03-27 Sven Neumann <sven@gimp.org>
* app/display/gimpstatusbar.c: use a button with icon for the
progress cancel button.
svn path=/trunk/; revision=25260
2008-03-27 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell.c (gimp_display_shell_style_set):
added an arbitrary number to the minimum height.
svn path=/trunk/; revision=25259
2008-03-27 Sven Neumann <sven@gimp.org>
* app/display/gimpstatusbar.c: make sure that the statusbar frame
requests enough space to hold it's children, also the invisible ones.
* app/display/gimpdisplayshell.c (gimp_display_shell_style_set):
don't add 1 pixel here, this spacing is gone.
svn path=/trunk/; revision=25258
2008-03-27 Sven Neumann <sven@gimp.org>
* app/display/gimpstatusbar.[ch]: derive GimpStatusbar from
GtkStatusbar. Use the normal statusbar label for statusbar
messages and only show the progressbar when progress is active.
* app/display/gimpdisplayshell.c (gimp_display_shell_new): removed
spacing from the main vertical box.
svn path=/trunk/; revision=25257
2008-03-27 Mukund Sivaraman <muks@mukund.org>
* plug-ins/common/dicom.c: Validated samples_per_pixel, changed
the loop counter data type, and patched code to work on big endian
CPUs.
svn path=/trunk/; revision=25255
2008-03-27 Sven Neumann <sven@gimp.org>
* app/gui/gui.c (gui_init): disable automatic startup
notification.
(gui_restore_after_callback): notify the display enviroment that
the application has finished loading.
* app/gui/splash.c: no need to deal with startup notification
here
any longer.
svn path=/trunk/; revision=25254
2008-03-26 Mukund Sivaraman <muks@mukund.org>
* plug-ins/common/dicom.c: Forget about negative values in signed
data and scale positive values appropriately. Also fixed signed
values in the 8 bpp case, and added some comments.
svn path=/trunk/; revision=25253
2008-03-26 Mukund Sivaraman <muks@mukund.org>
* plug-ins/common/dicom.c: made the dicom plug-in a bit better.
1. Parse the default little-endian encoding correctly.
2. Handle signed pixel data.
3. Support "bits stored" and "high bit" meta data fields.
4. Throw away the bogus "max" value based metering.
svn path=/trunk/; revision=25252
2008-03-26 Michael Natterer <mitch@gimp.org>
* app/widgets/gimptoolbox.[ch]: store the toolbox area's vbox in
the widget struct.
* app/widgets/gimptoolbox-dnd.c (gimp_toolbox_dnd_init): use it as
DND target instead of the wbox with the tool buttons.
svn path=/trunk/; revision=25250