1. 17 May, 2008 6 commits
    • 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
  2. 16 May, 2008 9 commits
    • Marco Ciampa's avatar
      Updated italian translation · 7ca72dd8
      Marco Ciampa authored
      svn path=/trunk/; revision=25681
      7ca72dd8
    • Sven Neumann's avatar
      added some basic benchmarking code. Will become optional but for now it is · 9c0c73d4
      Sven Neumann authored
      2008-05-16  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimagemap.c: added some basic benchmarking code.
      	Will become optional but for now it is enabled by default.
      
      
      svn path=/trunk/; revision=25679
      9c0c73d4
    • Kevin Cozens's avatar
      Added extra checks to stop bad syntax in LET from causing a segmentation · 8b619f37
      Kevin Cozens authored
      2008-05-16  Kevin Cozens  <kcozens@cvs.gnome.org>
      
      	* plug-ins/script-fu/tinyscheme/scheme.c: Added extra checks to stop
      	bad syntax in LET from causing a segmentation fault in Linux.
      	See bug #508020.
      
      svn path=/trunk/; revision=25677
      8b619f37
    • Michael Natterer's avatar
      formatting. · ebe44066
      Michael Natterer authored
      2008-05-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am: formatting.
      
      
      svn path=/trunk/; revision=25676
      ebe44066
    • Sven Neumann's avatar
      disable rulers by default as suggested by Peter. Please give feedback. · da17a091
      Sven Neumann authored
      2008-05-16  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayoptions.c: disable rulers by default as
      	suggested by Peter. Please give feedback.
      
      
      svn path=/trunk/; revision=25675
      da17a091
    • Sven Neumann's avatar
      plug-ins/help/Makefile.am plug-ins/help/gimphelpprogress.[ch] new files · 6b687736
      Sven Neumann authored
      2008-05-16  Sven Neumann  <sven@gimp.org>
      
              * plug-ins/help/Makefile.am
              * plug-ins/help/gimphelpprogress.[ch]
              * plug-ins/help/gimphelpprogress-private.h: new files providing a
              simple framework for progress indication and cancellation.
      
              * plug-ins/help/gimphelp.[ch]
              * plug-ins/help/gimphelpdomain.[ch]
              * plug-ins/help/gimphelpitem.[ch]
              * plug-ins/help/gimphelplocale.[ch]
              * plug-ins/help/gimphelptypes.h
              * plug-ins/help/help.c
              * plug-ins/help/locales.[ch]: changed accordingly (passing NULL
              as progress for now). Also updated copyright headers.
      
              * plug-ins/help-browser/help-browser.c: same here.
      
              * plug-ins/help/gimp-help-lookup.c: use the new API and show some
              progress indication when the --verbose command-line option is used.
      
      svn path=/trunk/; revision=25674
      6b687736
    • Sven Neumann's avatar
      POTFILES.in updated. · d210e82d
      Sven Neumann authored
      2008-05-16  Sven Neumann  <sven@gimp.org>
      
              * POTFILES.in 
              * POTFILES.skip: updated.
      
              * de.po: updated German translation.
      
      svn path=/trunk/; revision=25673
      d210e82d
    • Michael Natterer's avatar
      reverse the list after loading so it keeps its order. · ab56cfde
      Michael Natterer authored
      2008-05-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/dialogs/dialogs.c (dialogs_load_recent_docks): reverse the
      	list after loading so it keeps its order.
      
      	* app/menus/windows-menu.c (windows_menu_setup)
      	(windows_menu_recent_add): keep the recent docks menu in MRU
      	order.
      
      
      svn path=/trunk/; revision=25672
      ab56cfde
    • Michael Natterer's avatar
      Implement the presistent menu of recently closed docks, still somewhat · ff5310a4
      Michael Natterer authored
      2008-05-16  Michael Natterer  <mitch@gimp.org>
      
      	Implement the presistent menu of recently closed docks, still
      	somewhat hackish but fully functional. Fixes bug #132744.
      
      	* app/actions/dialogs-actions.c
      	* app/actions/dialogs-commands.[ch]
      	* menus/image-menu.xml.in: remove the menu items that were
      	creating the hardcoded preconfigured docks.
      
      	* app/dialogs/dialogs.[ch]: add GimpContainer of recently closed
      	docks and API to load and save it.
      
      	* app/gui/session.c: call the recent dock load and save functions.
      
      	* app/widgets/gimpsessioninfo.[ch]: implement the GimpConfig interface
      	and (de)serialize via proper interface methods.
      
      	* app/gui/session.c
      	* app/widgets/gimpdialogfactory.c: use the GimpConfig API
      	to (de)serialize session infos and added the code that was
      	formerly in the info's (de)serialize functions but didn't belong
      	there.
      
      	* app/widgets/gimpaction.[ch]: add "max-width-chars" property and
      	set it on proxy menu item labels.
      
      	* app/actions/windows-actions.[ch]
      	* app/actions/windows-commands.[ch]
      	* app/menus/windows-menu.c: add actions and menu of recently
      	closed docks and code to restore the dock when the menu items are
      	selected. Use above new action property to ensure a minimum
      	width of the menu.
      
      	* app/widgets/gimpmenudock.c: use '-' instead of '|' for
      	separating notebooks in the window title. Menu items don't like	'|'.
      
      	* app/widgets/gimpdock.c: removed the confirmation dialog when
      	closing docks and simply add them to the recent docks container.
      	This code is totally misplaced and will move to another file soon.
      
      
      svn path=/trunk/; revision=25671
      ff5310a4
  3. 14 May, 2008 11 commits
    • Sven Neumann's avatar
      don't write over the end of the samples array. Someone should review this · b236aa58
      Sven Neumann authored
      2008-05-14  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpcurve.c (gimp_curve_plot): don't write over the end
      	of the samples array.  Someone should review this code. It looks
      	as if the loop could be rewritten in a safer and cleaner way.
      
      svn path=/trunk/; revision=25670
      b236aa58
    • Sven Neumann's avatar
      formatting. · 79b4d39b
      Sven Neumann authored
      2008-05-14  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/common/blur-gauss-selective.c: formatting.
      
      svn path=/trunk/; revision=25669
      79b4d39b
    • Sven Neumann's avatar
      fixed use of uninitialized value. · c1c17203
      Sven Neumann authored
      2008-05-14  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpcurveview.c (gimp_curve_view_motion_notify):
      	fixed use of uninitialized value.
      
      svn path=/trunk/; revision=25668
      c1c17203
    • Sven Neumann's avatar
      relabeled submenu to "Recently Closed Docks". · 80f2a1b1
      Sven Neumann authored
      2008-05-14  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/windows-actions.c (windows_actions): relabeled
      	submenu to "Recently Closed Docks".
      
      svn path=/trunk/; revision=25667
      80f2a1b1
    • Michael Natterer's avatar
      app/menus/windows-menu.c app/actions/windows-actions.c move the list of · 6d708832
      Michael Natterer authored
      2008-05-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/menus/windows-menu.c
      	* app/actions/windows-actions.c
      	* menus/image-menu.xml.in: move the list of dockable dialogs and
      	the list of recent docks to submenus and keep the list of open
      	image windows and docks at the "Windows" menu toplevel. The list
      	of recent docks doesn't exist yet, its contents are fake.
      
      
      svn path=/trunk/; revision=25666
      6d708832
    • Michael Natterer's avatar
      also copy curve->identity. · 8a85b95e
      Michael Natterer authored
      2008-05-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/gimpcurvesconfig.c (gimp_curves_config_copy): also
      	copy curve->identity.
      
      
      svn path=/trunk/; revision=25665
      8a85b95e
    • Manish Singh's avatar
      Add PF_OPTION. Fixes bug #523142. · fa365e14
      Manish Singh authored
      2008-05-14  Manish Singh  <yosh@gimp.org>
      
              * plug-ins/pygimp/gimpfu.py: Add PF_OPTION. Fixes bug #523142.
      
      svn path=/trunk/; revision=25664
      fa365e14
    • Sven Neumann's avatar
      formatting · 5f0799eb
      Sven Neumann authored
      svn path=/trunk/; revision=25663
      5f0799eb
    • Sven Neumann's avatar
      for an opaque buffer, initialize the brush mask with 255 instead of 0. · 241bd298
      Sven Neumann authored
      2008-05-14  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpbrushclipboard.c
      	(gimp_brush_clipboard_buffer_changed): for an opaque buffer,
      	initialize the brush mask with 255 instead of 0.  Fixes bug 
      #532886.
      
      
      
      svn path=/trunk/; revision=25661
      241bd298
    • Sven Neumann's avatar
      use G_STRUCT_OFFSET() instead of a hand-made macro which caused a compiler · e312aee2
      Sven Neumann authored
      2008-05-14  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/gradient-flare/gradient-flare.c
      	(calc_sample_one_gradient): use G_STRUCT_OFFSET() instead of a
      	hand-made macro which caused a compiler warning (spotted by 
      gymp,
      	bug #532853).
      
      
      svn path=/trunk/; revision=25659
      e312aee2
    • Michael Natterer's avatar
      remove widget member from struct GimpSessionInfoBook. Return the created · 9ca46cca
      Michael Natterer authored
      2008-05-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpsessioninfo-book.[ch]: remove widget member from
      	struct GimpSessionInfoBook. Return the created GimpDockbook from
      	restore().
      
      	* app/widgets/gimpsessioninfo-dock.c (restore): use the returned
      	book instead of the struct member.
      
      
      svn path=/trunk/; revision=25658
      9ca46cca
  4. 13 May, 2008 12 commits
    • Michael Natterer's avatar
      Made session info serialization independent from widgets so it can be used · 5766498f
      Michael Natterer authored
      2008-05-14  Michael Natterer  <mitch@gimp.org>
      
      	Made session info serialization independent from widgets so it can
      	be used on stored dock layouts which are not open:
      
      	* app/widgets/gimpsessioninfo-book.[ch]
      	* app/widgets/gimpsessioninfo-dock.[ch]
      	* app/widgets/gimpsessioninfo-dockable.[ch]: add from_widget()
      	functions which return newly allocated session info structs.
      	Changed serialize() functions to take these structs instead of
      	widgets. Changed deserialize() functions to return the structs
      	instead of appending them to lists in their parent structs. Don't
      	free anything in restore().
      
      	* app/widgets/gimpsessioninfo-aux.[ch]
      	(gimp_session_info_aux_serialize): take a GList of aux_info
      	instead of a widget.
      
      	* app/widgets/gimpsessioninfo.[ch]: add new functions get_info()
      	which collects above session info details from dialogs and
      	clear_info() which clears that info. Call clear_info() from
      	finalize(). Don't free anything in restore().
      
      	* app/widgets/gimpdialogfactory.c
      	(gimp_dialog_factories_save_foreach): collect the session info
      	detials from the dialogs before serializing because serialize()
      	doesn't know about the widget any longer. Clear the infos after
      	serializing.
      
      	(gimp_dialog_factories_restore_foreach): clear the session info
      	details after creating the dialogs because restore() doesn't clear
      	the info by itself any longer.
      
      
      svn path=/trunk/; revision=25657
      5766498f
    • Michael Natterer's avatar
      turn "info != NULL" checks into "GIMP_IS_SESSION_INFO (info)". · 24a7aa75
      Michael Natterer authored
      2008-05-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpsessioninfo.c: turn "info != NULL" checks into
      	"GIMP_IS_SESSION_INFO (info)".
      
      
      svn path=/trunk/; revision=25656
      24a7aa75
    • Michael Natterer's avatar
      turn into a GimpObject subclass. No logical changes yet. · 0b0d0aad
      Michael Natterer authored
      2008-05-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpsessioninfo.[ch]: turn into a GimpObject
      	subclass. No logical changes yet.
      
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpdialogfactory.c: changed accordingly.
      
      
      svn path=/trunk/; revision=25655
      0b0d0aad
    • Michael Natterer's avatar
      First prototype of a button in the levels tool dialog that will jump the · ddf2dca5
      Michael Natterer authored
      2008-05-13  Michael Natterer  <mitch@gimp.org>
      
      	First prototype of a button in the levels tool dialog that will
      	jump the the curves tool with the same settings:
      
      	* app/gegl/gimplevelsconfig.[ch]: add new function
      	gimp_levels_config_to_curves_config() which converts a
      	GimpLevelsConfig to a GimpCurvesConfig. Still lacks support
      	for gamma.
      
      	* app/tools/gimplevelstool.c: add "Edit this Settings as Curves"
      	button and jump to curves when clicked. Still ugly.
      
      
      svn path=/trunk/; revision=25654
      ddf2dca5
    • Sven Neumann's avatar
      use memcpy() for the CURVE_NONE case. · 85cc5d92
      Sven Neumann authored
      2008-05-13  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpcurve-map.c (gimp_curve_map_pixels): use memcpy()
      	for the CURVE_NONE case.
      
      
      svn path=/trunk/; revision=25653
      85cc5d92
    • Sven Neumann's avatar
      corrected implementation for CURVE_NONE · 0ff4081f
      Sven Neumann authored
      svn path=/trunk/; revision=25652
      0ff4081f
    • Sven Neumann's avatar
      cleanup in preparation of adding a SIMD version · 972cea0d
      Sven Neumann authored
      svn path=/trunk/; revision=25651
      972cea0d
    • Sven Neumann's avatar
      introduced an enum to clean up the code. Optimize another not so uncommon · 517cfe67
      Sven Neumann authored
      2008-05-13  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpcurve-map.[ch] (gimp_curve_map_pixels): introduced
      	an enum to clean up the code. Optimize another not so uncommon case.
      
      svn path=/trunk/; revision=25650
      517cfe67
    • Sven Neumann's avatar
      create a bitmask that represents the curves that need to be applied and · aba93422
      Sven Neumann authored
      2008-05-13  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpcurve-map.c (gimp_curve_map_pixels): create a
      	bitmask that represents the curves that need to be applied and
      	optimize the most common cases.
      
      svn path=/trunk/; revision=25649
      aba93422
    • Simon Budig's avatar
      add a comment explaining the hack. · b449e384
      Simon Budig authored
      2008-05-13  Simon Budig  <simon@gimp.org>
      
      	* app/vectors/vectors-types.h: add a comment explaining the hack.
      
      
      svn path=/trunk/; revision=25648
      b449e384
    • Sven Neumann's avatar
      simplified the general case. · 1a67f2b5
      Sven Neumann authored
      2008-05-13  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpcurve-map.c (gimp_curve_map_value): simplified 
      the
      	general case.
      
      
      svn path=/trunk/; revision=25647
      1a67f2b5
    • Sven Neumann's avatar
      keep a boolean flag to identify an identity mapping. Set it to TRUE when · 06603cb0
      Sven Neumann authored
      2008-05-11  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpcurve.[ch]: keep a boolean flag to identify an
      	identity mapping. Set it to TRUE when the curve is reset.
      
      	* app/core/gimpcurve-map.c (gimp_curve_map_value): optimize for
      	the case where the curve is an identity mapping.
      
      
      svn path=/trunk/; revision=25646
      06603cb0
  5. 12 May, 2008 2 commits
    • Simon Budig's avatar
      app/vectors/gimpvectors.[ch] app/vectors/gimpstroke.[ch] Implement · 80039486
      Simon Budig authored
      2008-05-12  Simon Budig  <simon@gimp.org>
      
      	* app/vectors/gimpvectors.[ch]
      	* app/vectors/gimpstroke.[ch]
      	* app/vectors/gimpbezierstroke.c: Implement functionality to
      	get a bezier description a la moveto/curveto/closepath.
      
      	* app/vectors/vectors-types.h: implement an evil hack to avoid
      	the inclusion of cairo.h in most C files...
      
      	* app/vectors/Makefile.am: link against cairo
      
      	* app/widgets/gimpviewrenderervectors.c: use the new functionality
      	for preview rendering.
      
      
      svn path=/trunk/; revision=25645
      80039486
    • Marco Ciampa's avatar
      Updated italian translation · 7f2d7088
      Marco Ciampa authored
      svn path=/trunk/; revision=25643
      7f2d7088