2002-10-20 Michael Natterer <mitch@gimp.org>
* app/core/gimpmoduleinfo.[ch]
* libgimp/gimpmodule.h: separated module query from type
registration by adding a separate "gimp_module_query" function
which must be implemented by modules. Make local copies of the
strings returned by the query function.
* app/core/gimpmodules.c
* app/gui/module-browser.c: changed accordingly.
* modules/cdisplay_gamma.c
* modules/cdisplay_highcontrast.c
* modules/colorsel_triangle.c
* modules/colorsel_water.c: added the gimp_module_query() functions.
2002-10-20 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-filter.[ch]: removed the
ColorDisplayNode struct entirely. GimpDisplayShell->filters is now
just a GList of GimpColorDisplay objects.
* app/display/gimpdisplayshell-filter-dialog.c
* app/display/gimpdisplayshell-render.c: changed accordingly.
2002-10-20 Michael Natterer <mitch@gimp.org>
Ported module loading to GTypeModule, getting rid of all own
module registering/bookkeeping stuff for color selectors and
display filters. The modules now simply register GimpColorSelector
and GimpColorDisplay subclasses, the list of registered subclasses
can then be obtained calling g_type_children() on the abstract
base classes.
This is work in progress and just the first working state after I
started breaking everything...
* app/gui/color-select.[ch]
* libgimp/gimpcolordisplay.h
* libgimp/gimpcolorselector.h: removed.
* app/gui/Makefile.am
* libgimp/Makefile.am: changed accordingly.
* libgimp/gimpmodule.h: massively simplified. All voodoo is gone.
* libgimpwidgets/gimpcolordisplay.[ch]
* libgimpwidgets/gimpcolorselector.[ch]: new abstract base classes
which need to be subclassed by modules.
* libgimpwidgets/gimpcolorselect.[ch]: the built-in color selector
from app/gui/color-select.* ported to be a GimpColorSelector
subclass.
* libgimpwidgets/Makefile.am
* libgimpwidgets/gimpwidgets.h
* libgimpwidgets/gimpwidgetsmarshal.list
* libgimpwidgets/gimpwidgetstypes.h: changed accordingly.
* app/core/gimpmoduleinfo.[ch]: made it a GTypeModule subclass
* app/core/gimpmodules.c: changed accordingly.
* app/core/gimpcontainer.c
* app/core/gimplist.c: HACKED around to allow GimpLists of
GObjects (not GimpObjects). This is EEKy, so I will either make
gimp->modules a simple GList and revert this bit of change, or
allow GObjects all over the place in GimpContainer land...
* app/display/gimpdisplayshell-filter.[ch]
* app/gui/color-notebook.c: removed all module stuff and use
g_type_children() to get the list of available color_selectors
and display_filters.
* app/display/gimpdisplayshell-filter-dialog.c
* app/display/gimpdisplayshell-render.c
* app/gui/module-browser.c: changed accordingly.
* app/gui/gui.c: ref the built-in color selector's class before
the modules are queried so it appears first in the list of
GimpColorSelector's children.
* modules/Makefile.am: build the water color selector again.
* modules/cdisplay_gamma.c
* modules/cdisplay_highcontrast.c
* modules/colorsel_triangle.c
* modules/colorsel_water.c: ported them all to the new API.
* modules/gimpmodregister.[ch]: removed the old EMX module hack.
2002-10-18 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-mask.c (gimp_image_mask_extract): changed an
error message.
* app/widgets/gimpmessagebox.c: tweaked so it looks more like the
query box.
2002-10-15 Sven Neumann <sven@gimp.org>
* app/widgets/gimpeditor.c: changed the default button_icon_size to
GTK_ICON_SIZE_MENU.
* themes/Default/gtkrc
* themes/Default/images/Makefile.am: don't override GTK+ button
icons. This renders some of the compiled-in icons unused; we
should remove them later.
2002-10-15 Sven Neumann <sven@gimp.org>
* app/gui/dialogs-constructors.c: draw the tool icons in dockbook
tabs using GtkImages, not using GimpPreviews.
* app/widgets/gimptoolbox.c: added a "button_relief" style property
to GimpToolbox and changed the default style to GTK_RELIEF_NONE.
* themes/Default/gtkrc: document how to set the style here.
2002-10-15 Sven Neumann <sven@gimp.org>
* app/base/levels.[ch]: added the API for level correction using
black, gray and white point.
* app/tools/gimpcurvestool.c
* app/tools/gimphistogramtool.c
* app/tools/gimplevelstool.[ch]: misc smaller changes.
* app/widgets/gimphistogrambox.[ch]: allocate the buffer for the
gradient preview on size_allocate, not for every expose event.
* app/widgets/gimphistogramview.c: fixed drawing for width > 256.
* themes/Default/images/stock-color-picker-white-18.png: tweaked.
2002-10-15 Sven Neumann <sven@gimp.org>
* app/tools/gimpinktool.c: using gtk_image_new_from_pixmap() feels
kinda lame. Draw the ink blob directly in an expose handler instead.
2002-10-15 Sven Neumann <sven@gimp.org>
* app/tools/gimphistogramtool.c
* app/tools/gimplevelstool.[ch]
* app/tools/gimpthresholdtool.c
* app/widgets/gimphistogrambox.[ch]
* app/widgets/gimphistogramview.[ch]: started to clean up histogram
code. Moved the gradient into the GimpHistogramBox. Draw only in the
expose event handler.
2002-10-15 Dave Neary <bolsh@gimp.org>
* app/tools/gimpinktool.c
* app/tools/gimptexttool.c: Remooved warnings by
including string.h, and changing from gtk_pixmap_new()
to gtk_image_new_from_pixmap().
2002-10-14 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplay.[ch]: added convenience function
gimp_display_coords_in_active_drawable().
* app/tools/gimpcurvestool.c: indicate the possibility to pick color
values from the image by showing a color picker cursor. Made the
file selection dialog transient for the tool shell.
* app/tools/gimplevelstool.c: made the file selection dialog
transient for the tool shell.
2002-10-13 Sven Neumann <sven@gimp.org>
* themes/Default/images/stock-color-picker-black-18.png
* themes/Default/images/stock-color-picker-gray-18.png
* themes/Default/images/stock-color-picker-white-18.png: new icons.
* libgimpwidgets/gimpstock.[ch]
* themes/Default/images/Makefile.am: added the new color picker icons.
* app/tools/gimplevelstool.c: added the GUI that will allow to pick
the white, gray and black point from the image.
2002-10-10 Sven Neumann <sven@gimp.org>
* app/config/gimpconfig-params.[ch]: optionally allow GIMP_UNIT_PIXEL
as value for GimpUnit params.
* app/core/gimpimage-text.[ch]
* app/core/gimptext.[ch]
* app/tools/gimptexttool.c: moved some code around.
2002-10-10 Sven Neumann <sven@gimp.org>
* app/core/Makefile.am
* app/core/core-types.h
* app/core/gimptext.[ch]: added first draft of a GimpText object.
2002-10-09 Sven Neumann <sven@gimp.org>
* app/tools/gimptexttool.c
* app/widgets/gimpfontselection.[ch]
* app/widgets/gimpwidgets-utils.[ch]: started to implement the
text tool GUI as suggested in #84151.
2002-10-09 Michael Natterer <mitch@gimp.org>
* app/core/gimppalette.c (gimp_palette_get_new_preview): adjust
the cell_size of the preview dynamically (makes them look nicer).
* app/core/gimppalette-import.c: require n_colors to be at least
2, not 1. Cleanup.
* app/gui/palette-import-dialog.c: completely chopped and
re-assembled source and GUI. Please have a look and comment...
2002-10-09 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-text.[ch]: new files that implement the text
rendering that used to live in gimptexttool.[ch].
* app/core/Makefile.am
* app/core/core-types.h
* app/tools/gimptexttool.[ch]
* tools/pdbgen/Makefile.am
* tools/pdbgen/pdb/text_tool.pdb: changed accordingly.
* tools/pdbgen/enums.pl
* app/pdb/text_tool_cmds.c: regenerated.
2002-10-09 Michael Natterer <mitch@gimp.org>
* app/gui/menus.c: some shortcut changes: Ctrl+Shift+S is now
"File/Save as...", not "View/Toggle Statusbar" (HIG compliance).
Removed Ctrl+Shift+B from "Select/Border..." because it is already
taken by "Dialogs/Brushes...". Set the shortcut to "" instead of
NULL whenever we abuse GTK_STOCK_NEW, so the menu item doesn't get
the Ctrl+N shortcut (will need separate stock icons for these menu
items).
2002-10-09 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpgradientpreview.c
* app/widgets/gimppalettepreview.c: set "height" to size/2 instead
of "width" to size*3 in get_size() so the preview size is
contollable in smaller steps using the container views' "Preview
Size" context menu.
2002-10-09 Sven Neumann <sven@gimp.org>
* themes/Default/images/Makefile.am
* themes/Default/images/stock-char-picker-22.png
* themes/Default/images/stock-letter-spacing-22.png
* themes/Default/images/stock-line-spacing-22.png: new icons taken
from #84151.
* libgimpwidgets/gimpstock.[ch]: added the new icons.
2002-10-09 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpcontainermenu.c
* app/widgets/gimpcontainerview.c: ref/unref menu->context and
view->context in gimp_container_[menu|view]_real_set_context() so
it can't be finalized under our feet.
2002-10-08 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-duplicate.c: an attempt to fix bug #94749
(gimp_image_duplicate crashes if floating selection exists).
* data/images/gimp_splash.png: a new blinkensplash from Paris.
2002-10-08 Sven Neumann <sven@gimp.org>
* plug-ins/common/ps.c: applied a patch from Peter Kirchgessner
that fixes bug #78310 (wrong bounding box when exporting to EPS).
2002-09-30 Simon Budig <simon@gimp.org>
* data/brushes/1circle.gbr: fixed the default spacing, so that
lines actually look like 1 pixel lines...
* themes/Default/images/tools/.cvsignore: Added some files.
* app/vectors/gimpanchor.h
* app/vectors/gimpbezierstroke.[ch]
* app/vectors/gimpstroke.h
* app/vectors/gimpvectors.h: Added some stuff, mostly unused
code that otherwise would just rot on my harddisk. Mitch: I
need to discuss the data structures with you...
2002-09-27 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell.[ch]: added new signal "reconnect"
which is emitted when the underlying image changes (happens on
"Revert"). Set the sensitivity of the new "Toggle QuickMask" menu
item. Don't configure the QMask button in gimp_display_shell_new().
* app/display/gimpdisplayshell-handlers.c (gimp_display_shell_connect):
configure the QMask button here so it's consistent after "Revert".
* app/display/gimpnavigationview.c: connect to the shell's
"reconnect" signal and update accordingly.
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.