1. 29 Mar, 2004 2 commits
    • Sven Neumann's avatar
      changed the default for "help-locales" from NULL to an empty string. Fixes · 951f1589
      Sven Neumann authored
      2004-03-29  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpguiconfig.c: changed the default for "help-locales"
      	from NULL to an empty string. Fixes the generated gimprc man-page.
      
      	* app/config/gimprc-blurbs.h (HELP_LOCALES_BLURB): added missing
      	whitespace.
      
      	* app/widgets/gimphelp.c: use the user's locale if "help-locales"
      	is NULL or the empty string.
      
      	* docs/gimprc.5.in
      	* etc/gimprc: regenerated.
      951f1589
    • Michael Natterer's avatar
      added new group GIMP_UNDO_GROUP_FS_REMOVE. · 110dc4e2
      Michael Natterer authored
      2004-03-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.h (enum GimpUndoType): added new group
      	GIMP_UNDO_GROUP_FS_REMOVE.
      
      	* app/core/gimplayer-floating-sel.c (floating_sel_remove): push an
      	undo group. Fixes undo corruption spotted by Pedro Gimeno.
      110dc4e2
  2. 28 Mar, 2004 3 commits
    • Sven Neumann's avatar
      validate the font name. This should work around the crashes that Windows · dd94d1cb
      Sven Neumann authored
      2004-03-28  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimpfontlist.c (gimp_font_list_add_font): validate the
      	font name. This should work around the crashes that Windows users
      	were experiencing on startup (bug #132366). The real problem needs
      	to be fixed elsewhere though.
      dd94d1cb
    • Michael Natterer's avatar
      when re-adding a layer with mask, don't forget to set layer->mask->removed · 0af7cfa5
      Michael Natterer authored
      2004-03-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-undo-push.c (undo_pop_layer): when re-adding
      	a layer with mask, don't forget to set layer->mask->removed to FALSE.
      0af7cfa5
    • Michael Natterer's avatar
      added "gboolean removed" to the GimpItem struct. Defaults to FALSE. Set it · 77447984
      Michael Natterer authored
      2004-03-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: added "gboolean removed" to the GimpItem
      	struct. Defaults to FALSE. Set it to TRUE in gimp_item_removed().
      	Added public function gimp_item_is_removed().
      
      	* app/core/gimpimage-undo-push.c (undo_pop_layer)
      	(undo_pop_layer_mask) (undo_pop_channel) (undo_pop_vectors):
      	set it to FALSE manually when re-adding something from the
      	undo stack.
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb.pl: don't allow any operation on items which
      	are removed from the image (and exist on the undo stack only).
      	Fixes bug #138311.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/transform_tools_cmds.c: regenerated.
      77447984
  3. 26 Mar, 2004 3 commits
    • Manish Singh's avatar
      don't generate code with tabs. · 83cae161
      Manish Singh authored
      2004-03-26  Manish Singh  <yosh@gimp.org>
      
              * tools/pdbgen/app.pl: don't generate code with tabs.
      
              * tools/pdbgen/pdb/procedural_db.pdb: convert tabs to spaces in
              helper function declaration.
      
              * app/pdb/procedural_db.c: convert tabs to spaces.
      
              * app/pdb/*.c: regenerated, no code changes, only tabs->spaces.
      83cae161
    • Manish Singh's avatar
      kill whitespace in blank lines. · 5c592d52
      Manish Singh authored
      2004-03-26  Manish Singh  <yosh@gimp.org>
      
              * tools/pdbgen/app.pl: kill whitespace in blank lines.
      
              * app/pdb/*.c: regenerated, no code changes, only whitespace.
      5c592d52
    • Michael Natterer's avatar
      return NULL tiles if the matrix would transform the drawable into nothing. · ef798bbc
      Michael Natterer authored
      2004-03-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable-transform.c
      	(gimp_drawable_transform_tiles_affine): return NULL tiles if the
      	matrix would transform the drawable into nothing. Fixes the
      	core-crashing part of bug #138117 and makes the script fail
      	with an execution error.
      ef798bbc
  4. 25 Mar, 2004 3 commits
  5. 23 Mar, 2004 1 commit
    • Michael Natterer's avatar
      The floating_sel code is really from the stone age: · e8526c97
      Michael Natterer authored
      2004-03-23  Michael Natterer  <mitch@gimp.org>
      
      	The floating_sel code is really from the stone age:
      
      	* app/core/gimplayer-floating-sel.c (floating_sel_attach): call
      	gimp_image_floating_sel() once and work on the return value
      	instead of accessing gimage->floating_sel directly twice and
      	calling gimp_image_floating_sel() for the thrid access.
      
      	* app/core/gimpimage.c (gimp_image_floating_sel): no need to
      	return NULL if gimage->floating_sel is NULL, just always return
      	gimage->floating_sel.
      e8526c97
  6. 22 Mar, 2004 9 commits
  7. 21 Mar, 2004 4 commits
    • Sven Neumann's avatar
      added gimp_undo_type_to_name() a similar function used to live in · 2326e1b9
      Sven Neumann authored
      2004-03-21  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpundo.[ch]: added gimp_undo_type_to_name() a similar
      	function used to live in gimpimage-undo.[ch].
      
      	* app/core/gimpitemundo.c (gimp_item_undo_new): allow NULL as name
      	and generate it from the undo_type then.
      
      	* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_undu(),
      	new function that allows to push an undo on the image.
      
      	* app/text/Makefile.am
      	* app/text/text-types.h
      	* app/text/gimptextundo.[ch]: added GimpTextUndo, derived from
      	GimpItemUndo.
      
      	* app/core/gimpimage-undo-push.c (gimp_image_undo_push_text_layer):
      	use the new code and simply push a text undo here.
      
      	* app/tools/gimptexttool.c: compress text undos by peeking at the
      	undo stack. Fixes bug #137766.
      2326e1b9
    • Michael Natterer's avatar
      added run-time version check and do the workaround for bug #136636 only if · e0d1ddb0
      Michael Natterer authored
      2004-03-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-callbacks.c
      	(gimp_display_shell_events): added run-time version
      	check and do the workaround for bug #136636 only if
      	the Gtk+ version is < 2.2.5.
      
      	* m4macros/gimp-2.0.m4: require gimp >= 2.0.0
      e0d1ddb0
    • Sven Neumann's avatar
      corrected #define for the debug menu. · d321c130
      Sven Neumann authored
      2004-03-21  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/debug-commands.h: corrected #define for the debug menu.
      d321c130
    • Michael Natterer's avatar
      modify the event_box and preview styles in GtkWidget::style_set() instead · 5c74d2d3
      Michael Natterer authored
      2004-03-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpthumbbox.c: modify the event_box and preview
      	styles in GtkWidget::style_set() instead of in
      	gimp_thumb_box_new() so they follow theme changes correctly and
      	the labels stay visible when switching to an "inverse" theme.
      5c74d2d3
  8. 20 Mar, 2004 12 commits
    • Simon Budig's avatar
      app/.cvsignore docs/.cvsignore updated to ignore 2.0 stuff :-) · 62c63bf9
      Simon Budig authored
      2004-03-20  Simon Budig  <simon@gimp.org>
      
      	* app/.cvsignore
      	* docs/.cvsignore
      	* tools/.cvsignore: updated to ignore 2.0 stuff  :-)
      62c63bf9
    • Pedro Gimeno's avatar
      Fixed several off-by-one problems in display: · 9127a54d
      Pedro Gimeno authored
      2004-03-20  Pedro Gimeno  <pggimeno@wanadoo.es>
      
      	Fixed several off-by-one problems in display:
      
      	* app/display/gimpdisplayshell.h (PROJ_ROUND): New macro to apply
      	to a float the same rounding method as the one used when rendering.
      	(SCALEX, SCALEY): Use PROJ_ROUND instead of truncating.
      
      	* app/display/gimpdisplayshell-transform.c
      	(gimp_display_shell_transform_xy): Accept gdouble image coordinates
      	even if the returned screen coordinates are integer. Use PROJ_ROUND
      	instead of (gint) to apply proper rounding. Fixes bug #137566.
      
      	* app/display/gimpdisplayshell-transform.h
      	(gimp_display_shell_transform_xy): changed accordingly.
      
      	* app/display/gimpdisplayshell-draw.c
      	* app/tools/gimpdrawtool.c: make sure everywhere that PROJ_ROUND
      	is used either directly or through gimp_display_shell_transform_xy,
      	instead of using arbitrary rounding methods.
      9127a54d
    • Sven Neumann's avatar
      set version number to 2.0.0, version string to "2.0rc1". · f97ae7d7
      Sven Neumann authored
      2004-03-20  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: set version number to 2.0.0, version string to
      	"2.0rc1".
      
      	* app/Makefile.am
      	* libgimp/Makefile.am
      	* libgimpbase/Makefile.am
      	* libgimpcolor/Makefile.am
      	* libgimpmath/Makefile.am
      	* libgimpmodule/Makefile.am
      	* libgimpthumb/Makefile.am
      	* libgimpwidgets/Makefile.am
      	* tools/Makefile.am: changed 1.3 to 2.0 all over the place.
      
      	* README
      	* NEWS: updated for the 2.0rc1 release.
      f97ae7d7
    • Sven Neumann's avatar
      it wasn't such a good idea to let GimpConfig take care of the text when · 7fdd4af6
      Sven Neumann authored
      2004-03-20  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimptextlayer.c: it wasn't such a good idea to let
      	GimpConfig take care of the text when duplicating a text layer; it
      	didn't create a copy. Do that manually again; fixes bug #137786.
      7fdd4af6
    • Sven Neumann's avatar
      don't take the image from tool->gdisp, this might be a NULL pointer. · 584b3ceb
      Sven Neumann authored
      2004-03-20  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptexttool.c (gimp_text_tool_create_vectors): don't
      	take the image from tool->gdisp, this might be a NULL pointer.
      
      	* app/core/gimpimage-undo-push.c: removed debugging output.
      584b3ceb
    • Sven Neumann's avatar
      avoid to set the unit property with every size change; only set it if it · 20d03407
      Sven Neumann authored
      2004-03-20  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimppropwidgets.c (gimp_prop_size_entry_callback):
      	avoid to set the unit property with every size change; only set it
      	if it actually changed.
      
      	* app/core/gimpimage-undo-push.c (gimp_image_undo_push_text_layer):
      	allow to pass a GParamSpec that identifies a single text property
      	to be changed. In this case, don't store a GimpText object on the
      	undo stack but only the changed value.
      
      	* app/tools/gimptexttool.c: use the new undo feature to reduce the
      	memory footprint of text undo for the common case.
      
      	* app/text/gimptextlayer.c: changed accordingly.
      20d03407
    • Simon Budig's avatar
      Applied slightly modified patch from Sven. When the quickmask has a · 9d616282
      Simon Budig authored
      2004-03-20  Simon Budig  <simon@gimp.org>
      
      	* app/core/gimpimage-qmask.c: Applied slightly modified patch
      	from Sven. When the quickmask has a floating selection, anchor
      	it before loading the selection and deleting the qmask channel.
      
      	Fixes bug #137170.
      9d616282
    • Simon Budig's avatar
      new callbacks to convert the current vector to the selection. · 63177de7
      Simon Budig authored
      2004-03-20  Simon Budig  <simon@gimp.org>
      
      	* app/gui/select-commands.[ch]: new callbacks to convert the
      	current vector to the selection.
      
      	* app/gui/image-menu.c: hook it into the menu. Default shortcut
      	is Shift+V.
      63177de7
    • Sven Neumann's avatar
      use the same undo group logic as in the text tool. Not really necessary · c4c19933
      Sven Neumann authored
      2004-03-20  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimptextlayer.c (gimp_text_layer_set): use the same
      	undo group logic as in the text tool. Not really necessary since
      	this function must not be called on modified text layers, but it's
      	more consistent this way.
      c4c19933
    • Simon Budig's avatar
      Assigned "b" as the default shortcut for the path tool ("Bezier"). · a08efc86
      Simon Budig authored
      2004-03-20  Simon Budig  <simon@gimp.org>
      
      	* app/tools/gimpvectortool.c: Assigned "b" as the default shortcut
      	for the path tool ("Bezier").
      
      	Fixes bug #137753.
      a08efc86
    • Sven Neumann's avatar
      update the text editor when the text changes (for example when undoing · fc3846e4
      Sven Neumann authored
      2004-03-20  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptexttool.c: update the text editor when the text
      	changes (for example when undoing text changes). Push a drawable
      	undo when applying text changes to a modified text layer.
      fc3846e4
    • Sven Neumann's avatar
      don't fiddle with the item size, gimp_drawable_set_tiles() does the right · 7e82e309
      Sven Neumann authored
      2004-03-20  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimptextlayer.c (gimp_text_layer_render): don't fiddle
      	with the item size, gimp_drawable_set_tiles() does the right thing.
      7e82e309
  9. 19 Mar, 2004 3 commits
    • Simon Budig's avatar
      Make it possible to refresh the preview of an undo step. · 5e47b5a0
      Simon Budig authored
      2004-03-20  Simon Budig  <simon@gimp.org>
      
      	* app/core/gimpundo.[ch]: Make it possible to refresh the preview
      	of an undo step.
      
      	* app/tools/gimpeditselectiontool.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimplayertreeview.c: refresh the preview when
      	compressing undos. This ensures that the last preview in the undo
      	history always reflects the current state of the image.
      5e47b5a0
    • Sven Neumann's avatar
      fixed a bug that Mitch spotted. · 8214f172
      Sven Neumann authored
      2004-03-20  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage-undo-push.c (undo_pop_text_layer): fixed a
      	bug that Mitch spotted.
      8214f172
    • Sven Neumann's avatar
      don't exchange the text_layer's text object but sync it with the text · cbbe4f38
      Sven Neumann authored
      2004-03-20  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage-undo-push.c (undo_pop_text_layer): don't
      	exchange the text_layer's text object but sync it with the text
      	object from the undo step.
      
      	* app/text/gimptextlayer.c (gimp_text_layer_set): in case the
      	layer has a mask, push an undo group around the text modifications.
      
      	* app/tools/gimptexttool.c (gimp_text_tool_idle_apply): push a
      	text layer undo before applying the text changes.
      cbbe4f38