2002-09-27 Michael Natterer <mitch@gimp.org>
* app/tools/gimpmagnifytool.c (gimp_magnify_tool_init): set the
toggle_cursor to GIMP_ZOOM_CURSOR, not the tool_cursor.
2002-09-26 Michael Natterer <mitch@gimp.org>
Made F1 help work again:
* libgimpwidgets/gimphelpui.c: add the "F1" binding entries to the
correct class, use GtkWidget's "show_help" signal correctly,
cleanup, replaced deprecated stuff (obviously this file was
make-it-compile ported in the first place :)
* plug-ins/helpbrowser/helpbrowser.c: close the HtmlStream when
there is no more data to read (avoids implicit calling of the
stream's cancel function which fails because we didn't set it).
Minor cleanup.
2002-09-25 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpitemfactory.[ch] (gimp_item_factory_create_item):
added a "const gchar *textdomain" parameter so
g_object_[set|get]_data() hacks needed for translation are private
stuff of GimpItemFactory. Use more qdata instead of just data,
minor cleanup.
* app/gui/plug-in-menus.c: pass the textdomain as paramater
instead of g_object_setting it on the item_factory.
* app/gui/file-open-dialog.c
* app/gui/file-save-dialog.c
* app/gui/menus.c: pass NULL as textdomain.
2002-09-21 Sven Neumann <sven@gimp.org>
* app/config/gimpconfig-params.h: fixed some macros that were never used.
* data/images/gimp_splash.png: flattened the splash image. The alpha channel
crashed servers with buggy XRender extension (#93841) (and should have never
been there anyway).
2002-09-18 Manish Singh <yosh@gimp.org>
* configure.in: use X_CFLAGS when checking for Xmu headers too
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: slight tweak to mitch's change
to have default parameters for the common case
2002-09-18 Sven Neumann <sven@gimp.org>
* configure.in: use X_CFLAGS when checking for xpm.h.
* plug-ins/common/Makefile.am
* plug-ins/common/mkgen.pl: added X_CFLAGS here as well so that
xpm compiles even if GTK_CFLAGS doesn't pull in the X11 include
path for us. Should fix#93518 and hopefully won't break it for
other people.
2002-09-17 Sven Neumann <sven@gimp.org>
* app/widgets/gimpviewabledialog.c: use PangoAttributes instead of
PangoMarkup.
* app/gui/preferences-dialog.c: adapt to the look of the
GimpViewableDialog.
2002-09-17 Sven Neumann <sven@gimp.org>
* app/gui/file-new-dialog.c
* app/gui/preferences-dialog.c
* app/gui/resize-dialog.c
* app/tools/gimpimagemaptool.c
* app/widgets/gimpfontselection-dialog.c: place the Cancel button
next to the confirmative button as suggested by the HIG.
2002-09-12 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpdocumentview.[ch]
* app/gui/documents-commands.[ch]
* app/gui/menus.c: changed icon/variables/functions to say
"Remove" instead of "Delete" because "Delete" is misleading (we
don't delete the file but just remove the entry from the document
history).
2002-09-11 Michael Natterer <mitch@gimp.org>
* plug-ins/common/curve_bend.c: applied a patch from Guillermo
S. Romero which cleans up the GUI even more. Changed it a bit to
behave nicely on window resizing.
2002-09-10 Michael Natterer <mitch@gimp.org>
Some PDB cleanup:
* tools/pdbgen/pdb/procedural_db.pdb: removed the get_data() and
set_data() implementations and the global "data_list" variable.
Cleaned up the dump() stuff (pass the FILE pointer around instead
of having a global variable for it). Fixed output_string() so it
does not crash on NULL strings.
* app/core/gimp.[ch]: added gimp->procedural_db_data_list.
* app/pdb/procedural_db.[ch]: added procedural_db_[set|get]_data().
Don't leak data identifiers when overwriting an already existing
entry. Added g_return_if_fail() stuff to all public functions.
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/drawable.pdb
* tools/pdbgen/pdb/layer.pdb
* tools/pdbgen/pdb/parasite.pdb: tweaked some helper functions to
take parameters which make them aware of the real type of the
objects they handle (e.g. the PDB function gimp_layer_set_name()
matches the core function gimp_object_get_name()).
* app/pdb/pdb_glue.h: removed ugly CPP-level workarounds for the
issue mentioned above.
* app/pdb/channel_cmds.c
* app/pdb/drawable_cmds.c
* app/pdb/layer_cmds.c
* app/pdb/parasite_cmds.c
* app/pdb/procedural_db_cmds.c: regenerated.
2002-09-10 Dave Neary <bolsh@gimp.org>
* plug-ins/common/png.c: Handle INDEXA images if the
indexed palette is full by looking for an unused colour.
Fixes bug #55700.
2002-09-09 Jakub Steiner <jimmac@ximian.com>
* themes/Default/images/stock-grow-16.png:
* themes/Default/images/stock-shrink-16.png: make the icons less
crowded
2002-09-08 Michael Natterer <mitch@gimp.org>
* app/widgets/gimplayerlistview.c
* app/gui/channels-commands.c: some more auto-sizing spinbuttons.
* app/gui/offset-dialog.c: added mnemonics for "X" and "Y".
Dialog auto-hide cleanup:
* app/widgets/gimpviewabledialog.c: close the dialog when the
GimpViewable goes away (special cased GimpItems which become
invisible on "removed"). Close the dialog by syntesizing a
"delete_event" instead of simply hiding or destroying it so the
closing method of the dialog's user gets invoked.
* app/gui/resize-dialog.[ch]: don't do the same here. Simplifies
the API even more as we don't have to pass the object to watch any
more.
* app/gui/image-commands.c
* app/gui/layers-commands.c: changed accordingly.
* app/undo_history.c
* app/gui/convert-dialog.c
* app/gui/qmask-commands.c
* app/gui/vectors-commands.c: removed all dialog auto-hiding which
is now done by GimpViewableDialog. Also connect more close
callbacks to gtk_widget_destroy() and handle shell destruction
accordingly, so these pseudo widgets behave more like real ones.
Tool-dialog auto-hide fix:
* app/tools/tool_manager.c: never call a tool's initialize()
method with a NULL gdisp (I can't follow why we did this before
because it's conceptually broken and makes the semantics of
initialize() more than unclear).
To be sure, added g_return_if_fail(GIMP_IS_DISPLAY(gdisp)) to
tool_manager_initialize_active().
* app/tools/gimpbrightnesscontrasttool.c
* app/tools/gimpcolorbalancetool.c
* app/tools/gimpcurvestool.c
* app/tools/gimphistogramtool.c
* app/tools/gimphuesaturationtool.c
* app/tools/gimpimagemaptool.c
* app/tools/gimplevelstool.c
* app/tools/gimpposterizetool.c
* app/tools/gimpthresholdtool.c: removed the recently added code
for handling NULL displays in initialize().
2002-09-08 Michael Natterer <mitch@gimp.org>
* app/core/gimpimage.c (gimp_image_get_colormap): return
gimage->cmap directly instead of calling
gimp_drawable_cmap(active_drawable) without checking if there
actually is an active_drawable.
* tools/pdbgen/pdb/image.pdb (image_get_cmap): use g_memdup()
instead of g_new() followed by memcpy().
* app/pdb/image_cmds.c: regenerated.
2002-09-08 Michael Natterer <mitch@gimp.org>
* app/gui/color-notebook.[ch]: set the hex entry to 7 chars instead
the whole width of the vbox. Added color_notebook_set_title().
* app/widgets/gimptoolbox-color-area.c: use the new function to
set the color selection's title to either "Change Foreground
Color" or "Change Background Color" instead of just "Color
Selection".
2002-09-07 Michael Natterer <mitch@gimp.org>
Histogram cleanup:
* app/base/gimphistogram.c: Added g_return_if_fail() to all public
functions, reordered stuff, cleanup (no logic changed).
* app/widgets/Makefile.am
* app/widgets/widgets-types.h
* app/widgets/gimphistogrambox.[ch]: new widget containing a
GimpHistogramView and two range spinbuttons (as known from the
threshold tool). Users only need to connect to the histogram
view's "range_changed" signal. The spinbuttons are handled
internally.
* app/widgets/gimphistogramview.[ch]: define it's default size in
the header. Make sure "start" is always smaller than "end". Emit
"range_changed" in gimp_histogram_view_set_range().
* app/tools/gimplevelstool.c: changed accordingly.
* app/tools/gimpthresholdtool.[ch]: removed the code which
did the same and use the new widget.
* app/tools/gimphistogramtool.[ch]: ditto. Removed the "intensity"
info label. Cleanup.
2002-09-07 Michael Natterer <mitch@gimp.org>
* app/gui/file-new-dialog.c
* app/gui/offset-dialog.c
* app/gui/preferences-dialog.c
* app/gui/resolution-calibrate-dialog.c
* app/gui/user-install-dialog.c: replaced some more pixel sizes by
char sizes. Tweaked table spacings. Mnemonics.
* app/gui/info-dialog.[ch]: internal cleanup.
* app/gui/resize-dialog.[ch]: same here. Removed the "cancel_cb"
from the API and simply destroy the dialog on "Cancel". Makes the
dialog construction less weird.
* app/gui/image-commands.c
* app/gui/layers-commands.c: changed accordingly. Same cleanups
as above.
2002-09-06 Hans Breuer <hans@breuer.org>
* */*/makefile.msc : updated
* libgimptool/makefile.msc : new file, libgimptool
is currently build as static lib due to references
into app/core
* themes/Default/makefile.msc : removed
* themes/Default/images/makefile.msc : new file
* libgimpwidgets/makefile.msc libgimpwidgets/gimpwidgets.c
updated (externals)
* app/paint-funcs.c : replaced gccism varibale size array on
stack with portable alloca, removed sizeof(buf) check which
must fail now.
* app/config/gimpconfig.c : get write/close protos
on win32 from io.h
* app/config/gimprc.c : dito and <string.h>
* app/config/gimpscanner.c : <string.h> only
* app/core/gimpcontainer.c : workaround for clumsy
compilers not supporting vararg macros
* app/core/gimpdocumentlist.c app/core/gimpparasitelist.c
include <io.h> on win32
* app/widgets/gimpdocumentview.c
app/widgets/gimpimagedock.c
app/widgets/gimppreview.c : add #ifdef __GNUC__
to avoid breaking on non standard pragma #warning.
* app/gui/session.c : include <string.h>
* regexrepl/makefile.msc : build as dll
* plug-ins/makefile.msc : updated
* plug-ins/common/pix.c : open file binary
* plug-ins/common/spheredesigner.c : avoid error
'incompatible types' while assigning, use memcpy()
2002-09-05 Manish Singh <yosh@gimp.org>
* acinclude.m4: emptied
* autogen.sh: support for automake version special casing, error
out on aclocal failure.
* m4compat/1.4/pysupport.m4
* m4compat/1.6/pysupport.m4
* configure.in
* plug-ins/Makefile.am: pygimp autoconf support, just to get it
some testing. We'll figure out policy later.
2002-09-05 Michael Natterer <mitch@gimp.org>
* app/core/gimpdrawable-bucket-fill.c: put the call to
gimp_drawable_mask_bounds() back because we always need the region
to apply the fill (fixes non-seed-fill fills). Also take
"sample_merged" into account when intersecting the resulting mask
with the image's selection.
Fixed unrelated bug:
* app/core/gimpimage-contiguous-region.c: need to use
gimp_image_projection_bytes(), not drawable->bytes if
"sample_marged" is TRUE.
2002-09-04 Dave Neary <bolsh@gimp.org>
* app/core/gimpdrawable-bucket-fill.c: Small patch to
modify the behaviour of the bucket fill tool if there
is an active selection. Question: Should the bucket fill
only work if clicked inside the selection? Currently a
click anywhere works, and stuff gets drawn if the region
intersects the selection. This patch closes bug #72896.
2002-09-04 Michael Natterer <mitch@gimp.org>
More color correction stuff cleanup:
* app/base/Makefile.am
* app/base/base-types.h
* app/base/levels.[ch]: new files containing levels_lut_func(), a
new "Levels" parameter struct and the "auto levels" stuff.
* app/base/lut-funcs.[ch]: removed the levels stuff here, added
lots of g_return_if_fail().
* app/base/color-balance.[ch]
* app/base/hue-saturation.[ch]: added init() and reset() functions
so we don't need to duplicate this code in the tool and the pdb
wrappers.
* app/base/curves.[ch]: s/gint/GimpHistogramChannel/g, made
curves_channel_reset() initialize the curves array.
* app/tools/gimpcolorbalancetool.[ch]: use the new functions,
moved the "Range" frame to the top, added a per-range "Reset"
button, made the global "Reset" button reset all ranges and
the "Preserve Luminosity" toggle.
* app/tools/gimpcurvestool.[ch]: don't initialize the curves
array manually, as curves_channel_reset() does that,
s/gint/GimpHistogramChannel/g.
* app/tools/gimphuesaturationtool.c: use the new functions, added
a per-channel "Reset" button and made the global "Reset" button
reset all channels, cleaned up the GUI update function.
* app/tools/gimplevelstool.[ch]: changed to use the new Levels
parameter struct and it's utility functions. Removed stuff
which now lives in base/levels.c
* app/tools/gimpimagemaptool.c: align the "Preview" button
bottom-left, not bottom-right.
* tools/pdbgen/pdb/color.pdb: use the new stuff and removed
uglyness because using the "Levels" struct makes the code more
straightforward.
* app/pdb/color_cmds.c: regenerated.