1. 25 Oct, 2008 6 commits
    • Michael Natterer's avatar
      More merging from SOC 2006's vector layer branch: · 39af762f
      Michael Natterer authored
      2008-10-25  Michael Natterer  <mitch@gimp.org>
      
      	More merging from SOC 2006's vector layer branch:
      
      	* app/core/gimpitem.[ch]: add "gboolean push_undo" to
      	GimpItem::stroke().
      
      	* app/core/gimpdrawable-stroke.[ch]
      	* app/paint/gimppaintcore-stroke.[ch]
      	* app/paint/gimppaintcore.[ch] (gimp_paint_core_finish): add
      	"push_undo" parameters here too.
      
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimpchannel.c
      	* app/core/gimpselection.c
      	* app/dialogs/stroke-dialog.c
      	* app/tools/gimppainttool.c
      	* app/vectors/gimpvectors.c
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/paths.pdb: pass TRUE all over the place.
      
      	* app/pdb/edit-cmds.c
      	* app/pdb/paint-tools-cmds.c
      	* app/pdb/paths-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27398
      39af762f
    • Martin Nordholts's avatar
      ChangeLog formating. · 85bbc9e3
      Martin Nordholts authored
      svn path=/trunk/; revision=27397
      85bbc9e3
    • Martin Nordholts's avatar
      Make layer modes work on premultiplied data. This makes compositing 40% · 5c05c609
      Martin Nordholts authored
      * app/gegl/gimpoperationlayermode.c: Make layer modes work on
      premultiplied data. This makes compositing 40% faster on my test
      image with 10 interlaced Normal and Addition mode layers.
      
      * app/gegl/gimpoperationadditionmode.c: Switch to the
      premultiplied algorithm and remove the experimental ones. The new
      Addition mode has two important differences over the legacy
      Addition mode:
      
        o Addition mode now really is commutative as the GIMP
          documentation says (this wasn't previously the case).
      
        o Layers in Addition mode are just as opaque as Normal
          layers. That is, their effect on the composite alpha channel
          is the same. For discussion, refer to bug #387449.
      
      svn path=/trunk/; revision=27396
      5c05c609
    • Michael Natterer's avatar
      formatting. · f096382a
      Michael Natterer authored
      2008-10-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintoptions.h: formatting.
      
      
      svn path=/trunk/; revision=27395
      f096382a
    • Michael Natterer's avatar
      bail out if the notification is not about one of our own properties (but · a9292536
      Michael Natterer authored
      2008-10-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcontext.c (gimp_context_parent_notify): bail out if
      	the notification is not about one of our own properties
      	(but from a subclass).
      
      
      svn path=/trunk/; revision=27394
      a9292536
    • Michael Natterer's avatar
      add "gboolean use_context_color" parameter to gimp_stroke_options_new() · efb6d15a
      Michael Natterer authored
      2008-10-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpstrokeoptions.[ch]: add "gboolean use_context_color"
      	parameter to gimp_stroke_options_new() and set the passed context
      	as parent of the new options only if it's TRUE. Also fixed the
      	GimpConfig::duplicate() implementation to really duplicate the
      	object and not just return an object containing default values.
      
      	* app/core/gimpfilloptions.[ch]: add gimp_fill_options_new().
      
      	* app/actions/select-commands.c
      	* app/dialogs/stroke-dialog.c
      	* app/actions/vectors-commands.c
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/paths.pdb: pass TRUE to gimp_stroke_options_new().
      
      	* app/pdb/edit-cmds.c
      	* app/pdb/paths-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27393
      efb6d15a
  2. 24 Oct, 2008 5 commits
    • Michael Natterer's avatar
      add non-serializable properties pattern-view-type and pattern-view-size · 90c26cf1
      Michael Natterer authored
      2008-10-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpfilloptions.[ch]: add non-serializable properties
      	pattern-view-type and pattern-view-size which are used only by the
      	new UI below.
      
      	* app/widgets/gimpfilleditor.[ch]: added boolean edit-context
      	property. If TRUE, add widgets to edit the context's foreground and
      	pattern. Add "edit_context" parameter to gimp_fill_editor_new().
      
      	* app/widgets/gimpstrokeeditor.[ch]: add the same parameter here.
      
      	* app/widgets/gimpwidgets-utils.[ch]: add gimp_enum_radio_box_add()
      	which does the same as the existing gimp_enum_radio_frame_add().
      
      	* app/dialogs/stroke-dialog.c: pass FALSE for "edit_context"
      	because this dialog takes its foreground and pattern from the user
      	context and doesn't need it's own GUI for them.
      
      
      svn path=/trunk/; revision=27392
      90c26cf1
    • Michael Natterer's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h new widget factored · 9c299a8f
      Michael Natterer authored
      2008-10-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpfilleditor.[ch]: new widget factored out of
      	GimpStrokeEditor.
      
      	* app/widgets/gimpstrokeeditor.[ch]: derive from GimpFillEditor
      	and remove UI for the properties of GimpFillOptions.
      
      
      svn path=/trunk/; revision=27390
      9c299a8f
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h remove this mis-engineered · 1a453c37
      Michael Natterer authored
      2008-10-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpstrokedesc.[ch]: remove this mis-engineered
      	abstraction...
      
      	* app/core/gimpstrokeoptions.[ch]: ...and add its properties and
      	API here.
      
      	* app/core/gimpitem.[ch]: GimpItem::stroke() take a
      	GimpStrokeOptions instead of a GimpStrokeDesc.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpselection.c
      	* app/vectors/gimpvectors.c
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c
      	* app/dialogs/stroke-dialog.c
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/paths.pdb: changed accordingly.
      
      	* app/pdb/edit-cmds.c
      	* app/pdb/paths-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27388
      1a453c37
    • Sven Neumann's avatar
      to be on the safe side, always show hidden dialogs when the Tab key is · 4260576f
      Sven Neumann authored
      2008-10-24  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpdialogfactory.c 
      (gimp_dialog_factories_toggle):
      	to be on the safe side, always show hidden dialogs when the Tab
      	key is used. It should not be possible to get a Tab key-press
      	while all displays are iconified, but you never know ...
      
      
      svn path=/trunk/; revision=27385
      4260576f
    • Sven Neumann's avatar
      Bug 556896 – Dialogs don't get minimized with single image window · bf97ad31
      Sven Neumann authored
      2008-10-24  Sven Neumann  <sven@gimp.org>
      
      	Bug 556896 – Dialogs don't get minimized with single image 
      window
      
      	* app/widgets/gimpdialogfactory.[ch]: renamed the new methods to
      	gimp_dialog_factories_{show|hide}_with_display().
      	Remember if the dialogs were hidden using
      	gimp_dialog_factories_hide_with_display() or using
      	gimp_dialog_factories_toggle() and keep this into account when
      	making them visible again. This ensures that dialogs that were
      	hidden using the Tab key won't be shown when the image window is
      	uniconified.
      
      	* app/display/gimpdisplayshell.c
      	(gimp_display_shell_window_state_event): changed accordingly.
      
      
      svn path=/trunk/; revision=27384
      bf97ad31
  3. 23 Oct, 2008 8 commits
    • Michael Natterer's avatar
      Another merge from the vector layer branch: · 50ad791f
      Michael Natterer authored
      2008-10-24  Michael Natterer  <mitch@gimp.org>
      
      	Another merge from the vector layer branch:
      
      	* app/core/gimpstrokedesc.c (gimp_stroke_desc_new): make sure
      	each stroke desc always has GimpPaintInfo.
      
      
      svn path=/trunk/; revision=27383
      50ad791f
    • Martin Nordholts's avatar
      For alpha compositing consistency, all layers should affect alpha in the · 06b46fef
      Martin Nordholts authored
      * app/gegl/gimpoperationadditionmode.c: For alpha compositing
      consistency, all layers should affect alpha in the same way
      independent of layer mode. Replace the compositing algorithm with
      a version without the flaws discovered so far in the previous
      ones. Don't use it yet though as it requires premultiplied data.
      
      svn path=/trunk/; revision=27382
      06b46fef
    • Sven Neumann's avatar
      use the inverse of the scale factor so that we can multiply instead of · 8626bed8
      Sven Neumann authored
      2008-10-24  Sven Neumann  <sven@gimp.org>
      
      	* app/paint-funcs/scale-region.c (scale): use the inverse of the
      	scale factor so that we can multiply instead of dividing in the
      	loops.
      
      
      svn path=/trunk/; revision=27380
      8626bed8
    • Michael Natterer's avatar
      rename GimpStrokeStyle to GimpFillStyle. · 3dfef0f1
      Michael Natterer authored
      2008-10-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch]: rename GimpStrokeStyle to GimpFillStyle.
      
      	* app/core/gimpfilloptions.[ch]
      	* app/core/gimpdrawable-stroke.c
      	(gimp_drawable_stroke_scan_convert): changed accordingly.
      
      
      svn path=/trunk/; revision=27379
      3dfef0f1
    • Michael Natterer's avatar
      Merge a part of SOC 2006's vector layer branch: · 67a5eaea
      Michael Natterer authored
      2008-10-23  Michael Natterer  <mitch@gimp.org>
      
      	Merge a part of SOC 2006's vector layer branch:
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpfilloptions.[ch]: new GimpContext subclass factored
      	out of GimpStrokeOptions. Has "style" and "antialias" properties.
      
      	* app/core/gimpstrokeoptions.[ch]: derive from GimpFillOptions
      	and remove said properties.
      
      	* app/core/gimpdrawable-stroke.c
      	(gimp_drawable_stroke_scan_convert): changed accordingly.
      
      
      svn path=/trunk/; revision=27378
      67a5eaea
    • Michael Natterer's avatar
      set proc_frame->procedure to NULL *after* calling gimp_plug_in_cleanup(). · d3d9724e
      Michael Natterer authored
      2008-10-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/gimppluginprocframe.c
      	(gimp_plug_in_proc_frame_dispose): set proc_frame->procedure to
      	NULL *after* calling gimp_plug_in_cleanup(). Fixes the crash on
      	windows in bug #557061 (but not the bug).
      
      
      svn path=/trunk/; revision=27376
      d3d9724e
    • Michael Natterer's avatar
      don't #include "libgimpwidgets/gimpwidgets.h". · 3b053f79
      Michael Natterer authored
      2008-10-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell.h: don't #include
      	"libgimpwidgets/gimpwidgets.h".
      
      	* app/display/gimpdisplayshell-draw.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/tools/gimpeditselectiontool.c: include it here.
      
      
      svn path=/trunk/; revision=27375
      3b053f79
    • Sven Neumann's avatar
      Bug 556896 – Dialogs don't get minimized with single image window · 45b41a76
      Sven Neumann authored
      2008-10-23  Sven Neumann  <sven@gimp.org>
      
      	Bug 556896 – Dialogs don't get minimized with single image 
      window
      
      	* app/display/gimpdisplay-foreach.[ch]: added utility function 
      to
      	get the number of visible (not withdrawn or iconified) displays.
      
      	* app/widgets/gimpdialogfactory.[ch]: added functions to hide 
      and
      	show the dock windows. Changed gimp_dialog_factories_toggle() to
      	use the new functions.
      
      	* app/display/gimpdisplayshell.c
      	(gimp_display_shell_window_state_event): hide the docks if the
      	last display is iconified. Unhide them if a display is
      	uniconified. Probably needs more work ...
      
      
      svn path=/trunk/; revision=27374
      45b41a76
  4. 22 Oct, 2008 9 commits
    • Sven Neumann's avatar
      removed check for Carbon and added a test for the target OS being Darwin · 06a983e3
      Sven Neumann authored
      2008-10-23  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: removed check for Carbon and added a test for 
      the
      	target OS being Darwin instead.
      
      	* app/config/gimpguiconfig.c: use PLATFORM_OSX instead of
      	HAVE_CARBON to determine the default "web-browser" command.
      
      
      svn path=/trunk/; revision=27370
      06a983e3
    • Sven Neumann's avatar
      check the crossing mode and don't unset the "inside" flag when the event · 1effaac2
      Sven Neumann authored
      2008-10-22  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/print/print-preview.c 
      (print_preview_leave_notify_event):
      	check the crossing mode and don't unset the "inside" flag when 
      the
      	event is caused by a pointer grab/ungrab.
      
      
      svn path=/trunk/; revision=27368
      1effaac2
    • Martin Nordholts's avatar
      Bug 556804 – Zoom drop down doesn't update · 2427cc54
      Martin Nordholts authored
      * app/display/gimpdisplayshell-scale.c
      * app/display/gimpdisplayshell-callbacks.c: Fix calls to
      gimp_display_shell_scaled() when Resize window on zoom is enabled.
      
      svn path=/trunk/; revision=27366
      2427cc54
    • Sven Neumann's avatar
      Bug 524615 – Print not to scale · e959bf08
      Sven Neumann authored
      2008-10-22  Sven Neumann  <sven@gimp.org>
      
      	Bug 524615 – Print not to scale
      
      	* plug-ins/print/print.c: set the unit for dimensions on the 
      Cairo
      	context used for printing to GTK_UNIT_PIXELS.
      
      	* plug-ins/print/print-draw-page.c (print_draw_page): changed 
      the
      	Cairo scale factors accordingly. Seems to fix printing on 
      Windows.
      
      
      svn path=/trunk/; revision=27364
      e959bf08
    • Sven Neumann's avatar
      set box->progress to NULL in destroy() and check for progress being NULL · 883cb6da
      Sven Neumann authored
      2008-10-22  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpprogressbox.c: set box->progress to NULL in
      	destroy() and check for progress being NULL in various places so
      	we don't crash on API calls after the widget is destroyed.
      
      
      svn path=/trunk/; revision=27362
      883cb6da
    • Sven Neumann's avatar
      Bug 555246 – gimp crashes when a file is opened while a preview is · 90bf1e42
      Sven Neumann authored
      2008-10-22  Sven Neumann  <sven@gimp.org>
      
      	Bug 555246 – gimp crashes when a file is opened while a preview 
      is
      	generating
      
      	* app/widgets/gimpthumbbox.c: set box->progress to NULL in
      	destroy() and check for progress being NULL in various places so
      	we don't crash on API calls after the widget is destroyed.
      
      
      svn path=/trunk/; revision=27360
      90bf1e42
    • Sven Neumann's avatar
      Bug 556741 – Alpha layer automatically added (in psd format) but not · 2b892dd8
      Sven Neumann authored
      2008-10-22  Sven Neumann  <sven@gimp.org>
      
      	Bug 556741 – Alpha layer automatically added (in psd format) but
      	not desired
      
      	* plug-ins/file-psd/psd-save.c: applied patch from Dennis Ranke
      	that flattens the projection for indexed images.
      
      
      svn path=/trunk/; revision=27358
      2b892dd8
    • Sven Neumann's avatar
      app/core/gimpimagefile.c formatting. · b6ae85b7
      Sven Neumann authored
      2008-10-22  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimagefile.c
      	* app/plug-in/gimpplugin-progress.c: formatting.
      
      
      svn path=/trunk/; revision=27357
      b6ae85b7
    • Sven Neumann's avatar
      added bug number to ChangeLog entry · 3676795a
      Sven Neumann authored
      svn path=/trunk/; revision=27356
      3676795a
  5. 21 Oct, 2008 5 commits
  6. 20 Oct, 2008 6 commits
  7. 19 Oct, 2008 1 commit