1. 20 Mar, 2007 1 commit
  2. 19 Mar, 2007 6 commits
    • Claudio Saavedra's avatar
      Updated Spanish translation by Francisco Vila. · 2381c30a
      Claudio Saavedra authored
      2007-03-19  Claudio Saavedra  <csaavedra@alumnos.utalca.cl>
      
              * es.po: Updated Spanish translation by Francisco Vila.
      
      
      svn path=/trunk/; revision=22150
      2381c30a
    • Claudio Saavedra's avatar
      Updated Spanish translation by Francisco Vila. · ab55fcbd
      Claudio Saavedra authored
      2007-03-19  Claudio Saavedra  <csaavedra@alumnos.utalca.cl>
      
              * es.po: Updated Spanish translation by Francisco Vila.
      
      
      svn path=/trunk/; revision=22149
      ab55fcbd
    • Sven Neumann's avatar
      rephrased new documentation. · a68807e5
      Sven Neumann authored
      2007-03-19  Sven Neumann  <sven@gimp.org>
      
      	* libgimp/gimp.c (gimp_install_procedure): rephrased new
      	documentation.
      
      
      svn path=/trunk/; revision=22148
      a68807e5
    • Michael Natterer's avatar
      Make sure we create actions for all plug-in procedures which have a · e82a31ad
      Michael Natterer authored
      2007-03-19  Michael Natterer  <mitch@gimp.org>
      
      	Make sure we create actions for all plug-in procedures which have
      	a menu_label, so it's possible to assign shortcuts to them.
      	Fixes bug #371300.
      
      	* app/actions/plug-in-actions.c (plug_in_actions_setup): removed
      	duplicate code and simply call plug_in_actions_register_procedure()
      	on all actions, it already does all needed checks and signal
      	connections by itself.
      
      	(plug_in_actions_update)
      	(plug_in_actions_register_procedure)
      	(plug_in_actions_unregister_procedure): unified checks for whether
      	a plug-in procedure needs an action or not: it needs either a
      	menu_label or menu_paths and must not have extensions, prefixes or
      	magics.
      
      	* libgimp/gimp.c (gimp_install_procedure): document that it's
      	possible to install shortcut-only procedures by registering a
      	menu_label but no menu_paths.
      
      
      svn path=/trunk/; revision=22147
      e82a31ad
    • Sven Neumann's avatar
      changed labels for GimpTransformDirection to make the corrective transform · 27192c4a
      Sven Neumann authored
      2007-03-19  Sven Neumann  <sven@gimp.org>
      
      	* libgimpbase/gimpbaseenums.[ch]: changed labels for
      	GimpTransformDirection to make the corrective transform feature
      	more obvious.
      
      
      svn path=/trunk/; revision=22146
      27192c4a
    • Roberto Majadas's avatar
      Updated spanish translations · e3ce2a87
      Roberto Majadas authored
      
      svn path=/trunk/; revision=22145
      e3ce2a87
  3. 18 Mar, 2007 5 commits
    • Michael Natterer's avatar
      cosmetic cleanup. · c0011477
      Michael Natterer authored
      2007-03-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimpbrushcore.c: cosmetic cleanup.
      
      
      svn path=/trunk/; revision=22144
      c0011477
    • Michael Natterer's avatar
      remove parameter "gdouble scale" and use core->scale. · aa21da97
      Michael Natterer authored
      2007-03-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimpbrushcore.c
      	(gimp_brush_core_scale_mask)
      	(gimp_brush_core_scale_pixmap)
      	(gimp_brush_core_get_brush_mask): remove parameter
      	"gdouble scale" and use core->scale.
      
      	(gimp_brush_core_paste_canvas)
      	(gimp_brush_core_replace_canvas)
      	(gimp_brush_core_get_brush_mask)
      	(gimp_brush_core_color_area_with_pixmap): don't pass core->scale.
      	As below, passing anything else makes no sense.
      
      	(gimp_brush_core_interpolate): cleanup.
      
      
      svn path=/trunk/; revision=22143
      aa21da97
    • Michael Natterer's avatar
      removed parameters "GimpImage *dest" (because it's always the passed · e968a7ff
      Michael Natterer authored
      2007-03-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimpbrushcore.[ch]
      	(gimp_brush_core_color_area_with_pixmap): removed parameters
      	"GimpImage *dest" (because it's always the passed drawable's
      	image) and "gdouble scale" (because passing anything but
      	brush_core->scale makes no sense whatsoever).
      
      	* app/paint/gimppaintbrush.c (_gimp_paintbrush_motion): changed
      	accordingly.
      
      
      svn path=/trunk/; revision=22142
      e968a7ff
    • Michael Natterer's avatar
      simplified brush scale calculation by making sure that brush_core->scale · 83981ef4
      Michael Natterer authored
      2007-03-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimpbrushcore.c: simplified brush scale calculation by
      	making sure that brush_core->scale always contains a value that's
      	suited as input for gimp_brush_scale_mask/pixmap() (bug #419290).
      
      	(gimp_brush_core_calc_brush_size): removed this function. All
      	places can now call gimp_brush_scale_size() directly with
      	core->scale as parameter.
      
      	(gimp_brush_core_calc_brush_scale): new function which returns
      	a linear scale factor which contains both the area-based pressure
      	scale factor and the linear paint options scale factor.
      
      	(gimp_brush_core_start)
      	(gimp_brush_core_get_paint_area): use the new function instead
      	of doing these calculations manually.
      
      	(gimp_brush_core_interpolate): remove call to
      	gimp_brush_core_scale_brush_size() and use core->scale directly.
      
      	(gimp_brush_core_get_paint_area)
      	(gimp_brush_core_scale_mask)
      	(gimp_brush_core_scale_pixmap): use gimp_brush_scale_size()
      	instead of the removed gimp_brush_core_scale_brush_size().
      
      	(gimp_brush_core_create_bound_segs): use only
      	paint_options->brush_scale here since the canvas brush preview
      	always has to asume full pressure.
      
      	* app/core/gimpbrush.c (gimp_brush_scale_size): special case
      	scale == 1.0 and return the mask's width/height without calling
      	the virtual function.
      
      
      svn path=/trunk/; revision=22141
      83981ef4
    • Michael Natterer's avatar
      jikes, the offset is to be interpreted as offset from the start of the · 6515dc60
      Michael Natterer authored
      2007-03-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/file/file-utils.c (file_check_single_magic): jikes, the
      	offset is to be interpreted as offset from the start of the file
      	for offset >= 0, not offset > 0.
      
      
      svn path=/trunk/; revision=22140
      6515dc60
  4. 17 Mar, 2007 5 commits
    • Stéphane Raimbault's avatar
      Updated French translation by Laurent Monin. · aec3c1ab
      Stéphane Raimbault authored
      2007-03-17  Stéphane Raimbault  <stephane.raimbault@gmail.com>
      
      	* fr.po: Updated French translation by Laurent Monin.
      
      svn path=/trunk/; revision=22139
      aec3c1ab
    • Michael Natterer's avatar
      alow negative offsets in magics and interpret them as relative to the end · 0845a11c
      Michael Natterer authored
      2007-03-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/file/file-utils.c (file_check_single_magic): alow negative
      	offsets in magics and interpret them as relative to the end of the
      	file.
      
      	(file_utils_find_proc)
      	(file_check_magic_list): some cleanup.
      
      	* plug-ins/common/tga.c (query): register the magic string
      	"TRUEVISION-XFILE.\0" 18 bytes before the end of the file.
      	This way, "new style" TGA files are detected regardless of
      	their filename. "old style" TGA files still need the right
      	extension to be treated as TGA. Added "vda", "icb" and "vst"
      	to the list of extensions. Fixes bug #133798.
      
      
      svn path=/trunk/; revision=22138
      0845a11c
    • Michael Natterer's avatar
      Make the height of the previews in data editors configurable. Fixes bug · 24a80950
      Michael Natterer authored
      2007-03-17  Michael Natterer  <mitch@gimp.org>
      
      	Make the height of the previews in data editors configurable.
      	Fixes bug #337757.
      
      	* app/widgets/gimpdataeditor.[ch]: add member "view" which needs
      	to be set by subclasses. Add style property "minimal-height" which
      	defaults to 96. Add style_set() implementation which sets
      	editor->view's height to the configured value.
      
      	* app/widgets/gimpbrusheditor.[ch]
      	* app/widgets/gimpgradienteditor.[ch]
      	* app/widgets/gimppaletteeditor.[ch]: use data_editor->view for
      	storing the view widget and removed own view members. Remove
      	separate #defines for the view's default width and height, it's
      	width follows the dialog anyway.
      
      	* themes/Default/gtkrc: document the default value of 96.
      
      	* themes/Small/gtkrc: set it to 64.
      
      
      svn path=/trunk/; revision=22137
      24a80950
    • Kevin Cozens's avatar
      Fixed syntax error in string-trim-left function (spotted by Saul Goode). · 16251836
      Kevin Cozens authored
      2007-03-17  Kevin Cozens  <kcozens@cvs.gnome.org>
      
      	* plug-ins/script-fu/scripts/script-fu-compat.init: Fixed syntax
      	error in string-trim-left function (spotted by Saul Goode). Added
      	compatability routine for 'verbose'.
      
      svn path=/trunk/; revision=22136
      16251836
    • Michael Natterer's avatar
      register the tool with GIMP_PAINT_OPTIONS_CONTEXT_MASK and · 68b45859
      Michael Natterer authored
      2007-03-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpvectortool.c (gimp_vector_tool_register):
      	register the tool with GIMP_PAINT_OPTIONS_CONTEXT_MASK and
      	GIMP_CONTEXT_GRADIENT_MASK so its tool options are suited
      	as parameter object for stroking (the stroke button in the
      	tool options was using default values before).
      
      
      svn path=/trunk/; revision=22135
      68b45859
  5. 16 Mar, 2007 3 commits
    • Michael Natterer's avatar
      don't just g_free() the GValueArray after we memcpy()-stole its values · cefff5f0
      Michael Natterer authored
      2007-03-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/gimppluginprocframe.c
      	(gimp_plug_in_proc_frame_get_return_vals): don't just g_free() the
      	GValueArray after we memcpy()-stole its values because this both
      	leaks the contained array of GValues and crashes with glib trunk
      	where GValueArray is slice-allocated. Instead, free the array of
      	GValues manually, set it to NULL and use g_value_array_free().
      
      
      svn path=/trunk/; revision=22134
      cefff5f0
    • Michael Natterer's avatar
      remove N_() from calls to gimp_plugin_menu_register(). · 11f01252
      Michael Natterer authored
      2007-03-16  Michael Natterer  <mitch@gimp.org>
      
      	* plug-ins/script-fu/script-fu.c: remove N_() from calls to
      	gimp_plugin_menu_register().
      
      
      svn path=/trunk/; revision=22133
      11f01252
    • Michael Natterer's avatar
      update the progress to avoid looking like the script hangs. Fixes bug · 1a9cfa40
      Michael Natterer authored
      2007-03-16  Michael Natterer  <mitch@gimp.org>
      
      	* plug-ins/script-fu/scripts/spyrogimp.scm: update the progress
      	to avoid looking like the script hangs. Fixes bug #356677.
      
      	* plug-ins/script-fu/script-fu-interface.c
      	(script_fu_interface_report_cc): if the command starts with
      	"gimp-progress-", the script is obviously showing a progress bar
      	for itself, so clear the text instead of showing an endless number
      	of "gimp-progress-update" messages. Also fixed manual main loop
      	iteration.
      
      
      svn path=/trunk/; revision=22132
      1a9cfa40
  6. 15 Mar, 2007 7 commits
    • Michael Natterer's avatar
      Fix stuck progress bars (bug #393832): · dd4042df
      Michael Natterer authored
      2007-03-16  Michael Natterer  <mitch@gimp.org>
      
      	Fix stuck progress bars (bug #393832):
      
      	* app/plug-in/gimpplugin-progress.[ch] (gimp_plug_in_progress_end):
      	added PlugInProcFrame parameter instead of blindly using the topmost
      	in the procedure stack...
      
      	* app/plug-in/gimppluginprocframe.c
      	(gimp_plug_in_proc_frame_dispose): ...because we call it from here,
      	when the proc_frame is already removed from the procedure stack.
      
      	Unrelated:
      
      	* plug-ins/script-fu/scripts/difference-clouds.scm: use
      	RUN-INTERACTVE instead of 0, added (gimp-displays-flush)
      
      	* plug-ins/common/snoise.c (solid_noide): update the progress to
      	1.0 after rendering.
      
      
      svn path=/trunk/; revision=22131
      dd4042df
    • Michael Natterer's avatar
      group files by type. · 30508fef
      Michael Natterer authored
      2007-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* data/brushes/Makefile.am: group files by type.
      
      
      svn path=/trunk/; revision=22130
      30508fef
    • Martin Nordholts's avatar
      Converted .gbr to .vbr brushes where possible. Fixes bug #322176 and bug · c3280c43
      Martin Nordholts authored
      2007-03-15  Martin Nordholts  <martinn@svn.gnome.org>
      
      	Converted .gbr to .vbr brushes where possible. Fixes bug #322176 and
      	bug #157506.
      
      	* data/brushes/Makefile.am: Changed .gbr for .vbr-counterparts for
      	converted brushes.
      
      	* data/brushes/*circle.gbr:
      	* data/brushes/*fcircle.gbr:
      	* data/brushes/DStar*.gbr:
      	* data/brushes/callig*.gbr: Removed.
      
      	* data/brushes/Circle-*.vbr:
      	* data/brushes/Circle-Fuzzy-*.vbr:
      	* data/brushes/Diagonal-Star-*.vbr:
      	* data/brushes/Calligraphic-Brush-*.vbr: Added.
      
      
      svn path=/trunk/; revision=22129
      c3280c43
    • Michael Natterer's avatar
      app/tools/gimpaligntool.c app/tools/gimpcolorpickertool.c · 40718dc7
      Michael Natterer authored
      2007-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimpvectortool.c: remove gimp_tool_pop_status() from
      	control() implementations because GimpTool does this generically now.
      
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpselectiontool.c: remove entire control()
      	implementations because they were doing nothing else.
      
      
      svn path=/trunk/; revision=22128
      40718dc7
    • Michael Natterer's avatar
      "adj" is a GtkObject not a GtkWidget, also moved it to its local scope. · 9f650d77
      Michael Natterer authored
      2007-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimppaintoptions-gui.c (gimp_paint_options_gui): "adj"
      	is a GtkObject not a GtkWidget, also moved it to its local scope.
      
      
      svn path=/trunk/; revision=22127
      9f650d77
    • Michael Natterer's avatar
      add reverse-layers.scm · b032bdb4
      Michael Natterer authored
      2007-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* POTFILES.in: add reverse-layers.scm
      
      
      svn path=/trunk/; revision=22126
      b032bdb4
    • Michael Natterer's avatar
      check if tool->display is there before dereferencing it (bug #418504). · 4359b1c9
      Michael Natterer authored
      2007-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimprectangletool.c (gimp_rectangle_tool_halt): check
      	if tool->display is there before dereferencing it (bug #418504).
      
      	(gimp_rectangle_tool_start): add "display" parameter and set
      	tool->display here.
      
      	(gimp_rectangle_tool_button_press): pass the display to start()
      	and don't set tool->display here.
      
      
      svn path=/trunk/; revision=22125
      4359b1c9
  7. 14 Mar, 2007 12 commits
    • Michael Natterer's avatar
      Make the status display stuff local to GimpTool: · e4aeb7d6
      Michael Natterer authored
      2007-03-14  Michael Natterer  <mitch@gimp.org>
      
      	Make the status display stuff local to GimpTool:
      
      	* app/tools/tool_manager.c (tool_manager_control_active): don't
      	call gimp_tool_clear_status().
      
      	* app/tools/gimptool.[ch]: make gimp_tool_clear_status() a
      	private function. Move call to gimp_tool_clear_status() from
      	real_control() to control(). Check the status_displays too in
      	gimp_tool_real_has_display() and gimp_tool_has_image() so the
      	normal mechanism of control(HALT)ing (and thus popping all
      	status messages) the tool on display close works.
      
      
      svn path=/trunk/; revision=22124
      e4aeb7d6
    • Michael Natterer's avatar
      Fix stuck statusbar messages when changing tools (bug #398913): · c16484b7
      Michael Natterer authored
      2007-03-14  Michael Natterer  <mitch@gimp.org>
      
      	Fix stuck statusbar messages when changing tools (bug #398913):
      
      	* app/tools/gimptool.[ch]: keep a list of status_displays around.
      	Update the list in all status push, replace and pop functions.
      	Added gimp_tool_clear_status() which removes the status messages
      	from all displays in the list. Call the function from
      	gimp_tool_real_control(HALT).
      
      	* app/tools/tool_manager.c (tool_manager_control_active): if we
      	can't call gimp_tool_control() because we have no display to pass,
      	still call gimp_tool_clear_status() so the messages go away from
      	displays the tool was only hovering.
      
      
      svn path=/trunk/; revision=22123
      c16484b7
    • Michael Natterer's avatar
      require either "procedure" or "prog" being non-NULL, not both of them at · bb653059
      Michael Natterer authored
      2007-03-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/gimpplugin.c (gimp_plug_in_new): require either
      	"procedure" or "prog" being non-NULL, not both of them at the same
      	time. Get the executable name from the procedure if the procedure
      	was passed.
      
      	* app/plug-in/gimppluginmanager-call.c
      	(gimp_plug_in_manager_call_run): pass a NULL prog since we already
      	pass the procedure.
      
      
      svn path=/trunk/; revision=22122
      bb653059
    • Sven Neumann's avatar
      sprinkled some const qualifiers and removed obscure shift code in favor of · 2e551e08
      Sven Neumann authored
      2007-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-render.c: sprinkled some const
      	qualifiers and removed obscure shift code in favor of letting the
      	compiler do this optimization.
      
      
      svn path=/trunk/; revision=22121
      2e551e08
    • Sven Neumann's avatar
      renamed newly added members to scale_x and scale_y and removed the · b95ead41
      Sven Neumann authored
      2007-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell.[ch]: renamed newly added members
      	to scale_x and scale_y and removed the SCALEFACTOR macros.
      
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell-render.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-transform.c
      	* app/display/gimpnavigationeditor.c
      	* app/tools/gimpforegroundselecttool.c
      	* app/tools/gimprectangletool.c: changed accordingly.
      
      
      svn path=/trunk/; revision=22120
      b95ead41
    • Michael Natterer's avatar
      app/core/gimpbrush.c some minor fixes and stylistic paranoia i overlooked · 94fe72a2
      Michael Natterer authored
      2007-03-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushgenerated.c: some minor fixes and stylistic
      	paranoia i overlooked in last night's late review.
      
      
      svn path=/trunk/; revision=22119
      94fe72a2
    • Sven Neumann's avatar
      cache the display scale factors in the GimpDisplayShell struct and · 74927c03
      Sven Neumann authored
      2007-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell.[ch]: cache the display scale
      	factors in the GimpDisplayShell struct and recalculate it in
      	gimp_display_shell_scale_factor_changed().
      
      	* app/display/gimpdisplayshell-scale.c
      	(gimp_display_shell_scale_set_dot_for_dot)
      	* app/display/gimpdisplayshell-handlers.c
      	(gimp_display_shell_resolution_changed_handler)
      	(gimp_display_shell_monitor_res_notify_handler): update the scale
      	factors by calling gimp_display_shell_scale_factor_changed().
      
      	* app/display/gimpdisplayshell-transform.c
      	* app/display/gimpnavigationeditor.c: code cleanup.
      
      
      svn path=/trunk/; revision=22118
      74927c03
    • Sven Neumann's avatar
      documentation. · 76888600
      Sven Neumann authored
      2007-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/base/pixel-surround.c (struct _PixelSurround): documentation.
      
      
      svn path=/trunk/; revision=22117
      76888600
    • Sven Neumann's avatar
      moved calculations out of MIN() macro. · 8d53504d
      Sven Neumann authored
      2007-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/base/siox.c (siox_drb): moved calculations out of MIN() macro.
      
      svn path=/trunk/; revision=22116
      8d53504d
    • Sven Neumann's avatar
      limit brush scale to [0.01, 10.0] · 642fd34b
      Sven Neumann authored
      2007-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/gimppaintoptions.c: limit brush scale to [0.01, 
      10.0]
      
      
      svn path=/trunk/; revision=22115
      642fd34b
    • Sven Neumann's avatar
      minor cleanups, moved calculations out of the MIN() macro, avoid unneeded · 21a0bf9f
      Sven Neumann authored
      2007-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/base/brush-scale.c: minor cleanups, moved calculations out
      	of the MIN() macro, avoid unneeded floating-point calculations.
      
      
      svn path=/trunk/; revision=22114
      21a0bf9f
    • Martin Nordholts's avatar
      Made brushes upscalable by using scale_region. Downscaling still uses · e3d9198c
      Martin Nordholts authored
      2007-03-14  Martin Nordholts  <martinn@svn.gnome.org>
      
      	Made brushes upscalable by using scale_region. Downscaling still
      	uses functions in app/base/brush-scale.c (because of better
      	performance). Parametric brushes of course recalculates masks
      	instead of using bitmap scaling. Fixes bug #65030.
      
      	* app/core/gimpbrush.[ch]: Added a private scale_buf method which
      	uses scale_region (with GIMP_INTERPOLATION_LINEAR) to scale its
      	masks and pixmaps. Also added public virtual method scale_size to
      	GimpBrush (overridden by GimpBrushGenerated) which calculates the
      	buffer sizes for a given brush scaled with a given scale.
      
      	* app/core/gimpbrushgenerated.c: Implemented the new scale_size
      	method inherited from GimpBrush, and modified
      	gimp_brush_generated_calc to use this helper function.
      
      	* app/tools/gimppaintoptions-gui.c (gimp_paint_options_gui): Made
      	the brush Scale-slider logarithmic.
      
      	* app/paint/gimppaintoptions.c (gimp_paint_options_class_init):
      	Changed Scale scale to [0.0, 10.0].
      
      	* app/paint/gimpbrushcore.c:
      	(gimp_brush_core_calc_brush_size): Refactored 'get brush size' code
      	to where it belongs, in GimpBrush-classes, and allowed scales
      	larger than 1.0.
      
      
      svn path=/trunk/; revision=22113
      e3d9198c
  8. 13 Mar, 2007 1 commit