1. 20 May, 2008 9 commits
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new GimpViewable subclass which · a921d65d
      Michael Natterer authored
      2008-05-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpimagemapconfig.[ch]: new GimpViewable subclass
      	which has a "time" property. Sets the object's name to a date
      	string if a time != 0 gets set. Has a compare function which first
      	sorts the objects with a timestamp in MRU order and then the
      	objects without timestamp by name.
      
      	* app/gegl/gimpbrightnesscontrastconfig.[ch]
      	* app/gegl/gimpcolorbalanceconfig.[ch]
      	* app/gegl/gimpcolorizeconfig.[ch]
      	* app/gegl/gimpcurvesconfig.[ch]
      	* app/gegl/gimphuesaturationconfig.[ch]
      	* app/gegl/gimplevelsconfig.[ch]
      	* app/gegl/gimpposterizeconfig.[ch]
      	* app/gegl/gimpthresholdconfig.[ch]: derive from GimpImageMapConfig.
      
      	* app/tools/gimpimagemaptool.c: sort the settings container with
      	above compare function.
      
      	* app/tools/gimpimagemaptool-settings.c: add utility functions
      	for loading and saving the settings container. In the settings
      	combo, add a separator between MRU items and favorites.
      
      	* app/Makefile.am: make the thing link.
      
      
      svn path=/trunk/; revision=25724
      a921d65d
    • Michael Natterer's avatar
      don't crash if an object has a NULL name. Move variables to local scopes. · b646fd3d
      Michael Natterer authored
      2008-05-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplist.c (gimp_list_uniquefy_name): don't crash if an
      	object has a NULL name. Move variables to local scopes. Remove
      	redundant casts.
      
      
      svn path=/trunk/; revision=25723
      b646fd3d
    • Martin Nordholts's avatar
      Increase handle size to 12 pixels (the same size as for the Paths Tool). · 889cc715
      Martin Nordholts authored
      2008-05-20  Martin Nordholts  <martinn@svn.gnome.org>
      
      	* app/tools/gimpfreeselecttool.c: Increase handle size to 12
      	pixels (the same size as for the Paths Tool).
      
      svn path=/trunk/; revision=25722
      889cc715
    • Martin Nordholts's avatar
      Added statusbar help-messages for the Free Select Tool. · 59e3ee13
      Martin Nordholts authored
      2008-05-20  Martin Nordholts  <martinn@svn.gnome.org>
      
      	Added statusbar help-messages for the Free Select Tool.
      
      	* app/tools/gimpfreeselecttool.c
      	(gimp_free_select_tool_oper_update): Don't bail out if
      	tool->display is NULL, instead modify the underlying logic to deal
      	with this.
      
      svn path=/trunk/; revision=25721
      59e3ee13
    • Michael Natterer's avatar
      remove gimp_image_map_tool_add_recent()... · d6e3339f
      Michael Natterer authored
      2008-05-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpimagemaptool.c: remove
      	gimp_image_map_tool_add_recent()...
      
      	* app/tools/gimpimagemaptool-settings.[ch]: ...and add it here.
      
      
      svn path=/trunk/; revision=25720
      d6e3339f
    • Michael Natterer's avatar
      unref the new settings object after adding it to the recent container. · 38ee6068
      Michael Natterer authored
      2008-05-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_add_recent):
      	unref the new settings object after adding it to the recent
      	container.
      
      	* app/tools/gimpimagemaptool-settings.c: add a "Save to Favorites"
      	button which pops a string entry dialog and saves the current
      	settings to the recent container.
      
      
      svn path=/trunk/; revision=25719
      38ee6068
    • Michael Natterer's avatar
      app/tools/Makefile.am new files containing all the recent settings and · 353283b8
      Michael Natterer authored
      2008-05-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/Makefile.am
      	* app/tools/gimpimagemaptool-settings.[ch]: new files containing
      	all the recent settings and settings load/save GUI and code.  Got
      	rid of shortcut loading/saving using shift+click. Added default
      	implementations of ::settings_load() and ::settings_save().
      	The GUI is currently horrible, work in progress!
      
      	* app/tools/gimpimagemaptool.c: removed the settings code here.
      
      	* app/tools/gimpcurvestool.c * app/tools/gimplevelstool.c: don't
      	pack the load and save buttons, this is done generically for all
      	tools now.
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorizetool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c: set the load/save related members
      	of GimpImageMapToolClass.
      
      
      svn path=/trunk/; revision=25718
      353283b8
    • Sven Neumann's avatar
      app/widgets/Makefile.am app/widgets/gimptoggleaction.[ch] added new action · 9a63a435
      Sven Neumann authored
      2008-05-20  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimptoggleaction.[ch]
      	* app/widgets/gimpradioaction.[ch]: added new action types derived
      	from GtkToggleAction and GtkRadioAction. These types override the
      	"connect_proxy" method to enable tooltips in menus.
      
      	* app/widgets/gimpactiongroup.c: use the new action types.
      
      	* app/actions/dockable-actions.c: added a tooltip for the
      	"dockable-lock-tab" action.
      
      svn path=/trunk/; revision=25717
      9a63a435
    • Sven Neumann's avatar
      app/tools/gimpbrightnesscontrasttool.c fixed grammar. · 115bf7ce
      Sven Neumann authored
      2008-05-20  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpbrightnesscontrasttool.c 
      	* app/tools/gimplevelstool.c: fixed grammar.
      
      
      svn path=/trunk/; revision=25716
      115bf7ce
  2. 19 May, 2008 8 commits
    • Sven Neumann's avatar
      app/widgets/gimpdockable.[ch] added a "locked" propery to GimpDockable. A · 33b5a890
      Sven Neumann authored
      2008-05-19  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpdockable.[ch]
      	* app/widgets/gimpdockbook.[ch]: added a "locked" propery to
      	GimpDockable. A locked dockable cannot be moved by drag-n-drop.
      	Allows users to protect their dockables from accidental changes,
      	mainly when working with a tablet.
      
      	* app/widgets/gimpsessioninfo-dockable.[ch]: store the "locked"
      	property in the session info.
      
      	* app/actions/dockable-actions.c
      	* app/actions/dockable-commands.[ch]: added an action for 
      toggling
      	the "locked" state.
      
      	* app/widgets/gimphelp-ids.h: new help-id "gimp-dock-tab-lock".
      
      	* menus/dockable-menu.xml.in: show the new menu item.
      
      	* app/actions/plug-in-actions.c: formatting.
      
      
      svn path=/trunk/; revision=25715
      33b5a890
    • Michael Natterer's avatar
      Unabstract image map tool settings load/save a bit before it's turned into · 62719d67
      Michael Natterer authored
      2008-05-19  Michael Natterer  <mitch@gimp.org>
      
      	Unabstract image map tool settings load/save a bit before it's
      	turned into generic load/save for all image map tools:
      
      	* app/gegl/gimpcurvesconfig.[ch]
      	* app/gegl/gimplevelsconfig.[ch]: add GError** to save_cruft()
      	functions.
      
      	* app/tools/gimpimagemaptool.[ch]: add GError to
      	::settings_save(), changed "file" parameter of ::settings_load()
      	and ::settings_save() to "filename", removed
      	gimp_image_map_tool_load_save() utility function and moved the
      	code to the settings_load() and settings_save() utility functions.
      
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimplevelstool.c: changed accordingly. Open and close
      	the settings files here.
      
      
      svn path=/trunk/; revision=25714
      62719d67
    • Sven Neumann's avatar
      corrected "layer mask disabled" flag in layer mask data section (bug · 537caeb0
      Sven Neumann authored
      2008-05-19  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/common/psd-save.c (save_layer_and_mask): corrected
      	"layer mask disabled" flag in layer mask data section (bug #526811).
      
      svn path=/trunk/; revision=25712
      537caeb0
    • Sven Neumann's avatar
      commit forgotten ChangeLog entry · 543a25e4
      Sven Neumann authored
      svn path=/trunk/; revision=25711
      543a25e4
    • Sven Neumann's avatar
      removed unused import. · 0c915afb
      Sven Neumann authored
      2008-05-19  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/gimpperspectiveclone.c: removed unused import.
      
      svn path=/trunk/; revision=25710
      0c915afb
    • Sven Neumann's avatar
      corrected description of gimp-layer-set-show-mask procedure. · e25f8894
      Sven Neumann authored
      2008-05-19  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/layer.pdb: corrected description of
      	gimp-layer-set-show-mask procedure.
      
      	* app/pdb/layer-cmds.c
      	* libgimp/gimplayer_pdb.c: regenerated.
      
      svn path=/trunk/; revision=25709
      e25f8894
    • Michael Natterer's avatar
      set "identity" to TRUE if appropriate. · 1f993427
      Michael Natterer authored
      2008-05-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcurve.c
      	(gimp_curve_set_n_points)
      	(gimp_curve_set_n_samples): set "identity" to TRUE if appropriate.
      
      	(gimp_curve_calculate): don't set it to TRUE when there are no
      	control points.
      
      
      svn path=/trunk/; revision=25708
      1f993427
    • Sven Neumann's avatar
      fixed the call to memcpy() in the CURVE_NONE case. · e614d637
      Sven Neumann authored
      2008-05-19  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpcurve-map.c (gimp_curve_map_pixels): fixed the call
      	to memcpy() in the CURVE_NONE case.
      
      svn path=/trunk/; revision=25707
      e614d637
  3. 18 May, 2008 13 commits
    • Kevin Cozens's avatar
      Reverting previous change. I figured it would break something. It breaks · bedb7e31
      Kevin Cozens authored
      2008-05-18  Kevin Cozens  <kcozens@cvs.gnome.org>
      
      	* plug-ins/script-fu/tinyscheme/scheme.c: Reverting previous change.
      	I figured it would break something. It breaks the 'while' macro by
      	preventing use of a named let.
      
      svn path=/trunk/; revision=25706
      bedb7e31
    • Michael Natterer's avatar
      implement (de)serializing of the points and samples arrays using · 57a9451c
      Michael Natterer authored
      2008-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcurve.c: implement (de)serializing of the points
      	and samples arrays using GValueArray. Set "identity" to FALSE
      	after deserializing.
      
      
      svn path=/trunk/; revision=25704
      57a9451c
    • Michael Natterer's avatar
      libgimpconfig/gimpconfig-serialize.[ch] add · c65b0992
      Michael Natterer authored
      2008-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpconfig/gimpconfig-serialize.[ch]
      	* libgimpconfig/gimpconfig.def: add
      	gimp_config_serialize_property_by_name().
      
      	* app/gegl/gimpcolorbalanceconfig.c
      	* app/gegl/gimpcurvesconfig.c
      	* app/gegl/gimphuesaturationconfig.c
      	* app/gegl/gimplevelsconfig.c: implement serialize() and
      	deserialize() and make sure the properties which change when the
      	channel/range property changes are handled correctly. Not too
      	ugly but it's still a hack...
      
      
      svn path=/trunk/; revision=25703
      c65b0992
    • Michael Natterer's avatar
      made the lists of recent settings persistent. Note that the settings of · 4d0b4464
      Michael Natterer authored
      2008-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpimagemaptool.c: made the lists of recent settings
      	persistent. Note that the settings of tools that modify multiple
      	channels or ranges are saved incompletely because their settings
      	still lack custom serialize() implementations. Work in progress.
      
      
      svn path=/trunk/; revision=25702
      4d0b4464
    • Michael Natterer's avatar
      add gimp_tool_info_build_options_filename() which creates a filename under · 173905b1
      Michael Natterer authored
      2008-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimptoolinfo.[ch]: add
      	gimp_tool_info_build_options_filename() which creates a filename
      	under $GIMPDIR/tool-options/ with an optional suffix.
      
      	* app/core/gimptooloptions.c
      	* app/core/gimptoolpresets.c: use it and remove own build_filename()
      	functions.
      
      
      svn path=/trunk/; revision=25701
      173905b1
    • Michael Natterer's avatar
      renamed public function set_dash_pattern() to take_dash_pattern() to · 9670b467
      Michael Natterer authored
      2008-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpstrokeoptions.[ch]: renamed public function
      	set_dash_pattern() to take_dash_pattern() to clarify memory
      	management of the passed GArray.
      
      	* app/widgets/gimpdasheditor.c
      	* app/widgets/gimpstrokeeditor.c: changed accordingly.
      
      
      svn path=/trunk/; revision=25700
      9670b467
    • Michael Natterer's avatar
      implement the GimpConfig interface and add the code for equal(), reset() · fd5e71c4
      Michael Natterer authored
      2008-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcurve.c: implement the GimpConfig interface and add
      	the code for equal(), reset() and copy() from GimpCurvesConfig.
      
      	* app/gegl/gimpcurvesconfig.c: remove the copied code and use
      	GimpConfig methods to compare, reset and copy curve objects.
      
      
      svn path=/trunk/; revision=25699
      fd5e71c4
    • Michael Natterer's avatar
      clean up last patch. · 330376d7
      Michael Natterer authored
      2008-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimpbrushcore.c: clean up last patch.
      
      
      svn path=/trunk/; revision=25698
      330376d7
    • Martin Nordholts's avatar
      Commited patch from gymp that removes bogus FIXME (bug #533647). · b742fa2b
      Martin Nordholts authored
      2008-05-18  Martin Nordholts  <martinn@svn.gnome.org>
      
      	* plug-ins/script-fu/tinyscheme/scheme.c: Commited patch from gymp
      	that removes bogus FIXME (bug #533647).
      
      svn path=/trunk/; revision=25697
      b742fa2b
    • Martin Nordholts's avatar
      Applied patch from Alexia Death that makes velocity dynamics controlled · 267462eb
      Martin Nordholts authored
      2008-05-18  Martin Nordholts  <martinn@svn.gnome.org>
      
      	Applied patch from Alexia Death that makes velocity dynamics
      	controlled scale properly recalculate the brush mask when
      	necessary (bug #533618).
      
      	* app/paint/gimpbrushcore.[ch] (gimp_brush_core_scale_mask): A
      	change in scale requires a recalculation of the cached brush mask.
      
      svn path=/trunk/; revision=25696
      267462eb
    • Wadim Dziedzic's avatar
      Updated polish translation · caa12e4e
      Wadim Dziedzic authored
      2008-05-18  Wadim Dziedzic  <wadimd@svn.gnome.org>
      
      	* pl.po: Updated polish translation
      
      svn path=/trunk/; revision=25695
      caa12e4e
    • Martin Nordholts's avatar
      Merged the Polygon Select Tool capabilities with the Free Select Tool. · b6159412
      Martin Nordholts authored
      2008-05-18  Martin Nordholts  <martinn@svn.gnome.org>
      
      	Merged the Polygon Select Tool capabilities with the Free Select
      	Tool. Among the things still to do is improved help texts, more
      	suitable graphics, and cursor mangement, but the core
      	functionality is in place. Thanks to Alexia Death for initial
      	testing. It will also be neccesary to do some work to adapt the
      	Foreground Select Tool to the new Free Select Tool implementation.
      
      	Quick instructions on how the tool works:
      
      	 o A click adds a polygonal segment, a drag adds a free-hand
      	   segment
      	 o Return-key commits, Escape-key cancels, Backspace-key removes
      	   last segment
      	 o You can grab and move segment vertices
      	 o You can cancel both a move, and the creation of a segment
      
      	* app/tools/gimpfreeselecttool.[ch]: More or less
      	reimplemented. We keep a sequential array of all the points in the
      	polygon (including the free segments), and we have another array
      	with point indices that we use to represent the segments. On top
      	of this we have a few helper functions that tries to abstract away
      	the pretty raw nature of the implementation.
      
      	* app/tools/gimpforegroundselecttool.[ch]: Keep track on its own
      	last_coord, and adjust to the new implementation of the Free
      	Select Tool. Still needs some work, for example handling that the
      	Free Select Tool now resets GimpTool::display.
      	(gimp_foreground_select_tool_key_press): Pass on key event to
      	parent class when appropriate. (Bails out too early though...)
      
      svn path=/trunk/; revision=25693
      b6159412
    • Michael Natterer's avatar
      also copy curve->identity. · 621415d3
      Michael Natterer authored
      2008-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/gimpcurvesconfig.c (gimp_curves_config_set_property):
      	also copy curve->identity.
      
      
      svn path=/trunk/; revision=25692
      621415d3
  4. 17 May, 2008 10 commits
    • Sven Neumann's avatar
      fixed issues with the profiling code. · 48dcf22e
      Sven Neumann authored
      2008-05-17  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimagemap.c: fixed issues with the profiling code.
      
      
      svn path=/trunk/; revision=25691
      48dcf22e
    • Michael Natterer's avatar
      add gimp_image_map_tool_edit_as(). · 228dd93e
      Michael Natterer authored
      2008-05-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpimagemaptool.[ch]: add gimp_image_map_tool_edit_as().
      
      	* app/tools/gimplevelstool.c (levels_to_curves_callback): use it.
      
      	* app/gegl/gimpbrightnesscontrastconfig.[ch]: add
      	gimp_brightness_contrast_config_to_levels_config().
      
      	* app/tools/gimpbrightnesscontrasttool.c: implement "Edit as Levels".
      
      
      svn path=/trunk/; revision=25690
      228dd93e
    • Øyvind Kolås's avatar
      Make the created GEGL graphs have the "dont-cache" property set to avoid · 425c734e
      Øyvind Kolås authored
      * app/core/gimpdrawable-operation.c:
      * app/core/gimpimagemap.c: Make the created GEGL graphs have the
      "dont-cache" property set to avoid unneeded caches.
      
      svn path=/trunk/; revision=25689
      425c734e
    • Michael Natterer's avatar
      add new function gimp_stock_button_new() which creates a button with icon · 2a38f864
      Michael Natterer authored
      2008-05-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpwidgets-constructors.[ch]: add new function
      	gimp_stock_button_new() which creates a button with icon and label
      	which is *not* the stock_id's label.
      
      	* app/dialogs/preferences-dialog.c (prefs_button_add)
      	* app/tools/gimplevelstool.c (gimp_levels_tool_dialog): use it.
      
      
      svn path=/trunk/; revision=25688
      2a38f864
    • Michael Natterer's avatar
      add help IDs for the stuff in the Windows menu. · a3bde5d6
      Michael Natterer authored
      2008-05-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimphelp-ids.h: add help IDs for the stuff in the
      	Windows menu.
      
      	* app/actions/windows-actions.c: use them.
      
      
      svn path=/trunk/; revision=25687
      a3bde5d6
    • Michael Natterer's avatar
      fix crash (don't dereference dialog after it has been destroyed). Also put · 409bdaa3
      Michael Natterer authored
      2008-05-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/dialogs/file-save-dialog.c (file_save_dialog_response): fix
      	crash (don't dereference dialog after it has been destroyed). Also
      	put back code that sets the dialog back to sensitive if it still
      	exists.
      
      
      svn path=/trunk/; revision=25686
      409bdaa3
    • Michael Natterer's avatar
      app/core/gimpimagefile.c app/tools/gimpaligntool.c · e8017950
      Michael Natterer authored
      2008-05-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimagefile.c
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimpvectortool.c
      	* plug-ins/color-rotate/color-rotate-dialog.c
      	* plug-ins/common/noise-rgb.c
      	* plug-ins/common/value-propagate.c
      	* plug-ins/gfig/gfig-dialog.c
      	* plug-ins/gfig/gfig.h
      	* plug-ins/gimpressionist/general.c
      	* plug-ins/gimpressionist/gimpressionist.h
      	* plug-ins/gimpressionist/orientation.c
      	* plug-ins/gimpressionist/size.c
      	* plug-ins/gimpressionist/utils.c
      	* plug-ins/gradient-flare/gradient-flare.c
      	* plug-ins/ifs-compose/ifs-compose.c
      	* plug-ins/imagemap/imap_main.c
      	* plug-ins/imagemap/imap_preferences.c: in latest GLib _() returns
      	"const gchar*" as it should. Add const qualifiers to local utility
      	functions and some explicit casts to fix the warnings caused by
      	this.
      
      
      svn path=/trunk/; revision=25685
      e8017950
    • Michael Natterer's avatar
      add tooltips to the menu items of open and recently closed docks. · fe395446
      Michael Natterer authored
      2008-05-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/windows-actions.c: add tooltips to the menu items of
      	open and recently closed docks.
      
      	* app/widgets/gimpaction.c: connect to "notify::tooltip" and make
      	sure gimp_help_set_help_data() gets called when the action's
      	tooltip changes.
      
      
      svn path=/trunk/; revision=25684
      fe395446
    • Michael Natterer's avatar
      applied patch from Lars-Peter Clausen which adds · 18502898
      Michael Natterer authored
      2008-05-17  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/gradient.pdb: applied patch from Lars-Peter
      	Clausen which adds gimp-gradient-get-number-of-segments. Fixes
      	bug #533474.
      
      	* app/pdb/gradient-cmds.c
      	* app/pdb/internal-procs.c
      	* libgimp/gimpgradient_pdb.[ch]: regenerated.
      
      	* libgimp/gimp.def: add the new symbol.
      
      
      svn path=/trunk/; revision=25683
      18502898
    • Michael Natterer's avatar
      add -framework options to twain_LDFLAGS instead of AM_LDFLAGS to make · dd76454a
      Michael Natterer authored
      2008-05-17  Michael Natterer  <mitch@gimp.org>
      
      	* plug-ins/twain/Makefile.am: add -framework options to
      	twain_LDFLAGS instead of AM_LDFLAGS to make whatever layer/version
      	of autofoo happy on all macs.
      
      
      svn path=/trunk/; revision=25682
      dd76454a