1. 01 Oct, 2003 11 commits
  2. 30 Sep, 2003 18 commits
    • Sven Neumann's avatar
      added an API to allow for sub-pixel sizes in spinbuttons connected to a · 2f855afa
      Sven Neumann authored
      2003-10-01  Sven Neumann  <sven@gimp.org>
      
      	* libgimpwidgets/gimpunitmenu.[ch]:
      	* libgimpwidgets/gimpwidgets.c: added an API to allow for
      	sub-pixel sizes in spinbuttons connected to a GimpUnitMenu.
      	Make GimpUnitMenu emit "unit-changed" when the unit is changed
      	programmatically.
      
      	* libgimpwidgets/gimpsizeentry.[ch}: added a similar API here.
      	Make GimpSizeEntry emit "unit-changed" when the unit is changed
      	programmatically. The other signals will need similar changes.
      
      	* plug-ins/common/gauss_rle.c
      	* plug-ins/common/gauss_iir.c
      	* app/widgets/gimpstrokeeditor.c: use the new API.
      2f855afa
    • Sven Neumann's avatar
      accept NULL as blurb and use the name as fallback for a missing blurb. · 1667acd3
      Sven Neumann authored
      2003-09-30  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpdockable.c (gimp_dockable_new): accept NULL
      	as blurb and use the name as fallback for a missing blurb.
      
      	* app/gui/dialogs-constructors.c: removed the "Foo List" and "Foo
      	Grid" blurbs. Only left blurbs where the longer name makes sense.
      1667acd3
    • Michael Natterer's avatar
      added a "Rename Saved Options" submenu and factored on-the-fly submenu · 36c83350
      Michael Natterer authored
      2003-09-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/tool-options-menu.c: added a "Rename Saved Options"
      	submenu and factored on-the-fly submenu creation out to a utility
      	function.
      
      	* app/gui/tool-options-commands.[ch]: added rename callback.
      
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_TOOL_OPTIONS_RENAME.
      
      	* app/widgets/gimptooloptionseditor.c
      	(gimp_tool_options_editor_menu_popup): pass "button = 0" to
      	gtk_menu_popup() because we show the menu on button_release, not
      	on button_press.
      36c83350
    • Michael Natterer's avatar
      removed "width", "height" and "antialias" from the GimpScanConvert struct · 657b49b4
      Michael Natterer authored
      2003-09-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpscanconvert.[ch]: removed "width", "height" and
      	"antialias" from the GimpScanConvert struct and from
      	gimp_scan_convert_new(). Removed gimp_scan_convert_to_channel().
      	Added "gboolean antialias" to gimp_scan_convert_render().
      	Some general cleanup.
      
      	* app/core/gimpdrawable-stroke.c
      	* app/core/gimpimage-mask-select.c
      	* app/tools/gimpiscissorstool.c: changed accordingly.
      
      	* app/core/gimpdrawable-stroke.c: renamed
      	gimp_drawable_stroke_scanconvert_stroke() to
      	gimp_drawable_stroke_scan_convert() and removed the "gboolean
      	use_mask_bounds" parameter since we can't decide if it's the
      	selection's boundary which is stroked. Instead use
      	gimp_channel_is_empty() on the selection which will return FALSE
      	while the selection is being stroked.
      
      	* app/paint/gimppaintcore-stroke.c: cleanup.
      
      	(gimp_paint_core_stroke_boundary): don't use "gint i" twice.
      
      	(gimp_paint_core_stroke_vectors): no need to manually close a
      	closed stroke.
      657b49b4
    • Michael Natterer's avatar
      pass the channel's offsets to gimp_paint_core_stroke_boundary(). · 5426aba9
      Michael Natterer authored
      2003-09-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpchannel.c (gimp_channel_stroke): pass the channel's
      	offsets to gimp_paint_core_stroke_boundary().
      5426aba9
    • Michael Natterer's avatar
      app/widgets/gimpcontainergridview.c implement GtkWidget::popup_menu() and · 33d35e65
      Michael Natterer authored
      2003-09-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainertreeview.c: implement
      	GtkWidget::popup_menu() and pop up the menu from the selected
      	item. If there is no selected item, return FALSE to
      	makeGimpDockable pop up the menu from its menu button.
      33d35e65
    • Sven Neumann's avatar
      accept a list of dialog identifiers and try to raise an existing dockable · b563329c
      Sven Neumann authored
      2003-09-30  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/dialogs-commands.c (dialogs_create_dockable_cmd_callback):
      	accept a list of dialog identifiers and try to raise an existing
      	dockable from the list. If that fails, create a new one from the
      	first entry.
      
      	* app/gui/image-menu.c
      	* app/gui/toolbox-menu.c: specify alternative dialog identifiers
      	where appropriate.
      
      	* app/vectors/gimpstroke.c (gimp_stroke_interpolate): use NULL
      	instead of 0.
      b563329c
    • Simon Budig's avatar
      Accept NULL for ret_closed. · 20683bed
      Simon Budig authored
      2003-09-30  Simon Budig  <simon@gimp.org>
      
      	* app/vectors/gimpbezierstroke.c:
      	(gimp_bezier_stroke_interpolate) Accept NULL for ret_closed.
      
      	* app/widgets/gimppreviewrenderervectors.c: removed "closed"
      	variable.
      
      	* app/core/gimpdrawable-stroke.[ch]: Factored out the final
      	rendering of the scanconvert. Implemented
      	gimp_drawable_stroke_boundary. Unfortunately the results are
      	not really good, since the boundary calculation code is
      	too exact for this purpose. I have a rough idea how to fix this.
      
      	* app/core/gimpchannel.c: changed accordingly.
      20683bed
    • Sven Neumann's avatar
      fixed preview of closed paths. · 66134f9a
      Sven Neumann authored
      2003-09-30  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimppreviewrenderervectors.c: fixed preview of
      	closed paths.
      66134f9a
    • Pablo Gonzalo del Campo's avatar
      Updated Spanish translation. · 1359a914
      Pablo Gonzalo del Campo authored
      2003-09-30  Pablo Gonzalo del Campo  <pablodc@bigfoot.com>
      
              * es.po: Updated Spanish translation.
      1359a914
    • Sven Neumann's avatar
      app/widgets/gimppreviewrenderer.c simplified drawing code to a point where · dc7a068f
      Sven Neumann authored
      2003-09-30  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimppreviewrenderer.c
      	* app/widgets/gimppreviewrenderervectors.c: simplified drawing
      	code to a point where it becomes readable again. Draw centered
      	into the draw_area, using the size of the renderer.
      dc7a068f
    • Hasbullah Bin Pit's avatar
      Added Translation by MIMOS Open Source Development Group <ismas@mimos.my> · 5df103ca
      Hasbullah Bin Pit authored
      2003-09-30  Hasbullah Bin Pit <sebol@ikhlas.com>
      
              * ms.po: Added Translation by
                      MIMOS Open Source Development Group <ismas@mimos.my>
      5df103ca
    • Michael Natterer's avatar
      cleanup. · d0e1c1c6
      Michael Natterer authored
      2003-09-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore-stroke.c: cleanup.
      
      	(gimp_paint_core_stroke_boundary): don't push a separate undo
      	for each part of the boundary.
      
      	* app/core/gimpdrawable-stroke.[ch]: added empty stub
      	gimp_drawable_stroke_boundary(). Changed
      	gimp_drawable_stroke_vectors() to take the GimpStrokeOptions as
      	second parameter.
      
      	* app/core/gimpchannel.c (gimp_channel_stroke): use it. No need
      	to push an undo group around gimp_paint_core_stroke_boundary().
      
      	* app/vectors/gimpvectors.c: changed accordingly.
      
      	* app/widgets/gimpselectioneditor.[ch]: added a GimpStrokeItemFunc
      	pointer and use it for stroking.
      
      	* app/gui/edit-commands.[ch] (edit_stroke_selection): a
      	GimpStrokeItemFunc which strokes the selection using the
      	stroke-dialog.
      
      	* app/gui/dialogs-constructors.c: use it for the selection editor.
      d0e1c1c6
    • Simon Budig's avatar
      replaced gimp_scan_convert_set_resolution with · fba6a1a7
      Simon Budig authored
      2003-09-30  Simon Budig  <simon@gimp.org>
      
      	* app/core/gimpscanconvert.[ch]: replaced
      	gimp_scan_convert_set_resolution with
      	gimp_scan_convert_set_pixel_ratio where you specify the pixel
      	ratio (width/height). Also made the stroke-width consistent
      	with other places in the gimp by using the Y-Resolution as
      	the base for the calculations.
      
      	* app/core/gimpdrawable-stroke.c: changed accordingly.
      fba6a1a7
    • Sven Neumann's avatar
      updated. · b05d950f
      Sven Neumann authored
      2003-09-30  Sven Neumann  <sven@gimp.org>
      
      	* NEWS: updated.
      b05d950f
    • Sven Neumann's avatar
      fixed typo · 6cf6db9f
      Sven Neumann authored
      6cf6db9f
    • Sven Neumann's avatar
      app/app-docs.sgml app/app-sections.txt updated. · f70db199
      Sven Neumann authored
      2003-09-30  Sven Neumann  <sven@gimp.org>
      
      	* app/app-docs.sgml
      	* app/app-sections.txt
      	* app/app.types: updated.
      f70db199
    • Sven Neumann's avatar
      app/core/gimpdrawable-stroke.c app/core/gimpstrokeoptions.[ch] removed the · f4c7ef99
      Sven Neumann authored
      2003-09-30  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable-stroke.c
      	* app/core/gimpstrokeoptions.[ch]
      	* app/gui/stroke-dialog.c: removed the resolution property again.
      	The object should stay resolution independent. The resolution can
      	be taken from the image it is used with.
      f4c7ef99
  3. 29 Sep, 2003 11 commits
    • Simon Budig's avatar
      Added support for setting X- and Y-resolution for stroking paths. The · 37614628
      Simon Budig authored
      2003-09-30  Simon Budig  <simon@gimp.org>
      
      	* app/core/gimpscanconvert.[ch]: Added support for setting
      	X- and Y-resolution for stroking paths. The width of a path
      	has to be given in pixels, using X-resolution.
      
      	* app/core/gimpstrokeoptions.[ch]: Added "resolution" property,
      	so that conversion between various width-units can happen.
      	Should be set to the target images X-resolution.
      
      	* app/gui/stroke-dialog.c: set the resolution of the options.
      
      	* app/core/gimpdrawable-stroke.c: Use that stuff, cleanup.
      37614628
    • Sven Neumann's avatar
      app/core/Makefile.am new files with preview code factored out of · 489cff53
      Sven Neumann authored
      2003-09-29  Sven Neumann  <sven@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpitem-preview.[ch]: new files with preview code
      	factored out of GimpDrawable.
      
      	* app/core/gimpdrawable-preview.[ch]: code removed here.
      
      	* app/core/gimpdrawable.c
      	* app/core/gimpitem.c: let GimpItem implement
      	GimpViewable::get_preview_size and GimpViewable::get_popup_size.
      
      	* app/widgets/gimppreviewrenderervectors.c: simple scale to the
      	renderer's size; it already respects the aspect ratio.
      489cff53
    • Michael Natterer's avatar
      connect to the "add" and "remove" signals of the current tool_option's · 6a7a69ee
      Michael Natterer authored
      2003-09-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimptooloptionseditor.c: connect to the "add" and
      	"remove" signals of the current tool_option's presets container
      	and set the "Restore" and "Delete" buttons insensitive when there
      	are no saved tool options. Also show the "Enter Name" dialog
      	directly instead of popping up a menu with only one item.
      6a7a69ee
    • Michael Natterer's avatar
      new function for stuff which needs to be done once, not on every · dedbe33b
      Michael Natterer authored
      2003-09-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/tool-options-menu.[ch] (tool_options_menu_setup): new
      	function for stuff which needs to be done once, not on every
      	tool_options_menu_update(). Cleanup.
      
      	* app/gui/menus.c: register it as setup_func of <ToolOptions>.
      
      	* app/gui/tool-options-commands.c: removed the "Reset"
      	implementations and activate GimpToolOptionsEditor's buttons
      	accordingly.
      
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_TOOL_OPTIONS_DELETE.
      
      	* app/widgets/gimptooloptionseditor.[ch]: moved "Reset"
      	implementations to this file. Added "Delete" button. Pop up the
      	"Save", "Restore" and "Delete" submenus of the <ToolOptions>
      	item_factory when the resp. buttons are clicked.
      dedbe33b
    • Michael Natterer's avatar
      follow tool_options file moving/adding. · 695fb982
      Michael Natterer authored
      2003-09-29  Michael Natterer  <mitch@gimp.org>
      
      	* POTFILES.in: follow tool_options file moving/adding.
      695fb982
    • Michael Natterer's avatar
      added a GimpContainer of tool options presets. · d1ba8704
      Michael Natterer authored
      2003-09-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimptoolinfo.[ch]: added a GimpContainer of tool
      	options presets.
      
      	* app/core/gimptooloptions.[ch] (gimp_tool_options_set_property):
      	silently accept setting the *same* tool_info again.
      
      	(gimp_tool_options_build_filename): is public now.
      
      	* app/tools/gimp-tools.c (gimp_tools_restore,save): load and save
      	the presets container.
      
      	* app/gui/tool-options-dialog.[ch]: removed.
      
      	* app/gui/tool-options-commands.[ch]
      	* app/gui/tool-options-menu.[ch]: new files implementing a menu
      	for the new GimpToolOptionsEditor widget. Has submenus for saving,
      	loading, and deleting tool options to/from the
      	tool_info->options_presets container.
      
      	* app/gui/Makefile.am
      	* app/gui/dialogs-constructors.c
      	* app/gui/menus.c: changed accordingly.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimptooloptionseditor.[ch]: the tool options dialog
      	as proper widget. The "Load" and "Save" buttons still do the same
      	stuff as before. Will make them use the new presets since making
      	them do something useful was the reason for this whole change.
      
      	* app/widgets/gimphelp-ids.h: added missing help IDs for the tool
      	options dialog.
      d1ba8704
    • Michael Natterer's avatar
      Fixed handling of G_PARAM_CONSTRUCT_ONLY properties: · 017d1839
      Michael Natterer authored
      2003-09-29  Michael Natterer  <mitch@gimp.org>
      
      	Fixed handling of G_PARAM_CONSTRUCT_ONLY properties:
      
      	* app/config/gimpconfig.c (gimp_config_iface_duplicate): build
      	a GParameter array of G_PARAM_CONSTRUCT_ONLY properties and
      	use g_object_newv() instead of g_object_new() to create the
      	copy.
      
      	* app/config/gimpconfig-utils.c
      	(gimp_config_copy_properties)
      	(gimp_consif_reset_properties): don't try to copy/reset
      	G_PARAM_CONSTRUCT_ONLY properties because it is impossible.
      
      	(gimp_config_connect_notify): ditto. Also don't try to read
      	from unreadable or write to unwritable properties.
      017d1839
    • Michael Natterer's avatar
      minor cleanups. · 2b57062c
      Michael Natterer authored
      2003-09-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpcroptool.c: minor cleanups.
      
      	(gimp_crop_tool_modifier_key): s/crop-type/crop-mode/. Fixes tool
      	toggling which was broken after my GimpCropMode change.
      
      	(crop_tool_crop_image): replaced parameter "gboolean crop_layers"
      	by "GimpCropMode crop_mode". Makes its callers simpler and more
      	readable.
      2b57062c
    • Simon Budig's avatar
      Fixed a bad crash (Thanks to Sven for spotting that). Minor cleanups. · dada777a
      Simon Budig authored
      2003-09-29  Simon Budig  <simon@gimp.org>
      
      	* app/widgets/gimppreviewrenderervectors.c: Fixed a bad
      	crash (Thanks to Sven for spotting that). Minor cleanups.
      dada777a
    • Simon Budig's avatar
      Made the preview respect the aspect ratio and resolutions of the image. · 02f375b8
      Simon Budig authored
      2003-09-29  Simon Budig  <simon@gimp.org>
      
      	* app/widgets/gimppreviewrenderervectors.c: Made the preview
      	respect the aspect ratio and resolutions of the image. There
      	apparently still is an off-by-one error in it.
      
      	* app/tools/gimpvectortool.c: (Hopefully) fixed a crash when a new
      	image gets opened with the vectors tool active.
      02f375b8
    • Marco Ciampa's avatar
      Updated italian translation. · 6f061970
      Marco Ciampa authored
      6f061970