1. 14 Mar, 2004 8 commits
    • Sven Neumann's avatar
      app/tools/gimpcolorpickertool.c app/tools/gimpcroptool.c · 63bb032f
      Sven Neumann authored
      2004-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptransformtool.c: don't set tool dialogs transient
      	to the image window. Fixes bug #128833.
      63bb032f
    • Sven Neumann's avatar
      don't abuse the SPLASHSCREEN window type hint, instead make the about · 7ed142c7
      Sven Neumann authored
      2004-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/about-dialog.c: don't abuse the SPLASHSCREEN window type
      	hint, instead make the about dialog a popup window and center it
      	explicitely.
      7ed142c7
    • Sven Neumann's avatar
      allow to pass NULL as parent widget. · 9e0af0e2
      Sven Neumann authored
      2004-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimptooldialog.c (gimp_tool_dialog_new): allow to
      	pass NULL as parent widget.
      9e0af0e2
    • Sven Neumann's avatar
      some code cleanup. · 5e32bf4d
      Sven Neumann authored
      2004-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/splash.c: some code cleanup.
      
      	* app/gui/about_dialog.c: typo.
      5e32bf4d
    • Simon Budig's avatar
      app/core/gimpimage.[ch] introduced a freeze counter, so that · 657bd9ff
      Simon Budig authored
      2004-03-14  Simon Budig  <simon@gimp.org>
      
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimage-undo.c: introduced a freeze counter, so
      	that undo_freeze(); undo_freeze(); undo_thaw(); no longer
      	results in an thawed undo stack.
      
      	Fixes Bug #124176.
      
      	This might reveal other places in the code where
      	gimp_image_undo_freeze/thaw or gimp_image_undo_disable/enable
      	were used in an inconsistent (not-paired) manner.
      
      	* app/file/file-open.c: e.g. here, where _enable was called on
      	the new image. The intention was to free a potential undo stack,
      	so now call gimp_image_undo_free() instead.
      657bd9ff
    • Sven Neumann's avatar
      removed all idle handling here. Changes to the text-layer's text object · f67c16ec
      Sven Neumann authored
      2004-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimptextlayer.[ch]: removed all idle handling here.
      	Changes to the text-layer's text object all applied synchronously.
      
      	* app/display/gimpdisplayshell-dnd.c
      	* app/text/gimptextlayer-transform.c: removed now obsolete calls
      	to gimp_text_layer_flush().
      
      	* app/tools/gimptexttool.[ch]: queue up changes to the proxy text
      	object and apply them in one go from a low-priority idle handler.
      	This is basically what GimpTextLayer used to do.
      f67c16ec
    • Sven Neumann's avatar
      app/tools/gimptextoptions.[ch] introduced a proxy GimpText object that is · 0993486a
      Sven Neumann authored
      2004-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptextoptions.[ch]
      	* app/tools/gimptexttool.[ch]: introduced a proxy GimpText object
      	that is tied to the GimpTextOptions for the lifetime of the text
      	tool. Brings us one step closer to text undo...
      0993486a
    • Michael Natterer's avatar
      app/core/gimpdrawable-offset.c (gimp_drawable_offset) · d1fe0f9e
      Michael Natterer authored
      2004-03-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable-offset.c (gimp_drawable_offset)
      	* app/core/gimpdrawable.c (gimp_drawable_scale) (gimp_drawable_resize)
      	* app/core/gimplayer.c (gimp_layer_convert) (gimp_layer_add_alpha):
      	use gimp_drawable_set_tiles() instead of fiddling with
      	drawable->tiles, ->bytes etc. manually.
      d1fe0f9e
  2. 13 Mar, 2004 15 commits
    • Michael Natterer's avatar
      made enum GimpDialogVisibilityState and GIMP_DIALOG_VISIBILITY_KEY public. · 6f1612db
      Michael Natterer authored
      2004-03-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdialogfactory.[ch]: made enum
      	GimpDialogVisibilityState and GIMP_DIALOG_VISIBILITY_KEY public.
      
      	* app/widgets/gimpsessioninfo.c (gimp_session_info_get_geometry):
      	only look at GTK_WIDGET_VISIBLE(info->widget) if the dialog's
      	visibility state is GIMP_DIALOG_VISIBILITY_UNKNOWN and map the
      	visibility state to info->open otherwise.
      
      	Fixes bug #137076.
      6f1612db
    • Sven Neumann's avatar
      applied a patch from Pedro Gimeno that fixes the crash reported in bug · a479b558
      Sven Neumann authored
      2004-03-13  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable-blend.c (gradient_calc_shapeburst_*):
      	applied a patch from Pedro Gimeno that fixes the crash reported in
      	bug #136219.
      a479b558
    • Michael Natterer's avatar
      Completed the fix for bug #136702: · 2498c665
      Michael Natterer authored
      2004-03-13  Michael Natterer  <mitch@gimp.org>
      
      	Completed the fix for bug #136702:
      
      	* app/core/gimpitem.[ch]: added "gboolean supersample" and
      	"gint recursion_level" to GimpItem::transform().
      
      	* app/core/gimpitem-linked.[ch]	(gimp_item_linked_transform): ditto.
      
      	* app/core/gimpdrawable-transform.[ch]: added "recursion_level"
      	parameters and removed the RECURSION_LEVEL #define.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/core/gimplayer.c
      	* app/vectors/gimpvectors.c: changed accordingly.
      
      	* app/tools/gimptransformoptions.[ch]: added new property
      	"recursion_level" which is not serializable and has no GUI. Pretty
      	useless, but it's IMHO better to hardcode the default value here
      	than in gimpdrawable-transform.c
      
      	* app/tools/gimptransformtool.c: changed accordingly.
      
      	* tools/pdbgen/pdb/transform_tools.pdb: hardcode "recursion_level"
      	to 3.
      
      	* app/pdb/transform_tools_cmds.c: regenerated.
      2498c665
    • Simon Budig's avatar
      app/widgets/widgets-enums.h New function · b3cc1578
      Simon Budig authored
      2004-03-13  Simon Budig  <simon@gimp.org>
      
      	* app/widgets/widgets-enums.h
      	* app/widgets/gimppreviewrenderer.[ch]: New function
      	gimp_preview_renderer_set_border_type that takes an enum instead
      	of an color to set the color of the border.
      
      	* app/widgets/gimpcellrendererviewable.c: check for the
      	current border_type and change it to black when it is white and
      	the cell is unselected. This should be solved in a better way
      	later.
      
      	Fixes bug #135023.
      
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpcontainergridview.c: changed to use the new
      	function.
      b3cc1578
    • Sven Neumann's avatar
      override the "gradient_repeat" property inherited from GimpPaintOptions · 27fc81be
      Sven Neumann authored
      2004-03-13  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpblendoptions.c: override the "gradient_repeat"
      	property inherited from GimpPaintOptions and set the default to
      	GIMP_REPEAT_NONE. Seems more appropriate for the blend tool.
      27fc81be
    • Sven Neumann's avatar
      implement GimpDrawable functions that affect the tiles and mark the text · f81e2f3d
      Sven Neumann authored
      2004-03-13  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimptextlayer.[ch]: implement GimpDrawable functions
      	that affect the tiles and mark the text layer as modified. Added
      	new function gimp_drawable_is_text_layer() that checks whether a
      	drawable is an unmodified text layer.
      
      	* app/display/gimpdisplayshell-dnd.c (gimp_display_shell_bucket_fill):
      	use gimp_drawable_is_text_layer() and only set the text color if the
      	text layer is unmodified. Fixes bug #136623.
      f81e2f3d
    • Sven Neumann's avatar
      added new virtual function GimpDrawable::set_tiles(). · c179f9ac
      Sven Neumann authored
      2004-03-13  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: added new virtual function
      	GimpDrawable::set_tiles().
      
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c: push an undo before chaining up in
      	set_tiles().
      
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-convert.c
      	* app/tools/gimptransformtool.c: use gimp_drawable_set_tiles()
      	instead of fiddling with the drawable's tile manager directly.
      c179f9ac
    • Sven Neumann's avatar
      for consistency, changed the label from "Supersample" to "Supersampling". · beaed82c
      Sven Neumann authored
      2004-03-13  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptransformoptions.c (gimp_transform_options_gui): for
      	consistency, changed the label from "Supersample" to "Supersampling".
      beaed82c
    • Sven Neumann's avatar
      use g_printerr() for debug output. · 89cec082
      Sven Neumann authored
      22004-03-13  Sven Neumann  <sven@gimp.org>
      
      	* app/paint-funcs/paint-funcs.c: use g_printerr() for debug output.
      
      	* app/base/tile-manager.c: cleaned up stone-old debug output.
      89cec082
    • Raphael Quinet's avatar
      added new "supersample" property to GimpTransformOptions and added · 59dfdac9
      Raphael Quinet authored
      2004-03-13  Raphael Quinet  <quinet@gamers.org>
      
      	* app/tools/gimptransformoptions.[ch]: added new "supersample"
      	property to GimpTransformOptions and added corresponding check
      	button in the option dialog for the transform tools.
      
      	* app/core/gimpdrawable-transform.[ch],
      	* app/core/gimpdrawable.c,
      	* app/tools/gimptransformtool.c: new "gboolean supersample"
      	parameter added to gimp_drawable_transform_tiles_affine() and
      	gimp_drawable_transform_affine().
      
      	* tools/pdbgen/pdb/transform_tools.pdb: ditto.  For the PDB calls,
      	the supersample parameter is set to FALSE for "rotate" and "shear"
      	and set to TRUE for "perspective", "scale" and "transform_2d".
      
      	* app/pdb/transform_tools_cmds.c: regenerated.
      
      	The new "supersample" option lets the user decide if the
      	transformations should use supersampling (RECURSION_LEVEL 3) or
      	not.  This fixes both bug #136702 and bug #109817.  Hopefully for
      	good, this time.
      59dfdac9
    • Raphael Quinet's avatar
      added missing semicolon that was breaking the build. · 40825ad0
      Raphael Quinet authored
      2004-03-13  Raphael Quinet  <quinet@gamers.org>
      
      	* app/tools/gimptexttool.c (gimp_text_tool_set_layer): added
      	missing semicolon that was breaking the build.
      40825ad0
    • Sven Neumann's avatar
      bugfix. · 4634ee22
      Sven Neumann authored
      2004-03-13  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptexttool.c (gimp_text_tool_set_layer): bugfix.
      4634ee22
    • Sven Neumann's avatar
      marked missing string for translation (spotted by Branko Collin). · 35124b9a
      Sven Neumann authored
      2004-03-13  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpcontainermenuimpl.c: marked missing string for
      	translation (spotted by Branko Collin).
      35124b9a
    • Sven Neumann's avatar
      use a GimpSizeEntry for the font size. · 285b58de
      Sven Neumann authored
      2004-03-13  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptextoptions.[ch]: use a GimpSizeEntry for the
      	font size.
      
      	* app/tools/gimptexttool.c: set the size entry's resolution to the
      	image resolution. Fixes bug #118356.
      285b58de
    • Sven Neumann's avatar
      keep a pointer on the active text layer and let the tool follow the active · 07a92fe5
      Sven Neumann authored
      2004-03-13  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptexttool.[ch]: keep a pointer on the active text
      	layer and let the tool follow the active layer. Fixes bug #124970.
      
      	* app/gui/layers-commands.c: changed accordingly.
      07a92fe5
  3. 12 Mar, 2004 5 commits
  4. 11 Mar, 2004 6 commits
    • Sven Neumann's avatar
      added explicit menu branches to allow them to be translated (bug #136937). · 1de5defa
      Sven Neumann authored
      2004-03-12  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/tool-options-menu.c (tool_options_menu_entries): added
      	explicit menu branches to allow them to be translated (bug #136937).
      1de5defa
    • Sven Neumann's avatar
      set the color of the new text from the context foreground color. · 97d53341
      Sven Neumann authored
      2004-03-11  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptextoptions.c (gimp_text_options_create_text):
      	set the color of the new text from the context foreground color.
      97d53341
    • Sven Neumann's avatar
      redid the color handling. Still not perfect, but it is somewhat cleaner. · fb2d9928
      Sven Neumann authored
      2004-03-11  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptextoptions.[ch]: redid the color handling.
      	Still not perfect, but it is somewhat cleaner.
      fb2d9928
    • Sven Neumann's avatar
      reverted a small change that I didn't want to commit at all. · 60b1eb80
      Sven Neumann authored
      2004-03-11  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpcontext.c: reverted a small change that I didn't
      	want to commit at all.
      60b1eb80
    • Sven Neumann's avatar
      made gimp_config_sync() and gimp_config_connect() also work on objects of · 21f26743
      Sven Neumann authored
      2004-03-11  Sven Neumann  <sven@gimp.org>
      
      	* app/config/gimpconfig-utils.c: made gimp_config_sync() and
      	gimp_config_connect() also work on objects of different types.
      	Properties with the same name and the same type are synced /
      	connected.
      
      	* app/core/gimpcontext.[ch]: added convenience functions to get/set
      	the font by name.
      
      	* app/tools/gimptextoptions.[ch]: don't hold a GimpText object
      	that duplicates properties like font and color which are in
      	GimpContext already. Instead added all text properties that are
      	controlled from the text tool options.  Handling of the foreground
      	color is somewhat broken and needs a GimpContext wizard (Mitch!).
      
      	* app/text/gimptext.c: blurbs are not any longer needed now that
      	the property widgets are created from the GimpTextOptions.
      
      	* app/tools/gimptexttool.c: changed accordingly.
      
      	* app/widgets/gimptexteditor.[ch]: use an internal GtkTextBuffer
      	and emit "text-changed" when it changes.
      21f26743
    • Sven Neumann's avatar
      connect notify::preview using g_signal_connect_object(). Fixes bug · 9ff5123e
      Sven Neumann authored
      2004-03-11  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_initialize):
      	connect notify::preview using g_signal_connect_object().
      	Fixes bug #136850.
      9ff5123e
  5. 10 Mar, 2004 6 commits