1. 21 Jan, 2004 2 commits
    • Michael Natterer's avatar
      added boolean return value to GimpTool::initialize(). Returning FALSE · 613e328f
      Michael Natterer authored
      2004-01-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptool.[ch]: added boolean return value to
      	GimpTool::initialize(). Returning FALSE means the tool could not
      	be initialized and doesn't want to receive button events.
      	Return TRUE from the default implementation.
      
      	* app/tools/tool_manager.[ch]: added boolean return value to
      	tool_manager_initialize_active(). Don't set the tool's display or
      	drawable if initialize() returns FALSE.
      
      	* app/display/gimpdisplayshell-callbacks.c: don't send button
      	events to the tool if initialize() returns FALSE.
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorizetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c: return FALSE for NULL and indexed
      	drawables.
      
      	* app/tools/gimpimagemaptool.c: always return TRUE because our
      	subclasses already checked if the active drawable is OK.
      
      	* app/tools/gimptransformtool.c: return FALSE for layers with
      	masks. Fixes bug #132089. Some random cleanups.
      613e328f
    • Michael Natterer's avatar
      renamed info_dialog_popdown() to info_dialog_hide() and · 73d258eb
      Michael Natterer authored
      2004-01-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/info-dialog.[ch]: renamed info_dialog_popdown() to
      	info_dialog_hide() and info_dialog_popup() to info_dialog_present().
      	Added info_dialog_show() which just shows the dialog without
      	calling gtk_window_present().
      
      	* app/gui/info-window.c
      	* app/gui/view-commands.c
      	* app/tools/gimptransformtool.c: changed accordingly.
      
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c: use info_dialog_show() so the dialog
      	doesn't grab the focus away from the canvas. Fixes bug #132041.
      73d258eb
  2. 14 Nov, 2003 1 commit
    • Michael Natterer's avatar
      libgimpwidgets/gimpquerybox.c configure the labels in the message dialog · 6eb77294
      Michael Natterer authored
      2003-11-14  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpquerybox.c
      	* app/widgets/gimpwidgets-utils.c: configure the labels in the
      	message dialog and the query boxes to do automatic word wrapping
      	to be HIG compliant.
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-path.c
      	* app/config/gimpconfig-utils.c
      	* app/config/gimpconfigwriter.c
      	* app/config/gimpscanner.c
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpgradient.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagefile.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/core/gimpselection.c
      	* app/display/gimpdisplayshell.c
      	* app/file/file-utils.c
      	* app/gui/brush-select.c
      	* app/gui/dialogs-commands.c
      	* app/gui/drawable-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/font-select.c
      	* app/gui/gradient-select.c
      	* app/gui/gui.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/palette-select.c
      	* app/gui/palettes-commands.c
      	* app/gui/pattern-select.c
      	* app/gui/preferences-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/stroke-dialog.c
      	* app/gui/tool-options-menu.c
      	* app/gui/vectors-commands.c
      	* app/gui/view-commands.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in.c
      	* app/plug-in/plug-ins.c
      	* app/text/gimptextlayer-xcf.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimptransformtool.c
      	* app/vectors/gimpvectors-export.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimptemplateview.c
      	* app/widgets/gimptooloptionseditor.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/image.pdb: removed explicit newlines from
      	messages. Reduced number of translatable strings by making many
      	file error messages the same. Quote single words and filenames
      	with 'foo', not "foo". Replaced some more "drawable" by "layer".
      	General message cleanup and consistency check.
      
      	* app/pdb/image_cmds.c: regenerated.
      6eb77294
  3. 08 Nov, 2003 1 commit
    • Michael Natterer's avatar
      To be multihead safe, each new window or menu needs to be associated with · b62f8e9a
      Michael Natterer authored
      2003-11-08  Michael Natterer  <mitch@gimp.org>
      
      	To be multihead safe, each new window or menu needs to be
      	associated with a GdkScreen or it will pop up on the default
      	screen.
      
      	* libgimpwidgets/gimpquerybox.[ch]
      	* app/display/gimpdisplayshell-layer-select.[ch]
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpitemfactory.[ch]
      	* app/widgets/gimpitemtreeview.[ch]
      	* app/widgets/gimptemplateview.[ch]
      	* app/widgets/gimptooldialog.[ch]
      	* app/widgets/gimpviewabledialog.[ch]
      	* app/gui/channels-commands.[ch]
      	* app/gui/color-notebook.[ch]
      	* app/gui/convert-dialog.[ch]
      	* app/gui/edit-commands.[ch]
      	* app/gui/grid-dialog.[ch]
      	* app/gui/image-commands.[ch]
      	* app/gui/info-dialog.[ch]
      	* app/gui/layers-commands.[ch]
      	* app/gui/offset-dialog.[ch]
      	* app/gui/resize-dialog.[ch]
      	* app/gui/stroke-dialog.[ch]
      	* app/gui/templates-commands.[ch]
      	* app/gui/vectors-commands.[ch]: added "GtkWidget *parent"
      	paramaters to all functions which create menus, popups or windows
      	and pass "parent" to gimp_dialog_new() or one of the various
      	wrappers around it. As a side effect, this fixes bug #61092.
      
      	* app/widgets/gimpdialogfactory.[ch]: added "GdkScreen *screen"
      	instead of "parent" here since there are no possible parent
      	windows on startup.
      
      	* app/display/gimpdisplayshell-callbacks.c
      	(gimp_display_shell_origin_button_press): added a quick hack to
      	send a display to another screen: click the origin button with the
      	middle mouse button.
      
      	* app/display/gimpdisplayshell.c
      	(gimp_display_shell_screen_changed): don't chain up
      	undonditionally (don't crash).
      
      	* libgimpwidgets/gimpdialog.c (gimp_dialog_new_valist): set the
      	dialog's screen from a non-GtkWidget parent widget. The rest of
      	non-window parent widget handling is still unimplemented.
      
      	* libgimpwidgets/gimpcolorbutton.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcolorpanel.c
      	* app/widgets/gimpcomponenteditor.c
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainerpopup.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimpdevicestatus.c
      	* app/widgets/gimpdockable.c
      	* app/widgets/gimpdrawabletreeview.c
      	* app/widgets/gimperrorconsole.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimppreview-popup.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimpsessioninfo.c
      	* app/widgets/gimptoolbox-color-area.c
      	* app/widgets/gimptoolbox-indicator-area.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimptooloptionseditor.c
      	* app/widgets/gimpvectorstreeview.c
      	* app/widgets/gimpwidgets-utils.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpnavigationview.c
      	* app/gui/module-browser.c
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/drawable-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/gui-vtable.c
      	* app/gui/gui.c
      	* app/gui/info-window.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/palettes-commands.c
      	* app/gui/qmask-commands.c
      	* app/gui/select-commands.c
      	* app/gui/tool-options-commands.c
      	* app/gui/view-commands.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptransformtool.c
      	* plug-ins/FractalExplorer/FractalExplorer.c
      	* plug-ins/gfig/gfig.c
      	* plug-ins/gflare/gflare.c: changed accordingly. Changed all
      	menu_position funcs to place the menu on the right screen.
      b62f8e9a
  4. 06 Nov, 2003 1 commit
    • Michael Natterer's avatar
      removed our own action_area API and use GtkDialog's one. Create all · 66c5dd87
      Michael Natterer authored
      2003-11-06  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpdialog.[ch]: removed our own action_area API
      	and use GtkDialog's one. Create all dialogs without separator.
      	Changed almost everything else too. Fixes bug #125143.
      
      	* libgimpwidgets/gimpquerybox.c
      	* libgimpwidgets/gimpunitmenu.c: changed accordingly.
      
      	* libgimp/gimpexport.[ch]: ditto. Renamed enum GimpExportReturnType
      	to GimpExportReturn.
      
      	* libgimp/gimpcompat.h: added a #define for the old name.
      
      	* themes/Default/gtkrc: increased action_area border to 6 pixels.
      
      	* app/display/gimpdisplayshell-filter-dialog.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpprogress.c
      	* app/gui/brush-select.c
      	* app/gui/channels-commands.c
      	* app/gui/color-notebook.c
      	* app/gui/convert-dialog.c
      	* app/gui/file-new-dialog.c
      	* app/gui/font-select.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/gradient-select.c
      	* app/gui/grid-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.c
      	* app/gui/layers-commands.c
      	* app/gui/module-browser.c
      	* app/gui/offset-dialog.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c
      	* app/gui/preferences-dialog.c
      	* app/gui/qmask-commands.c
      	* app/gui/resize-dialog.c
      	* app/gui/resolution-calibrate-dialog.c
      	* app/gui/stroke-dialog.c
      	* app/gui/templates-commands.c
      	* app/gui/user-install-dialog.c
      	* app/gui/vectors-commands.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimptexteditor.c
      	* app/widgets/gimptooldialog.[ch]
      	* app/widgets/gimpviewabledialog.[ch]
      	* app/widgets/gimpwidgets-utils.c: changed accordingly and increased
      	the dialogs' outer borders to 6 pixels all over the place.
      
      	* plug-ins/*/*.c: changed accordingly. The plug-ins may be
      	arbitrarily broken, I tested none of them.
      66c5dd87
  5. 31 Oct, 2003 1 commit
    • Michael Natterer's avatar
      should actually call gimp_item_flip() on the path to transform. Fixes bug · 2edd422a
      Michael Natterer authored
      2003-10-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpfliptool.c (gimp_flip_tool_transform): should
      	actually call gimp_item_flip() on the path to transform.
      	Fixes bug #125895.
      
      	* app/tools/gimptransformtool.c (gimp_transform_tool_notify_type):
      	if the transform tool is in the CREATING state, don't skip the
      	whole callback but still copy the transform type and direction
      	from the options to the tool. Fixes preview of transformed paths.
      2edd422a
  6. 20 Oct, 2003 1 commit
    • Sven Neumann's avatar
      app/widgets/Makefile.am added a simple utility function · 445d6bfc
      Sven Neumann authored
      2003-10-20  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimptooldialog.[ch]: added a simple utility function
      	gimp_tool_dialog_new() that creates a GimpVieawableDialog based on
      	GimpToolInfo and registers it with the toplevel dialog factory.
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorizetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpimagemaptool.[ch]
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpmeasuretool.c: use the new functionality; removed
      	the shell_identifier since it can be created from the tool name.
      
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/gimptransformtool.[ch]: removed the shell_identifier
      	here as well. Should also be ported to gimp_tool_dialog_new().
      
      	* NEWS: removed stuff that isn't new at all.
      445d6bfc
  7. 06 Oct, 2003 1 commit
    • Michael Natterer's avatar
      Treat changes to the selection like changes to any other drawable: · f0372cad
      Michael Natterer authored
      2003-10-06  Michael Natterer  <mitch@gimp.org>
      
      	Treat changes to the selection like changes to any other drawable:
      
      	* app/core/gimpchannel.c
      	* app/core/gimpchannel-combine.c: call gimp_drawable_update() after
      	changing the channel.
      
      	* app/core/gimpimage.[ch]: added struct GimpImageFlushAccumulator
      	with one member "gboolean mask_changed". Connect to "update" of
      	the selection and set accum.mask_changed to TRUE in the callback.
      	Added default implementation for GimpImage::flush() and emit
      	"mask_changed" there.
      
      	Unrelated:
      	* app/core/gimpimage.h: removed GimpGuide struct...
      	* app/core/gimpimage-guides.h: ...and added it here.
      
      	* app/core/gimpimage-undo-push.c (undo_pop_mask)
      	(undo_pop_channel_mod): don't distinguish between selection and
      	non-selection channels and just call gimp_drawable_update().
      
      	* app/core/gimpundo.h
      	* app/core/gimpimage-undo.c: removed "gboolean mask_changed" from
      	the GimpUndoAccumulator struct since we don't have to care about
      	that signal explicitly any more.
      
      	* app/display/gimpdisplay-foreach.[ch]: removed gimp_displays_flush().
      
      	* tools/pdbgen/pdb/display.pdb (displays_flush_invoker): call
      	gimp_image_flush() on all images so the flush accumulator is
      	honored.
      
      	This generalization enables the removal of more special purpose
      	code which was needed to treat the selection different:
      
      	* app/core/gimpimage-mask-select.[ch]: removed...
      
      	* app/core/gimpchannel-select.[ch]: ...and added under a new name
      	because it's not selection specific any more.
      
      	* app/core/gimpimage-mask.[ch]: removed...
      
      	* app/core/gimpselection.[ch]: ...added the two remaining
      	functions here. Removed all calls to gimp_image_mask_changed().
      
      	* app/core/Makefile.am
      	* app/core/gimp-edit.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-snap.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/channels-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/select-commands.c
      	* app/gui/vectors-commands.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpellipseselecttool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimpvectorstreeview.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/paths.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: changed accordingly.
      
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpimage-colormap.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/gui/image-menu.c
      	* app/paint/gimppaintcore.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpinkoptions.c
      	* app/tools/gimpvectortool.c: removed useless and/or obsolete
      	#includes.
      
      	* app/pdb/display_cmds.c
      	* app/pdb/paths_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c: regenerated.
      f0372cad
  8. 12 Sep, 2003 1 commit
    • Michael Natterer's avatar
      app/core/gimpimage-mask-select.c (gimp_image_mask_select_vectors) · 9c13b724
      Michael Natterer authored
      2003-09-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask-select.c (gimp_image_mask_select_vectors)
      	* app/paint/gimppaintcore-stroke.c (gimp_paint_core_stroke_vectors)
      	* app/display/gimpdisplayshell.c (gimp_display_shell_draw_vector)
      	* app/tools/gimpdrawtool.c (gimp_draw_tool_real_draw)
      	* app/tools/gimptransformtool.c (gimp_transform_tool_draw)
      	* app/tools/gimpvectortool.c (gimp_vector_tool_vectors_visible)
      	(gimp_vector_tool_draw): all callers of gimp_stroke_interpolate():
      	don't leak the returned GimpCoords array and don't crash if it's
      	NULL.
      
      	* app/tools/gimpvectortool.[ch]: added VECTORS_SELECT_VECTOR state
      	which enables activating any visible GimpVectors on any display.
      
      	(gimp_vector_tool_on_handle)
      	(gimp_vector_tool_on_curve): added a GimpVectors parameter so we
      	can check for vectors which are not vector_tool->vectors.
      
      	(gimp_vector_tool_oper_update): iterate gdisp->gimage->vectors
      	to figure if we are hovering any visible vectors and set
      	VECTORS_SELECT_VECTOR.
      
      	(gimp_vector_tool_button_press): catch VECTORS_SELECT_VECTOR and
      	start editing the selected vectors. Also make it the image's
      	active_vectors.
      
      	(gimp_vector_tool_button_release): removed unneeded call to
      	gimp_viewable_invalidate_preview(vectors).
      
      	Random cleanup all over the place.
      9c13b724
  9. 04 Sep, 2003 1 commit
    • Michael Natterer's avatar
      removed the _push_undo() and _invalidate() wrappers. · a33f06e7
      Michael Natterer authored
      2003-09-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask.[ch]: removed the _push_undo() and
      	_invalidate() wrappers.
      
      	* app/core/gimpimage-mask-select.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimplayer-floating-sel.c
      	* app/tools/gimptransformtool.c: changed accordingly.
      a33f06e7
  10. 03 Sep, 2003 2 commits
    • Michael Natterer's avatar
      removed the _bounds() and _boundary() wrappers. · 008e3e20
      Michael Natterer authored
      2003-09-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask.[ch]: removed the _bounds() and
      	_boundary() wrappers.
      
      	* app/core/gimpdrawable.c
      	* app/display/gimpdisplayshell-selection.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimptransformtool.c
      	* app/xcf/xcf-save.c: changed accordingly.
      008e3e20
    • Michael Natterer's avatar
      removed the _value() and _is_empty() wrappers. · e8378499
      Michael Natterer authored
      2003-09-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask.[ch]: removed the _value() and
      	_is_empty() wrappers.
      
      	* app/display/gimpdisplayshell.[ch]: removed
      	gimp_display_shell_mask_value() since it is not used.
      
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer.c
      	* app/gui/image-menu.c
      	* app/gui/vectors-menu.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimptransformtool.c
      	* tools/pdbgen/pdb/misc_tools.pdb: changed accordingly.
      
      	* app/pdb/misc_tools_cmds.c: regenerated.
      e8378499
  11. 30 Aug, 2003 1 commit
    • Michael Natterer's avatar
      made "tool-info" a G_PARAM_CONSTRUCT_ONLY property. · c049f82e
      Michael Natterer authored
      2003-08-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptool.c: made "tool-info" a G_PARAM_CONSTRUCT_ONLY
      	property.
      
      	* app/tools/tool_manager.c (tool_manager_tool_changed): pass it to
      	g_object_new() instead of setting it after tool creation.
      
      	* app/tools/gimppainttool.[ch]
      	* app/tools/gimptransformtool.[ch]: removed ugly
      	"gboolean notify_connected" hacks and connect to the signals in
      	GObject::constructor().
      
      	* app/tools/gimppainttool.c (gimp_paint_tool_contstructor): create
      	paint_tool->core here from tool->tool_info->paint_info->paint_type.
      
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppenciltool.c
      	* app/tools/gimpsmudgetool.c: changed accordingly. Removed lots of
      	useless class_init functions. Converted tabs to spaces. Cleanup.
      c049f82e
  12. 28 Aug, 2003 1 commit
  13. 23 Aug, 2003 1 commit
    • Michael Natterer's avatar
      changed GimpHelpFunc typedef: - renamed "const gchar *help_data" to "const · ba70ce9a
      Michael Natterer authored
      2003-08-23  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpwidgetstypes.h: changed GimpHelpFunc typedef:
      	- renamed "const gchar *help_data" to "const gchar *help_id".
      	- added "gpointer help_data".
      
      	* libgimpwidgets/gimphelpui.[ch]: added "gpointer help_data" to
      	gimp_help_connect(). Removed all fiddling with html links and
      	treat all help IDs as opaque identifiers.
      
      	* app/core/gimptoolinfo.[ch]: changed "help_data" member to
      	"help_id".
      
      	* app/widgets/gimpitemfactory.[ch]: removed the "help_path"
      	parameter from gimp_item_factory_new() since we don't fiddle with
      	html file paths any more. Simplifies menu item help a lot.
      	Renamed "help_data" member of struct GimpItemFactoryEntry to
      	"help_id".
      
      	* app/gui/plug-in-menus.c: changed accordingly. 3rd party
      	plug-ins' menu item help IDs are now encoded as
      	"help_path:help_id".
      
      	* app/gui/file-open-menu.c
      	* app/gui/file-save-menu.c: when constructing the <Load> and
      	<Save> menus, take the resp. procedures' locale_domain and
      	help_path into account. Fixes translation of 3rd party menu items.
      	Also do the right thing for load/save procs which are implemented
      	as temporary procedures (they are impossible to implement
      	currently but it's nice to do the right thing anyway...).
      
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_MAIN identifier.
      
      	* libgimpwidgets/gimpdialog.[ch]
      	* libgimpwidgets/gimpwidgets.[ch]
      	* libgimp/gimpui.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/gui.c
      	* app/gui/about-dialog.c
      	* app/gui/color-notebook.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/file-dialog-utils.[ch]
      	* app/gui/gradients-commands.c
      	* app/gui/help-commands.c
      	* app/gui/image-menu.c
      	* app/gui/menus.c
      	* app/gui/preferences-dialog.c
      	* app/gui/tips-dialog.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimperrorconsole.c
      	* app/widgets/gimphelp.[ch]
      	* app/widgets/gimpmenufactory.[ch]
      	* app/widgets/gimptexteditor.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimpviewabledialog.[ch]
      	* plug-ins/common/CEL.c
      	* plug-ins/common/CML_explorer.c
      	* plug-ins/common/gee.c
      	* plug-ins/common/gee_zoom.c
      	* plug-ins/common/gqbist.c
      	* plug-ins/common/spheredesigner.c
      	* plug-ins/flame/flame.c
      	* plug-ins/fp/fp_gtk.c
      	* plug-ins/helpbrowser/helpbrowser.c
      	* plug-ins/ifscompose/ifscompose.c
      	* plug-ins/imagemap/imap_main.c: changed accordingly. Removed
      	trailing whitespace all over the place.
      ba70ce9a
  14. 22 Aug, 2003 1 commit
    • Simon Budig's avatar
      app/vectors/gimpstroke.c app/vectors/gimpvectors-preview.c · d368e27e
      Simon Budig authored
      2003-08-22  Simon Budig  <simon@gimp.org>
      
      	* app/vectors/gimpstroke.c
      	* app/vectors/gimpvectors-preview.c
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectortool.c: Added missing checking for NULL
      	return values. Hopefully this fixes the crashes others are
      	observing.
      d368e27e
  15. 16 Jul, 2003 2 commits
    • Michael Natterer's avatar
      implemented transforming of paths. Cleaned up initialize() and · 30934d23
      Michael Natterer authored
      2003-07-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptransformtool.[ch]: implemented transforming of
      	paths. Cleaned up initialize() and button_press() to activate the
      	tool correctly. Use the transform tool's CREATING state *only*
      	before the first mouse click (when there is no grid displayed).
      	Preview the active path while transforming. Cache the transform
      	direction in the GimpTransformTool struct so we can switch it
      	while previewing the path. Lots of path transform related changes
      	and cleanup.
      30934d23
    • Sven Neumann's avatar
      don't draw the grid when the bounding box becomes concave. · 10eee1e7
      Sven Neumann authored
      2003-07-16  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptransformtool.c (gimp_transform_tool_draw): don't
      	draw the grid when the bounding box becomes concave.
      10eee1e7
  16. 07 Jul, 2003 1 commit
    • Sven Neumann's avatar
      libgimpmath/gimpmathtypes.h moved struct declarations. · 5c4020ed
      Sven Neumann authored
      2003-07-07  Sven Neumann  <sven@gimp.org>
      
      	* libgimpmath/gimpmathtypes.h
      	* libgimpmath/gimpvector.h: moved struct declarations.
      
      	* libgimpmath/gimpmatrix.[ch]: made GimpMatrix3 and GimpMatrix4
      	structs instead of typedefs for arrays. Pass them by reference,
      	not by value. Added lots of const qualifiers.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-transform-utils.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpdrawable.c
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimplayer.c
      	* app/pdb/transform_tools_cmds.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimptransformtool.c
      	* app/vectors/gimpvectors.c
      	* tools/pdbgen/pdb/transform_tools.pdb: changed accordingly.
      5c4020ed
  17. 10 Jun, 2003 1 commit
    • Sven Neumann's avatar
      expects the tool identifier as a GQuark now. · b39f8fb8
      Sven Neumann authored
      2003-06-10  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/tools-commands.c (tools_select_cmd_callback): expects
      	the tool identifier as a GQuark now.
      
      	* app/gui/image-menu.c: changed accordingly. Removed code that
      	used to move the menu entries for the color correction tools to
      	the Layers menu. Added the respective menu entries by hand. Added
      	a menu entry for arbitrary rotations and one for Select by Color.
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorizetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c: register the color correction
      	tools in the Tools menu.
      
      	* app/tools/gimptransformtool.c: added an initialize method and
      	moved most initalization code from button_press to this place.
      b39f8fb8
  18. 30 May, 2003 1 commit
    • Michael Natterer's avatar
      added enum GimpTransformType which can be one of { LAYER, SELECTION, PATH · 15b9be6a
      Michael Natterer authored
      2003-05-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/tools-enums.[ch]: added enum GimpTransformType which
      	can be one of { LAYER, SELECTION, PATH }
      
      	* app/tools/gimptransformoptions.[ch]: added a GimpTransformType
      	property to GimpTransformOptions. Added a GUI for the new
      	option.
      
      	* app/tools/gimpflipoptions.[ch]: derive it from
      	GimpTransformOptions and add the GUI here, too.
      
      	* app/tools/gimpfliptool.c
      	* app/tools/gimptransformtool.[ch]: added support for transforming
      	the selection. Added framework for transforming paths (still
      	unimplemented).
      
      	* app/tools/gimpselectionoptions.c: small cleanup.
      
      	* libgimpwidgets/gimpstock.[ch]
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/stock-path-16.png
      	* themes/Default/images/stock-path-22.png
      	* themes/Default/images/stock-selection-16.png: new icons for the
      	new transform options buttons. Simply copied existing ones...
      15b9be6a
  19. 28 May, 2003 1 commit
    • Michael Natterer's avatar
      app/display/gimpdisplayshell-callbacks.c app/tools/gimpcolorpickertool.c · bbc102f9
      Michael Natterer authored
      2003-05-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptextoptions.c
      	* app/tools/gimptransformtool.c
      	* app/tools/paint_options.c
      	* app/tools/tool_manager.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimptoolbox-color-area.c:
      	don't #include "gui/dialogs.h" to get the global factories but use
      	gimp_dialog_factory_from_name() instead.
      bbc102f9
  20. 26 May, 2003 1 commit
    • Michael Natterer's avatar
      added "gint ref_count" to the TileManager struct. · 707e5976
      Michael Natterer authored
      2003-05-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/tile-manager-private.h: added "gint ref_count" to the
      	TileManager struct.
      
      	* app/base/tile-manager.[ch]: replaced tile_manager_destroy()
      	by tile_manager_ref() and tile_manager_unref().
      
      	* app/core/gimpimage-undo-push.c: ref the tile managers stored in
      	the undo system and DON'T destroy them if no undo could be pushed.
      	Should fix the remaining crashes with undo disabled like in
      	bug #9350.
      
      	(!!!) Note that the tiles passed to gimp_image_undo_push_image()
      	and gimp_drawable_push_undo() as well as the tile managers of
      	drawables passed to gimp_image_undo_push_[layer|channel]_mod()
      	must be unref'ed by the caller now.
      
      	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_paste):
      	don't take ownership of the passed tiles but ref them if needed.
      
      	(!!!) Callers must unref the passed tiles themselves now.
      
      	* app/core/gimpbuffer.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagemap.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/paint/gimppaintcore.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimptransformtool-undo.c
      	* app/tools/gimptransformtool.c: changed accordingly.
      707e5976
  21. 25 May, 2003 1 commit
    • Michael Natterer's avatar
      Use g_object_[set|get]_qdata(), not just _data() to speed up tool manager · dd9a0a4a
      Michael Natterer authored
      2003-05-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/tool_manager.[ch] (tool_manager_set,get): Use
      	g_object_[set|get]_qdata(), not just _data() to speed up tool
      	manager access.
      
      	Removed tool_manager_active_get_help_data() and
      	tool_manager_help_func().
      
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptransformtool.c: use gimp_standard_help_func and
      	tool->tool_info->help_data instead. Don't #include "tool_manager.h".
      dd9a0a4a
  22. 21 May, 2003 1 commit
    • Michael Natterer's avatar
      Removed the old paths and the remaining legacy stuff it needed. Fixes bug · 487f71ba
      Michael Natterer authored
      2003-05-21  Michael Natterer  <mitch@gimp.org>
      
      	Removed the old paths and the remaining legacy stuff it needed.
      	Fixes bug #104471.
      
      	* Makefile.am
      	* configure.in
      	* pixmaps/*: removed the pixmaps/ directory.
      
      	* app/ops_buttons.[ch]
      	* app/path.[ch]
      	* app/pathP.h
      	* app/path_transform.h
      	* app/gui/paths-dialog.[ch]
      	* app/tools/gimpbezierselecttool.[ch]: removed these files.
      
      	* app/Makefile.am
      	* app/gui/Makefile.am
      	* app/tools/Makefile.am: changed accordingly.
      
      	* app/core/core-types.h: removed the Path* types.
      
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimage-duplicate.c: removed gimage->paths.
      
      	* app/gui/about-dialog.c: inline wilber2_xpm for now.
      
      	* app/gui/dialogs-constructors.c
      	* app/gui/dialogs-menu.c
      	* app/gui/dialogs.c
      	* app/gui/menus.c: removed the old paths dialog.
      
      	* app/gui/gui.c: removed gui_rotate_the_shield_harmonics() hack
      	which was broken anyway.
      
      	* app/tools/gimptransformtool.c: #if 0 path_transform preview stuff.
      
      	* app/tools/gimpiscissorstool.c: removed useless include.
      
      	* app/tools/tools.c: removed the bezier select tool.
      
      	* app/vectors/gimpvectors.c (gimp_vectors_real_stroke_add): use
      	g_list_append(), not g_list_prepend() so some ugly side conditions
      	of legacy path loading are honored.
      
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c: load and save only GimpVectors.
      487f71ba
  23. 18 May, 2003 1 commit
  24. 13 May, 2003 1 commit
    • Michael Natterer's avatar
      added "gboolean clip_result" to GimpItem::flip(). · a4395cea
      Michael Natterer authored
      2003-05-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: added "gboolean clip_result" to
      	GimpItem::flip().
      
      	* app/vectors/gimpvectors.c
      	* app/tools/gimpfliptool.c: changed accordingly.
      
      	* app/core/gimpdrawable.c: implement GimpItem::flip() and
      	GimpItem::transform().
      
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c: chain up in flip() and transform() and do
      	only the layer/channel specific stuff here.
      
      	* app/core/gimpdrawable-transform.[ch]: fixed indentation.
      	(gimp_drawable_transform_tiles_flip): added "gboolean clip_result"
      	and warn that it is not yet implemented.
      	(gimp_drawable_transform_tiles_affine): when transforming a
      	channel set bg_color to transparent. Clip channels (but not layer
      	masks) only if the passed tiles have bpp == 1 (the channel is
      	unfloated).
      	(gimp_drawable_transform_affine): clip all unfloated channels.
      
      	* app/core/gimpitem-linked.[ch]: added gimp_item_linked_get_list()
      	utility function to avoind iterating all layers/channels/vectors
      	in all functions.
      
      	* app/tools/gimptransformtool.c: clip all unfloated channels.
      
      	The clipping fixes above together fix bug #112858.
      a4395cea
  25. 12 May, 2003 1 commit
    • Michael Natterer's avatar
      Added support for transforming linked layers, channels and vectors. Fixes · 45334e63
      Michael Natterer authored
      2003-05-12  Michael Natterer  <mitch@gimp.org>
      
      	Added support for transforming linked layers, channels
      	and vectors. Fixes bug #86277.
      
      	* app/core/gimpdrawable-transform.[ch]
      	(gimp_drawable_transform_tiles_flip): added "gdouble axis" and
      	calculate the resulting drawable offset.
      	(gimp_drawable_transform_flip): calculate the axis and pass it to
      	the function above.
      	(gimp_drawable_transform_[tiles_]affine): reordered parameters.
      
      	* app/core/gimpitem.[ch]: added virtual functions GimpItem::flip()
      	and GimpItem::transform().
      
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c
      	* app/vectors/gimpvectors.c: implement flip() and transform().
      	Note that all functions always transform the whole item,
      	regardless of a present selection.
      
      	* app/core/Makefile.am
      	* app/core/gimpitem-linked.[ch]: new files containing utility
      	functions which translate, flip and transform all linked items.
      
      	* app/tools/gimpfliptool.c
      	* app/tools/gimptransformtool.c
      	* tools/pdbgen/pdb/layer.pdb: use the new gimp_item_linked_*()
      	functions to translate, flip and transform all linked items.
      
      	* tools/pdbgen/pdb/transform_tools.pdb: follow
      	gimp_drawable_transform_affine() API change.
      
      	* app/pdb/layer_cmds.c
      	* app/pdb/transform_tools_cmds.c: regenerated.
      45334e63
  26. 08 May, 2003 3 commits
    • Michael Natterer's avatar
      removed gimp_drawable_offsets(). · c1ab39a5
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: removed gimp_drawable_offsets().
      
      	* app/core/gimpitem.[ch]: added gimp_item_offsets().
      
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-histogram.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask-select.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-pick-color.c
      	* app/core/gimpimage-preview.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-transform.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/channels-commands.c
      	* app/gui/layers-commands.c
      	* app/paint/gimppaintcore.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimptoolbox.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb: changed accordingly.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c: regenerated.
      c1ab39a5
    • Michael Natterer's avatar
      removed gimp_drawable_width,height(). · 54878b79
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: removed gimp_drawable_width,height().
      
      	* app/core/gimpitem.[ch]: added gimp_item_width,height().
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-preview.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagemap.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/core/gimpscanconvert.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/channels-commands.c
      	* app/gui/layers-commands.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimpsmudge.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimptoolbox.c
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/drawable_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
      54878b79
    • Michael Natterer's avatar
      More transform virtualization preparation: · 4136e61d
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	More transform virtualization preparation:
      
      	* app/core/gimpdrawable.[ch]: removed "width", "height", "offset_x"
      	and "offset_y"...
      
      	* app/core/gimpitem.[ch]: ...and added them here.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/text/gimptext-compat.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimppreviewrendererdrawable.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      4136e61d
  27. 02 May, 2003 1 commit
    • Michael Natterer's avatar
      added new function gimp_dialog_factory_add_foreign() which adds a dialog · fefaf61b
      Michael Natterer authored
      2003-05-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdialogfactory.[ch]: added new function
      	gimp_dialog_factory_add_foreign() which adds a dialog that was not
      	created by the factory itself. Its identifier however must be
      	registered with the factory. Connect to all toplevel dialogs'
      	"configure_event" and remember the resulting window geometry so we
      	get session management for *all* dialogs, not only for those which
      	were open on exit.
      
      	* app/gui/dialogs.c: added the "File New" dialog. Added foreign
      	entries (without constructor) for all dialogs opened by tools.
      
      	* app/gui/dialogs-constructors.[ch]: added a constructor for
      	the file_new dialog.
      
      	* app/gui/file-new-dialog.[ch]: renamed file_new_dialog_create()
      	to file_new_dialog_new() and removed the gimage and template
      	paramaters. Adder new function file_new_dialog_set() to set
      	gimage and template after creation.
      
      	* app/gui/file-commands.c
      	* app/gui/templates-commands.c: changed accordingly.
      
      	* app/tools/gimpimagemaptool.[ch]
      	* app/tools/gimptransformtool.[ch]: added
      	"const gchar *shell_identifier" to the tool structs. Register the
      	tool dialogs using gimp_dialog_factory_add_foreign().
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimpthresholdtool.c: set "shell_identifier" so the
      	dialogs become session managed. Fixes bug #61091.
      
      	* app/tools/gimpcroptool.c: register the crop dialog with the
      	dialog factory. Fixes bug #52849.
      
      	* app/tools/gimpcolorpickertool.c: ditto.
      
      	Unrelated:
      
      	* app/tools/gimptool.c: no need to cast the return value of
      	g_object_new().
      fefaf61b
  28. 15 Apr, 2003 1 commit
    • Michael Natterer's avatar
      check for GIMP_IS_DISPLAY(gdisp) again. · 8cee4963
      Michael Natterer authored
      2003-04-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptool.c: check for GIMP_IS_DISPLAY(gdisp) again.
      
      	* app/tools/gimptool.h: don't #include "gimptoolcontrol.h"
      
      	* app/tools/[all tools].c: #include "gimptoolcontrol.h"
      8cee4963
  29. 25 Mar, 2003 1 commit
    • Sven Neumann's avatar
      Makefile.am removed this header file. · 28fddfd5
      Sven Neumann authored
      2003-03-25  Sven Neumann  <sven@gimp.org>
      
      	* Makefile.am
      	* gimpintl.h: removed this header file.
      
      	* gimpmiscui.c: include libgimp-intl.h.
      
      	* gimp.c (gimp_main): call setlocale() and bind to the libgimp
      	textdomain so that plug-ins don't need to do that explicitely.
      
      	* libgimp/stdplugins-intl.h: added the functionality that used to
      	live in gimpintl.h and removed the libgimp related stuff. Got rid
      	of the INIT_I18N_UI() macro.
      
      	* plug-ins/*/*.c: removed all occurances of INIT_I18N_UI().
      	Plug-ins simply call INIT_I18N() once in their run() function.
      
      	* plug-ins/script-fu/script-fu-intl.h: added the functionality
      	that used to live in gimpintl.h and removed the libgimp related
      	stuff.
      
      	* app/Makefile.am
      	* app/gimp-intl.h: new file that defines the gettext macros for
      	the GIMP core.
      
      	* app/*/*.c: include gimp-intl.h instead of libgimp/gimpintl.h.
      
      	* plug-ins/script-fu/scripts/test-sphere.scm: fixed typos.
      28fddfd5
  30. 28 Feb, 2003 1 commit
    • Manish Singh's avatar
      app/tools/gimpbucketfilltool.c app/tools/gimpconvolvetool.c · 5bc3a7a3
      Manish Singh authored
      2003-02-27  Manish Singh  <yosh@gimp.org>
      
              * app/tools/gimpbucketfilltool.c
              * app/tools/gimpconvolvetool.c
              * app/tools/gimpcroptool.c
              * app/tools/gimpdodgeburntool.c
              * app/tools/gimperasertool.c
              * app/tools/gimpfliptool.c
              * app/tools/gimpfuzzyselecttool.c
              * app/tools/gimpinkoptions.c
              * app/tools/gimpmagnifytool.c
              * app/tools/gimpmovetool.c
              * app/tools/gimprectselecttool.c
              * app/tools/gimpselectiontool.c
              * app/tools/gimptexttool.c
              * app/tools/gimptransformtool.c
              * app/widgets/gimpcellrendererviewable.c
              * app/widgets/gimpcontainertreeview.c: remove unecessary G_OBJECT()
              from g_object_set calls.
      
              * plug-ins/common/bumpmap.c: use g_signal_handlers_(un)block_by_func
              instead of gtk_signal_handler_(un)block_by_data.
      5bc3a7a3
  31. 26 Feb, 2003 2 commits
    • Sven Neumann's avatar
      added a writeable field to GimpData and set it from · 0ceeeb02
      Sven Neumann authored
      2003-02-26  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdata.[ch]: added a writeable field to GimpData and
      	set it from gimp_data_set_filename().
      
      	* app/gui/brushes-menu.c
      	* app/gui/gradients-menu.c
      	* app/gui/palettes-menu.c
      	* app/gui/patterns-menu.c
      	* app/widgets/gimpbrushfactoryview.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimpgradienteditor.c: look at data->writeable when
      	setting widgets sensitivity.
      
      	* app/gui/user-install-dialog.c (user_install_dialog_create): reduce
      	some of the dialog clutter by not showing the directories created for
      	plug-ins.
      
      	* app/core/gimpviewable.[ch]: added a default_stock_id to
      	GimpViewableClass so we don't need to hold a copy in each instance.
      	Added accessor functions to set and get the stock_id.
      
      	* app/core/gimptoolinfo.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/image-menu.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpcellrendererviewable.c
      	* app/widgets/gimppreview.c
      	* app/widgets/gimptoolbox.c: use gimp_viewable_get_stock_id().
      
      	* app/text/gimptextlayer.c: set a text icon as default stock_id.
      0ceeeb02
    • Michael Natterer's avatar
      added "gchar *stock_id" to the GimpViewable struct. It is used by the GUI · 305db405
      Michael Natterer authored
      2003-02-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpviewable.[ch]: added "gchar *stock_id" to the
      	GimpViewable struct. It is used by the GUI if the get_preview()
      	functions return NULL. Default to GTK_STOCK_DIALOG_QUESTION.
      
      	* app/core/gimptoolinfo.[ch]: set the tool's stock_id. Removed
      	the cached GdkPixbuf. Don't implement any preview function
      	so the GUI uses the stock_id.
      
      	* app/tools/tool_manager.c: removed GdkPixbuf creation, removed
      	the #warning about the buggy way we created the pixbuf.
      
      	* app/gui/dialogs-constructors.c
      	* app/gui/image-menu.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimptoolbox.c: use viewable->stock_id instead
      	of tool_info->stock_id.
      
      	* app/core/gimpbrush.c
      	* app/core/gimpgradient.c
      	* app/core/gimpimagefile.c
      	* app/core/gimpundo.c: simplified get_preview() implementations:
      
      	- never scale previews up, only down.
      	- don't render white or checks backgrounds but simply return
      	  TempBufs with alpha and let the preview system do its job.
      	- don't add padding but simply return previews smaller than
      	  requested.
      
      	* app/display/gimpdisplayshell-render.[ch]: added
      	"render_blend_white", a 2d lookup table for blending on white,
      	just as the check lookup tables. Added "render_white_buf".
      
      	* app/widgets/gimppreview.[ch]: changed a lot:
      
      	- don't render the preview's border into the buffer.
      	- added "GdkGC *border_gc" and draw the preview's border in expose()
      	  using gdk_draw_rectangle().
      	- added "GdkPixbuf *no_preview_pixbuf" and create it in
      	  gimp_preview_real_render() if gimp_viewable_get_preview()
      	  returned NULL.
      	- factored the actual preview rendering out to
      	  gimp_preview_render_to_buffer(). Added configurable background
      	  rendering for the preview itself and it's padding area
      	  (the area the preview is larger than the buffer returned
      	  by gimp_viewable_get_preview()).
      	- changed gimp_preview_render_and_flush() to
      	  gimp_preview_render_preview() and added "inside_bg" and
      	  "outside_bg" parameters.
      	- use the new render buffers for blending on white.
      
      	* app/widgets/gimpbrushpreview.c
      	* app/widgets/gimpbufferpreview.c
      	* app/widgets/gimpdrawablepreview.c
      	* app/widgets/gimpgradientpreview.c
      	* app/widgets/gimpimagepreview.c
      	* app/widgets/gimppalettepreview.c
      	* app/widgets/gimppatternpreview.c: don't create large white
      	TempBufs to center the previews in but simply set the TempBuf's
      	offsets to get them centered. Simplified & cleaned up many preview
      	render functions. Pass the correct GimpPreviewBG modes to
      	gimp_preview_render_preview().
      
      	* app/widgets/gimpcellrendererviewable.[ch]: new GtkCellRenderer
      	class derived from GtkCellRendererPixbuf which knows how
      	to use gimp_viewable_get_preview_size() and renders the
      	viewable's stock item if no preview can be created.
      
      	* app/widgets/gimpcontainertreeview.c: added a GtkTreeCellDataFunc
      	which creates the preview pixbuf if needed so we don't create it
      	unconditionally upon item insertion. Fixed preview size assertion
      	to use GIMP_PREVIEW_MAX_SIZE, not "64". Block "selection_changed"
      	while reordering the selected item.
      
      	* app/widgets/gimpcontainerview.c: cosmetic.
      
      	* app/widgets/gimpimagefilepreview.[ch]
      	* app/widgets/gimptoolinfopreview.[ch]
      	* app/widgets/gimpundopreview.[ch]: removed because the default
      	implementation is good enough.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimppreview-utils.c: changed accordingly.
      
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs-menu.c
      	* app/gui/dialogs.c
      	* app/gui/image-menu.c
      	* app/gui/toolbox-menu.c: register grid and tree view variants
      	of the document history.
      
      	Unrelated:
      
      	* app/gui/gui.c (gui_exit_finish_callback): disconnect from
      	signals earlier.
      
      	* app/gui/user-install-dialog.c: create the "tool-options" subdir
      	of the user's ~/.gimp-1.3 directory.
      305db405
  32. 14 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Moved the undo step implementations to the core and pass around lots of · 7a6a8d9d
      Michael Natterer authored
      2003-02-14  Michael Natterer  <mitch@gimp.org>
      
      	Moved the undo step implementations to the core and pass around
      	lots of "const gchar *undo_desc". Fixes bug #104367.
      
      	* app/Makefile.am
      	* app/undo.[ch]: removed...
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-undo-push.[ch]: ...and added here.
      
      	* app/paint/Makefile.am
      	* app/tools/Makefile.am
      	* app/paint/gimppaintcore-undo.[ch]
      	* app/tools/gimptransformtool-undo.[ch]: new files for the
      	paint and transform undos.
      
      	* app/core/gimppaintinfo.[ch]: added a blurb.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/paint/paint-types.h
      	* app/paint/paint.c: pass the blurb when registering the core.
      
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimage-mask-select.[ch]
      	* app/core/gimpimage-mask.[ch]
      	* app/core/gimpimagemap.[ch]
      	* app/core/gimplayer-floating-sel.[ch]: added "undo_desc" parameters
      	to all undo pushing helper functions.
      
      	* app/undo_history.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/gui/channels-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/paths-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/vectors-commands.c
      	* app/text/gimptext-compat.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimpselectioneditor.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: changed accordingly: pass
      	"undo_desc" strings, changed includes or simply removed inclusion
      	of "undo.h". Some random cleanups.
      
      	* tools/pdbgen/pdb/guides.pdb: cleaned up a lot. Fixed
      	gimp_image_find_next_guide() to not return guides with
      	position < 0 (and made it shorter and readable).
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/guides_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c: regenerated.
      7a6a8d9d
  33. 13 Feb, 2003 1 commit
    • Michael Natterer's avatar
      changed FOO_UNDO enum values to GIMP_UNDO_FOO. · b600fd86
      Michael Natterer authored
      2003-02-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch]: changed FOO_UNDO enum values to
      	GIMP_UNDO_FOO.
      
      	* app/undo.[ch]: removed the undo group wrappers.
      
      	* app/undo_history.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo.c
      	* app/core/gimpimage.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/channels-commands.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/paint/gimppaintcore.c
      	* app/text/gimptext-compat.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/undo.pdb: changed accordingly. Pass meaningful
      	undo names to gimp_image_undo_group_start().
      
      	* app/pdb/layer_cmds.c
      	* app/pdb/undo_cmds.c: regenerated.
      b600fd86
  34. 10 Feb, 2003 1 commit
    • Michael Natterer's avatar
      connect to GimpTransformOptions' "notify" signal and update grid and path · 58d780e0
      Michael Natterer authored
      2003-02-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptransformtool.[ch]: connect to GimpTransformOptions'
      	"notify" signal and update grid and path drawing accordingly.
      
      	* app/tools/gimptransformoptions.c: removed the same stuff here.
      	Doesn't depend on the tool_manager any more.
      
      	* app/tools/gimpselectionoptions.c
      	* app/tools/paint_options.c: don't #include "tool_manager.h"
      58d780e0