1. 07 May, 2003 2 commits
    • Michael Natterer's avatar
      More transform stuff virtualization: · 323ed50c
      Michael Natterer authored
      2003-05-07  Michael Natterer  <mitch@gimp.org>
      
      	More transform stuff virtualization:
      
      	* app/core/gimpitem.[ch]: added new virtual function
      	GimpItem::resize().
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimplayer.[ch]: removed public resize functions
      	and implement resize() instead.
      
      	* app/core/gimpdrawable.c: implement resize() which contains
      	the common parts of layer/channel resizing.
      
      	* app/vectors/gimpvectors.c: added empty resize() implementation.
      
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-resize.c
      	* app/gui/layers-commands.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      323ed50c
    • Michael Natterer's avatar
      Started to abstract item transformation so we can easily transform · 2a17435e
      Michael Natterer authored
      2003-05-07  Michael Natterer  <mitch@gimp.org>
      
      	Started to abstract item transformation so we can easily
      	transform multiple linked items later:
      
      	* app/core/gimpitem.[ch]: added new virtual function
      	GimpItem::scale() with the same signature as the former
      	gimp_layer_scale_lowlevel().
      
      	* app/core/gimpdrawable.c: implement scale() and do the
      	common parts of layer/channel scaling here.
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimplayer.[ch]: implement scale() for the
      	channel/layer specific parts of scaling.
      
      	* app/core/gimplayer.[ch]: renamed gimp_layer_scale() to
      	gimp_layer_scale_by_origin().
      
      	* app/vectors/gimpvectors.c: added empty scale() implementation.
      
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo-push.c
      	* app/gui/layers-commands.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      
      	Unrelated:
      
      	* app/core/gimpimage-undo-push.c: fixed item rename undo to
      	take the size of the saved name into account. Removed old
      	path_undo stuff.
      2a17435e
  2. 05 May, 2003 1 commit
    • Pedro Gimeno's avatar
      Cleanups. (gradient_calc_linear_factor): Apply the gradient to both sides · 9e7d814a
      Pedro Gimeno authored
      2003-05-05  Pedro Gimeno  <pggimeno@wanadoo.es>
      
      	* app/core/gimpdrawable-blend.c: Cleanups.
      	(gradient_calc_linear_factor): Apply the gradient to both sides
      	when Repeat is set to Sawtooth Wave. Fixes bug #112106.
      
      	* app/core/gimpdrawable-transform.c
      	(gimp_drawable_transform_tiles_affine): Fix copy'n'paste slip in
      	coordinates calculation for supersampling code. Transform the
      	pixel centers properly. Fixes bug #10466.
      
      	* app/tools/gimpdrawtool.c (gimp_draw_tool_draw_rectangle,
      	gimp_draw_tool_draw_arc): Ported the fix for bug #17904 from the
      	STABLE branch (off-by-one when drawing the rectangle/ellipse
      	previews).
      
      	* app/tools/gimpeditselectiontool.c: Renamed
      	gimp_edit_selection_tool_snap to
      	gimp_edit_selection_tool_calc_coords, as it is no longer used for
      	snapping.
      	(gimp_edit_selection_tool_calc_coords): Use floor instead of
      	rounding. Callers changed to remove rounding, as it deals with
      	gdoubles directly. Thanks to Mitch for the help refining this
      	one. Fixes bug #17906.
      9e7d814a
  3. 17 Apr, 2003 2 commits
  4. 15 Apr, 2003 1 commit
    • Sven Neumann's avatar
      Removed support for pluggable tools: · 0c399e5c
      Sven Neumann authored
      2003-04-15  Sven Neumann  <sven@gimp.org>
      
      	Removed support for pluggable tools:
      
      	* configure.in: bumped version number to 1.3.15.
      
      	* Makefile.am
      	* libgimpproxy
      	* libgimptool
      	* plug-ins/Makefile.am
      	* plug-ins/plugin-helper
      	* plug-ins/tools: removed libgimpproxy, libgimptool and plug-ins
      	that used it.
      
      	* tools/Makefile.am
      	* tools/gimp-mkproxy: removed tool that used to generate
      	libgimpproxy.
      
      	* app/core/core-enums.h
      	* app/core/gimpchannel.h
      	* app/display/display-types.h
      	* app/widgets/widgets-enums.h: removed proxy-skip/resume stuff.
      
      	* app/core/gimpobject.c: use gimp marshallers.
      
      	* app/tools/Makefile.am
      	* app/tools/gimptool.h
      	* app/tools/tools-enums.[ch]: moved these files back from
      	libgimptool.
      
      	* app/tools/gimptool.c
      	* app/tools/gimptoolcontrol.h: merged back functionality from
      	libgimptool.
      
      	* app/Makefile.am
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/gui/tools-commands.c
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpbucketfilltool.h
      	* app/tools/gimpdrawtool.h
      	* app/tools/gimpimagemaptool.h
      	* app/tools/gimpinktool.h
      	* app/tools/gimptoolmodule.c
      	* app/tools/tool_manager.c
      	* app/tools/tools-types.h
      	* app/tools/tools.c
      	* tools/pdbgen/Makefile.am: changed accordingly.
      0c399e5c
  5. 14 Apr, 2003 1 commit
    • Simon Budig's avatar
      app/vectors/gimpstroke.[ch] Changed vectors->strokes to a GList and · 740983b0
      Simon Budig authored
      2003-04-14  Simon Budig  <simon@gimp.org>
      
              * app/vectors/gimpstroke.[ch]
              * app/vectors/gimpvectors.[ch]: Changed vectors->strokes to a
              GList and removed stroke->next. Implemented stuff for duplicating
              strokes. Duplicating a vector works now.
      
              * app/tools/gimpvectortool.c: added not-yet-used function to
              determine where a click has been. Refcounting stuff changed.
      
              * app/core/gimpimage-mask-select.c
              * app/paint/gimppaintcore-stroke.c: Changed accordingly.
      740983b0
  6. 13 Apr, 2003 3 commits
    • Michael Natterer's avatar
      Added g_return_if_fail (gimp_drawable_is_rgb (drawable)), cleanup. · 1a204234
      Michael Natterer authored
      2003-04-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable-desaturate.c (gimp_drawable_desaturate):
      	Added g_return_if_fail (gimp_drawable_is_rgb (drawable)), cleanup.
      1a204234
    • Michael Natterer's avatar
      invalidate the preview when the stock_id changes. · 6663cee5
      Michael Natterer authored
      2003-04-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimptemplate.c (gimp_template_notify): invalidate
      	the preview when the stock_id changes.
      
      	* app/widgets/gimptemplateeditor.[ch]: added an optional entry
      	to edit the template's name.
      
      	* app/widgets/gimptemplateview.[ch]: added a "duplicate" button and
      	function pointers for creating templates, editing templates and
      	creating images from templates.
      
      	* app/gui/file-new-dialog.[ch] (file_new_dialog_create): added an
      	optional template parameter.
      
      	* app/gui/file-commands.c: pass template == NULL.
      
      	* app/gui/templates-menu.c: added a "Duplicate Template" menu entry.
      
      	* app/gui/templates-commands.[ch]: added the callback for the
      	duplicate menu item. Added "New Template" and "Edit Template"
      	dialogs. Added a function which opens a file_new_dialog with
      	a template preselected.
      
      	* app/gui/dialogs-constructors.c: let GimpTemplateView know
      	about the functions.
      6663cee5
    • Michael Natterer's avatar
      app/core/gimpcontext.c (gimp_context_deserialize_property) g_free() the · ffa291d6
      Michael Natterer authored
      2003-04-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcontext.c (gimp_context_deserialize_property)
      	* app/core/gimpcontainer.c (gimp_container_deserialize): g_free()
      	the string returned by gimp_scanner_parse_string(). Replace
      	NULL object names by "".
      ffa291d6
  7. 12 Apr, 2003 1 commit
    • Michael Natterer's avatar
      made object properties G_PARAM_READWRITE by default. Added flag · f82440ff
      Michael Natterer authored
      2003-04-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/gimpconfig-params.h: made object properties
      	G_PARAM_READWRITE by default. Added flag GIMP_PARAM_AGGREGATE
      	which indicates that an object property is not a reference but a
      	real part of its owner.
      
      	* app/config/gimpconfig-deserialize.c: g_object_set_property()
      	object properties only if they are not GIMP_PARAM_AGGREGATE.
      
      	* app/config/gimpconfig-utils.c (gimp_config_copy_properties,
      	gimp_config_reset_properties): copy and reset GIMP_PARAM_AGGREGATE
      	object properties correctly.
      
      	* app/config/gimpconfig-serialize.c: don't call
      	gimp_config_writer_open/close() for properties which are handled
      	by a GimpConfigIface::serialize_property() implementation.
      
      	* app/core/gimpcontext.c: removed exlicit G_PARAM_WRITABLE from
      	object properties since that's the default now. Call
      	gimp_config_writer_open/close() when serializing properties.
      
      	* app/core/gimpviewable.c (gimp_viewable_get_property): use
      	gimp_viewable_get_stock_id().
      	(gimp_viewable_set_stock_id): set stock_id to NULL if the new
      	stock_id is the same as viewable_class->default_stock_id.
      	Added serialize_property() which skips stock_id serialization
      	if it is NULL.
      
      	* app/tools/gimptextoptions.c: made the "text" property
      	GIMP_PARAM_AGGREGATE. Added gimp_text_options_set_property()
      	(which does nothing).
      
      	* app/widgets/gimptemplateeditor.[ch]: added an optional
      	GimpViewableButton to change the template's icon.
      
      	* app/gui/file-new-dialog.c: create it with the icon button so it
      	gets some testing.
      f82440ff
  8. 10 Apr, 2003 1 commit
    • Michael Natterer's avatar
      added gimp_context_type_to_prop_name(). · 25981425
      Michael Natterer authored
      2003-04-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcontext.[ch]: added gimp_context_type_to_prop_name().
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpviewablebutton.[ch]: new widget implementing
      	the wheel-scrollable preview button.
      
      	* app/tools/gimptextoptions.c
      	* app/tools/paint_options.[ch]: removed the code implementing the
      	same and use GimpViewableButton.
      
      	* app/tools/tool_manager.c: added the font to the context
      	properties which are remembered per tool. Added an evil hack
      	using g_object_set_data() to pass the global_dock_factory to
      	tool option GUI constructors.
      25981425
  9. 09 Apr, 2003 2 commits
  10. 08 Apr, 2003 1 commit
    • Michael Natterer's avatar
      added vitrual function GimpViewable::get_description() which returns the · 99d93b92
      Michael Natterer authored
      2003-04-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpviewable.[ch]: added vitrual function
      	GimpViewable::get_description() which returns the string that
      	should be presented to the user plus an optional tooltip with more
      	information. The default implementation just returns the object's
      	name and no tooltip.
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpimage.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/core/gimptoolinfo.c: implement get_description().
      
      	* app/core/gimpimagefile.[ch]: ditto. Renamed
      	gimp_imagefile_get_description() to
      	gimp_imagefile_get_desc_string(). Well, um, gimme a better name...
      
      	* app/gui/file-open-dialog.c: changed accordingly.
      
      	* app/file/file-utils.[ch]: renamed readXVThumb() to
      	file_utils_readXVThumb().
      
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.
      
      	* app/widgets/widgets-types.h: removed GimpItemGetNameFunc typedef.
      
      	* app/widgets/gimpcontainerview-utils.[ch]: removed the the actual
      	get_name_funcs. They now live in the core as
      	GimpViewable::get_description() implementations.
      
      	* app/widgets/gimpcontainermenu.[ch]
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainermenuimpl.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpcontainerview.[ch]
      	* app/widgets/gimpmenuitem.[ch]
      	* app/widgets/gimpviewabledialog.c: removed get_name_func stuff
      	and use gimp_viewable_get_description().
      
      	* app/widgets/gimpcontainermenu.[ch]: added "preview_border_width"
      	to gimp_container_menu_set_preview_size().
      
      	* app/widgets/gimpimagedock.c: changed accordingly.
      
      	* app/pdb/fileops_cmds.c: regenerated.
      99d93b92
  11. 07 Apr, 2003 1 commit
  12. 06 Apr, 2003 2 commits
    • Michael Natterer's avatar
      added gimp_list_uniquefy_name() utility function. · 9827ceac
      Michael Natterer authored
      2003-04-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplist.[ch]: added gimp_list_uniquefy_name() utility
      	function.
      
      	* app/core/gimpdatalist.c
      	* app/core/gimpitem.c: use it here instead of duplicating almost
      	the same code.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimptemplateview.[ch]: new widget for editing the
      	template list.
      
      	* app/gui/dialogs-constructors.c: use it.
      
      	* app/gui/Makefile.am
      	* app/gui/templates-commands.[ch]
      	* app/gui/templates-menu.[ch]: new files implementing the context
      	menu for the template list.
      
      	* app/gui/menus.c: register the new menu with the menu factory.
      
      	* app/gui/file-commands.c (file_new_template_callback): uniquefy
      	the new template's name.
      
      	* app/gui/documents-commands.c: fixed typo.
      9827ceac
    • Michael Natterer's avatar
      fixed bug spotted by Pedro Gimeno by moving the alpha calculation to the · b0defba6
      Michael Natterer authored
      2003-04-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpgradient.c (gimp_gradient_get_color_at): fixed bug
      	spotted by Pedro Gimeno by moving the alpha calculation to the
      	bottom so it is not affected by rgb->hsv->rgb conversions
      	(bug #110053).
      b0defba6
  13. 05 Apr, 2003 3 commits
    • Michael Natterer's avatar
      reset object properties only if they are GIMP_PARAM_SERIALIZABLE. · e7fbd810
      Michael Natterer authored
      2003-04-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/config/gimpconfig-utils.c (gimp_config_reset_properties):
      	reset object properties only if they are GIMP_PARAM_SERIALIZABLE.
      
      	* app/core/gimpcontext.[ch]: added a GimpTemplate property.
      
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c: added a template dialog.
      
      	* app/gui/dialogs-menu.c
      	* app/gui/image-menu.c
      	* app/gui/toolbox-menu.c: and menu entries to open it.
      
      	* app/widgets/gimpdnd.[ch]: added DND for GimpTemplates.
      e7fbd810
    • Michael Natterer's avatar
      cosmetic. · 41e7e9e5
      Michael Natterer authored
      2003-04-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimp.c: cosmetic.
      41e7e9e5
    • Michael Natterer's avatar
      gimp_list_reverse() after loading so it is in the right order. · 22bf9608
      Michael Natterer authored
      2003-04-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimp-templates.c (gimp_templates_load):
      	gimp_list_reverse() after loading so it is in the right order.
      22bf9608
  14. 04 Apr, 2003 5 commits
    • Michael Natterer's avatar
      #define GIMP_UNDO_PREVIEW_SIZE 64 · c27429c8
      Michael Natterer authored
      2003-04-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpundo.h: #define GIMP_UNDO_PREVIEW_SIZE 64
      
      	* app/core/gimpundo.c (gimp_undo_create_preview_private):
      	* app/widgets/gimpundoeditor.c (gimp_undo_editor_init): use it.
      c27429c8
    • Sven Neumann's avatar
      made "stock-id" a property of the GimpViewable object. · 1ba5fb8d
      Sven Neumann authored
      2003-04-04  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpviewable.c: made "stock-id" a property of the
      	GimpViewable object.
      1ba5fb8d
    • Michael Natterer's avatar
      reduced GIMP_MAX_IMAGE_SIZE to 2^18. · 650b70cf
      Michael Natterer authored
      2003-04-04  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpbase/gimplimits.h: reduced GIMP_MAX_IMAGE_SIZE to 2^18.
      
      	* libgimpbase/gimputils.[ch]: added gimp_memsize_to_string()
      	utility function (which is definitely broken on 64bit systems).
      
      	* app/core/gimpimage-new.[ch]: removed
      	gimp_image_new_get_memsize_string() and gimp_image_new_create_image().
      	Renamed gimp_image_new_template_new() to
      	gimp_image_new_get_last_template().
      
      	* app/core/gimpimagefile.c
      	* app/display/gimpdisplayshell-title.c: changed accordingly.
      
      	* app/core/gimp-templates.c: changed filename from "templates"
      	to "templaterc".
      
      	* app/core/gimp.[ch]
      	* app/core/gimpimage-duplicate.c: don't include "gimpimage-new.h".
      
      	* app/core/gimptemplate.[ch]: removed
      	gimp_template_calc_memsize().  Instead, added the size and a
      	boolean indicating that it is valid to the GimpTemplate
      	struct. Added GObject::notify() implementation and update the
      	values there.
      
      	* app/widgets/gimppropwidgets.c: connect to the unit property
      	correctly.
      
      	* app/gui/file-new-dialog.c: changed accordingly. Disconnect
      	from the template's "notify" signal while changing all values.
      650b70cf
    • Sven Neumann's avatar
      include stdlib.h for abs(). · 8ea11afa
      Sven Neumann authored
      2003-04-04  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable-transform.c: include stdlib.h for abs().
      8ea11afa
    • Sven Neumann's avatar
      Applied a patch from Øyvind Kolås that adds supersampling to the transform · a11fd461
      Sven Neumann authored
      2003-04-04  Sven Neumann  <sven@gimp.org>
      
      	Applied a patch from Øyvind Kolås that adds supersampling to the
      	transform operations (bug #109817):
      
      	* app/base/tile-manager-private.h
      	* app/base/tile-manager.[ch]: cache the last accessed tile and use
      	it to optimize read_pixel_data_1().
      
      	* app/core/gimpdrawable-transform-utils.c
      	* app/core/gimpdrawable-transform.c: changed the resampling
      	behavior when scaling down.
      a11fd461
  15. 03 Apr, 2003 1 commit
    • Michael Natterer's avatar
      Added preliminary support for image templates. Not finished yet. Addresses · a018b06a
      Michael Natterer authored
      2003-04-03  Michael Natterer  <mitch@gimp.org>
      
      	Added preliminary support for image templates. Not finished
      	yet. Addresses bug #96059. Now we need a volunteer to create
      	a nice collection of default templates...
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimptemplate.[ch]
      	* app/core/gimp-templates.[ch]: new files implementing the new
      	GimpTemplate object and the list of available image templates.
      
      	* app/core/gimp.[ch]: keep a container of templates around.
      
      	* app/core/gimpimage-new.[ch]: ported to use GimpTemplate. Removed
      	struct GimpImageNewValues.
      
      	* app/widgets/gimpcontainermenuimpl.c: changed to show the
      	"(none)" item for a NULL selection also, not only for an empty
      	container.
      
      	* app/widgets/gimppropwidgets.[ch]: added
      	gimp_prop_size_entry_connect() which connects an externally
      	created GimpSizeEntry to object properties. Fixed the size entry
      	code to actually work.
      
      	* app/gui/image-menu.c
      	* app/gui/file-commands.[ch]: added "Save as Template" which
      	creates a new template from any image's properties.
      
      	* app/gui/file-new-dialog.c: use prop_widgets and GimpTemplate.
      	Offer the available templates in a menu at the top of the dialog.
      a018b06a
  16. 02 Apr, 2003 1 commit
  17. 01 Apr, 2003 2 commits
    • Michael Natterer's avatar
      #define GIMP_VIEWABLE_MAX_PREVIEW_SIZE here. · fdb7265a
      Michael Natterer authored
      2003-04-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpviewable.h: #define GIMP_VIEWABLE_MAX_PREVIEW_SIZE
      	here.
      
      	* app/widgets/gimppreview.h
      	* app/widgets/gimppreviewrenderer.h: removed the #defines here.
      
      	* app/core/gimpviewable.c (gimp_preview_get[_popup]_size): check
      	the return values to be within bounds.
      
      	* app/text/gimpfont.c
      	* app/display/gimpdisplayshell-render.c: use the new constant
      	instead of the magic "1024".
      
      	* app/core/gimpdrawable-preview.c: #include our own header file.
      
      	* app/widgets/gimpbrushfactoryview.c
      	* app/widgets/gimpcomponenteditor.c
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainermenu.c
      	* app/widgets/gimpcontainermenuimpl.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpcontainerview.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimppreview.c
      	* app/widgets/gimppreviewrenderer.c: changed accordingly.
      fdb7265a
    • Michael Natterer's avatar
      added VOID__DOUBLE_DOUBLE · a1a1705b
      Michael Natterer authored
      2003-04-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpmarshal.list: added VOID__DOUBLE_DOUBLE
      
      	* app/widgets/gimpnavigationpreview.[ch]: applied patch from
      	Pedro Gimeno that fixes mapping of preview scroll offsets to
      	image scroll offsets. Changed the x, y, width, height members
      	from gint to gdouble. Changed the external API to use exact
      	doubles instead of rounded ints.
      
      	* app/display/gimpnavigationview.c: speak to the navigation
      	preview in exact double values.
      
      	Alltogether fixes bug #109648.
      a1a1705b
  18. 31 Mar, 2003 1 commit
  19. 30 Mar, 2003 3 commits
    • Michael Natterer's avatar
      shut up compiler. · e91d7943
      Michael Natterer authored
      2003-03-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-resize.c (gimp_image_resize): shut up compiler.
      e91d7943
    • Michael Natterer's avatar
      fixed to check the *new* guide position to be within bounds, not the old · 372094ae
      Michael Natterer authored
      2003-03-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-resize.c (gimp_image_resize): fixed to check
      	the *new* guide position to be within bounds, not the old
      	one. Cleanup.
      
      	* app/core/gimpimage-undo-push.c (undo_pop_image_guide): undo
      	guide removal and moves manually instead of calling
      	gimp_image_[add|move]_guide() because the latter may run into
      	g_return_if_fail(position <= gimage->width/height) if the undo
      	step is part of a resize or crop undo group.
      372094ae
    • Michael Natterer's avatar
      app/core/gimpimage-guides.c fixed to accept guide->position == · c736836f
      Michael Natterer authored
      2003-03-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-guides.c
      	* tools/pdbgen/pdb/guides.pdb: fixed to accept guide->position ==
      	image->width/height. Guides live *between* pixels, so they must be
      	able to exist right of/below the image's rightmost/bottom pixel.
      
      	* app/core/gimpimage-crop.c (gimp_image_crop_adjust_guides):
      	fixed guide iteration to not crash when the current guide is
      	removed from the image (fixes bug #109533).
      
      	* app/pdb/guides_cmds.c: regenerated.
      c736836f
  20. 28 Mar, 2003 2 commits
    • Michael Natterer's avatar
      added "position" and "push_undo" parameters to gimp_image_add_[vh]guide(). · f13f80f0
      Michael Natterer authored
      2003-03-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-guides.[ch]: added "position" and "push_undo"
      	parameters to gimp_image_add_[vh]guide(). Start with a refcount
      	of 1, not 0 (EEK). Added gimp_image_guide_[un]ref(). Added
      	"position" parameter to gimp_image_add_guide(). Added new
      	function gimp_image_move_guide(). All functions push guide
      	undos correctly and call gimp_image_update_guide() so this
      	doesn't need to be done by callers.
      
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage.c
      	* app/tools/gimpmeasuretool.c
      	* app/xcf/xcf-load.c
      	* tools/pdbgen/pdb/guides.pdb: greatly simplyfied all places which
      	modify guides: don't fiddle with undo and guide properties
      	manually but simply use the API provided.
      
      	* app/tools/gimpmovetool.[ch]: ditto. Changed everything to
      	create/move the guide on button_release, not button_press. Enable
      	canceling the operation by clicking button3 before releasing
      	button1. Keep the guide drawn at its old position until the move
      	is finished (fixes bug #75349 and bug #109267).
      
      	* app/pdb/guides_cmds.c: regenerated.
      f13f80f0
    • Michael Natterer's avatar
      call gimp_imagefile_update() on success. Ensures that the previews are · fec6f5b3
      Michael Natterer authored
      2003-03-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimagefile.c (gimp_imagefile_save_thumbnail):
      	call gimp_imagefile_update() on success. Ensures that the
      	previews are updated whenever we write the thumbnail.
      fec6f5b3
  21. 27 Mar, 2003 3 commits
    • Sven Neumann's avatar
      added new function gimp_list_sort(). · bed3c858
      Sven Neumann authored
      2003-03-27  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimplist.[ch]: added new function gimp_list_sort().
      
      	* app/text/gimpfontlist.c (gimp_font_list_restore): sort the list
      	after all fonts have been added instead of keeping the list in
      	order while inserting
      bed3c858
    • Sven Neumann's avatar
      app/core/core-enums.[ch] fixed typos spotted by Janne (bug #109322). · 85af9bad
      Sven Neumann authored
      2003-03-27  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage.c: fixed typos spotted by Janne (bug #109322).
      
      2003-03-27  Sven Neumann  <sven@gimp.org>
      
      	* POTFILES.in
      	* de.po: updated.
      85af9bad
    • Sven Neumann's avatar
      added a new marshaller. · ce80c4c0
      Sven Neumann authored
      2003-03-27  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpmarshal.list: added a new marshaller.
      
      	* app/widgets/gimpcontainergridview.[ch]: added a "move_cursor"
      	signal and added keybindings for PageUp/PageDown and Home/End.
      ce80c4c0
  22. 25 Mar, 2003 1 commit
    • Michael Natterer's avatar
      added gimp_font_list_restore() which loads the fonts (not yet). · c2a22d5d
      Michael Natterer authored
      2003-03-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/text/gimpfontlist.[ch]: added gimp_font_list_restore()
      	which loads the fonts (not yet).
      
      	* app/core/gimp.c: call it.
      
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs-menu.c
      	* app/gui/dialogs.c
      	* app/gui/image-menu.c
      	* app/gui/toolbox-menu.c: added font list and grid views.
      
      	* app/gui/menus.c: cosmetic.
      c2a22d5d