1. 23 Sep, 2004 4 commits
    • Michael Natterer's avatar
      plug-ins/script-fu/scripts/3d-outline.scm · fc8241a0
      Michael Natterer authored
      2004-09-23  Michael Natterer  <mitch@gimp.org>
      
      	* plug-ins/script-fu/scripts/3d-outline.scm
      	* plug-ins/script-fu/scripts/beveled-pattern-arrow.scm
      	* plug-ins/script-fu/scripts/beveled-pattern-bullet.scm
      	* plug-ins/script-fu/scripts/beveled-pattern-button.scm
      	* plug-ins/script-fu/scripts/beveled-pattern-heading.scm
      	* plug-ins/script-fu/scripts/beveled-pattern-hrule.scm
      	* plug-ins/script-fu/scripts/blended-logo.scm
      	* plug-ins/script-fu/scripts/carve-it.scm
      	* plug-ins/script-fu/scripts/carved-logo.scm
      	* plug-ins/script-fu/scripts/chip-away.scm
      	* plug-ins/script-fu/scripts/chrome-it.scm
      	* plug-ins/script-fu/scripts/coffee.scm
      	* plug-ins/script-fu/scripts/comic-logo.scm
      	* plug-ins/script-fu/scripts/coolmetal-logo.scm
      	* plug-ins/script-fu/scripts/crystal-logo.scm
      	* plug-ins/script-fu/scripts/frosty-logo.scm
      	* plug-ins/script-fu/scripts/glossy.scm
      	* plug-ins/script-fu/scripts/hsv-graph.scm
      	* plug-ins/script-fu/scripts/land.scm
      	* plug-ins/script-fu/scripts/lava.scm
      	* plug-ins/script-fu/scripts/mkbrush.scm
      	* plug-ins/script-fu/scripts/rendermap.scm
      	* plug-ins/script-fu/scripts/select-to-brush.scm
      	* plug-ins/script-fu/scripts/select-to-pattern.scm
      	* plug-ins/script-fu/scripts/sota-chrome-logo.scm
      	* plug-ins/script-fu/scripts/spyrogimp.scm
      	* plug-ins/script-fu/scripts/starburst-logo.scm
      	* plug-ins/script-fu/scripts/starscape-logo.scm
      	* plug-ins/script-fu/scripts/t-o-p-logo.scm
      	* plug-ins/script-fu/scripts/test-sphere.scm
      	* plug-ins/script-fu/scripts/textured-logo.scm: use the new
      	opacity, paint_mode, brush, pattern, gradient, palette and font
      	accessors.
      fc8241a0
    • Sven Neumann's avatar
      Converted the last bunch of scripts to the new context API: · 748021dd
      Sven Neumann authored
      2004-09-23  Sven Neumann  <sven@gimp.org>
      
      	Converted the last bunch of scripts to the new context API:
      
      	* plug-ins/script-fu/scripts/[s-z]*.scm
      748021dd
    • Sven Neumann's avatar
      Converted more scripts to the new context API: · cf221a14
      Sven Neumann authored
      2004-09-23  Sven Neumann  <sven@gimp.org>
      
      	Converted more scripts to the new context API:
      
      	* plug-ins/script-fu/scripts/glossy.scm
      	* plug-ins/script-fu/scripts/hsv-graph.scm
      	* plug-ins/script-fu/scripts/image-structure.scm
      	* plug-ins/script-fu/scripts/perspective-shadow.scm
      	* plug-ins/script-fu/scripts/pupi-button.scm
      	* plug-ins/script-fu/scripts/rendermap.scm
      	* plug-ins/script-fu/scripts/ripply-anim.scm
      cf221a14
    • Sven Neumann's avatar
      oops, should probably pop, not push a context in gimp_context_pop(). · ce1ee987
      Sven Neumann authored
      2004-09-23  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/context.pdb: oops, should probably pop, not
      	push a context in gimp_context_pop().
      
      	* app/pdb/context_cmds.c: regenerated.
      
      	* plug-ins/script-fu/scripts/mkbrush.scm: don't fiddle with the
      	brush description, simply use the name choosen by the user.
      ce1ee987
  2. 22 Sep, 2004 17 commits
    • Sven Neumann's avatar
      Converted the next bunch of scripts to the new context API: · 617c7c07
      Sven Neumann authored
      2004-09-23  Sven Neumann  <sven@gimp.org>
      
      	Converted the next bunch of scripts to the new context API:
      
      	* plug-ins/script-fu/scripts/[d-n]*.scm: push and pop a context.
      	Removed code that used to restore the context values changed by
      	the scripts.
      617c7c07
    • Michael Natterer's avatar
      removed warning about entering a dead code path. That path is not dead at · 6d186af5
      Michael Natterer authored
      2004-09-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_return_priv):
      	removed warning about entering a dead code path. That path is not
      	dead at all :)
      6d186af5
    • Michael Natterer's avatar
      added accessors for the context's brush, pattern, gradient, palette and · f363ffff
      Michael Natterer authored
      2004-09-23  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/context.pdb: added accessors for the context's
      	brush, pattern, gradient, palette and brush. Deprecation of old
      	functions will follow. Fixes gimp-context-set-background wrapper.
      	Cleanup.
      
      	* tools/pdbgen/pdb/patterns.pdb
      	* libgimp/gimpbrushes.h: minor fixes.
      
      	* app/pdb/context_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/patterns_cmds.c
      	* libgimp/gimpcontext_pdb.[ch]: regenerated.
      f363ffff
    • Sven Neumann's avatar
      cosmetics. · 0e91274e
      Sven Neumann authored
      2004-09-23  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/common/bumpmap.c (bumpmap_dialog): cosmetics.
      0e91274e
    • Kevin Turner's avatar
      plug-ins/pygimp/gimpfu.py (register): clean up errors in parameter checking. · 4e6bb342
      Kevin Turner authored
      Fixes "TypeError: cannot concatenate 'str' and 'int' objects"
      4e6bb342
    • Michael Natterer's avatar
      removed the opacity and paint_mode functions... · 81256e00
      Michael Natterer authored
      2004-09-22  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/brushes.pdb: removed the opacity and paint_mode
      	functions...
      
      	* tools/pdbgen/pdb/context.pdb: ...and added them here.
      
      	* app/pdb/procedural_db.c: added them to the pdb_compat hash table.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpbrushes.[ch]: new files with compat functions
      	which call the gimp_context_*() functions.
      
      	* libgimp/gimp.h: changed accordingly.
      
      	* app/pdb/brushes_cmds.c
      	* app/pdb/context_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimpbrushes_pdb.[ch]
      	* libgimp/gimpcontext_pdb.[ch]: regenerated.
      81256e00
    • Michael Natterer's avatar
      tools/pdbgen/Makefile.am tools/pdbgen/groups.pl removed the "Palette" pdb · 35b372ea
      Michael Natterer authored
      2004-09-22  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/groups.pl
      	* tools/pdbgen/pdb/palette.pdb: removed the "Palette" pdb group...
      
      	* tools/pdbgen/pdb/context.pdb: and added its functions to the
      	"Context" namespace instead.
      
      	* app/pdb/Makefile.am
      	* app/pdb/palette_cmds.c: removed.
      
      	* app/pdb/procedural_db.c: added them to the pdb_compat hash table.
      
      	* libgimp/Makefile.am
      	* libgimp/gimppalette_pdb.[ch]: removed.
      
      	* libgimp/gimppalette.[ch]: new files holding compat functions
      	which call gimp_context_*() functions.
      
      	* libgimp/gimp.h
      	* libgimp/gimpui.c: changed accordingly.
      
      	* app/pdb/context_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimp_pdb.h
      	* libgimp/gimpcontext_pdb.[ch]: regenerated.
      
      	* plug-ins/MapObject/mapobject_image.c
      	* plug-ins/MapObject/mapobject_preview.c
      	* plug-ins/common/apply_lens.c
      	* plug-ins/common/blinds.c
      	* plug-ins/common/borderaverage.c
      	* plug-ins/common/checkerboard.c
      	* plug-ins/common/colortoalpha.c
      	* plug-ins/common/cubism.c
      	* plug-ins/common/exchange.c
      	* plug-ins/common/film.c
      	* plug-ins/common/gif.c
      	* plug-ins/common/grid.c
      	* plug-ins/common/mapcolor.c
      	* plug-ins/common/mblur.c
      	* plug-ins/common/mng.c
      	* plug-ins/common/mosaic.c
      	* plug-ins/common/papertile.c
      	* plug-ins/common/png.c
      	* plug-ins/common/polar.c
      	* plug-ins/common/semiflatten.c
      	* plug-ins/common/sinus.c
      	* plug-ins/common/sparkle.c
      	* plug-ins/common/vpropagate.c
      	* plug-ins/common/warp.c
      	* plug-ins/common/whirlpinch.c
      	* plug-ins/gfig/gfig-style.c
      	* plug-ins/gfli/gfli.c
      	* plug-ins/ifscompose/ifscompose.c
      	* plug-ins/maze/handy.c
      	* plug-ins/pagecurl/pagecurl.c
      	* plug-ins/pygimp/gimpmodule.c
      	* plug-ins/script-fu/scripts/*.scm: changed accordingly.
      35b372ea
    • Sven Neumann's avatar
      mark menu label as translatable (bug #153456). · a58aabed
      Sven Neumann authored
      2004-09-22  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/view-actions.c (view_zoom_actions): mark menu label
      	as translatable (bug #153456).
      a58aabed
    • Sven Neumann's avatar
      plug-ins/script-fu/siod-wrapper.c plug-ins/script-fu/scripts/mkbrush.scm · 6dafb0c6
      Sven Neumann authored
      2004-09-22  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/script-fu/siod-wrapper.c
      	* plug-ins/script-fu/scripts/mkbrush.scm
      	* plug-ins/script-fu/scripts/select-to-brush.scm
      	* plug-ins/script-fu/scripts/select-to-pattern.scm: applied a
      	patch from Kevin Cozens that adds constants for the directory
      	names exposed by libgimpbase. Fixes bug #153327.
      6dafb0c6
    • Sven Neumann's avatar
      Converted the first bunch of Script-Fu to the new context API: · 0ef809d6
      Sven Neumann authored
      2004-09-22  Sven Neumann  <sven@gimp.org>
      
      	Converted the first bunch of Script-Fu to the new context API:
      
      	* plug-ins/script-fu/scripts/[3a-c]*.scm: push and pop a context.
      	Removed code that used to restore the context values changed by
      	the scripts.
      0ef809d6
    • Michael Natterer's avatar
      removed assertion about proc_rec != NULL because that happens when · 2dffdbeb
      Michael Natterer authored
      2004-09-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-proc-frame.[ch] (plug_in_proc_frame_init):
      	removed assertion about proc_rec != NULL because that happens
      	when query()ing and init()int plug-ins.
      
      	Replaced "context" by "main_context" plus "context_stack".
      
      	* app/plug-in/plug-in-context.c: implement plug_in_context_push()
      	and plug_in_context_pop().
      
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c: changed accordingly.
      
      	* tools/pdbgen/pdb/context.pdb: use the return values of
      	plug_in_context_push() and _pop().
      
      	* app/pdb/context_cmds.c: regenerated.
      
      	* plug-ins/script-fu/scripts/test-sphere.scm: use
      	gimp-context-push and gimp-context-pop instead of remembering the
      	old values for FG, BG etc.
      2dffdbeb
    • Sven Neumann's avatar
      tools/pdbgen/Makefile.am new files that will hold context related PDB · 4069dd9d
      Sven Neumann authored
      2004-09-22  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/pdb/context.pdb: new files that will hold context
      	related PDB functions.
      
      	* tools/pdbgen/groups.pl
      	* app/pdb/Makefile.am
      	* app/pdb/context_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/progress_cmds.c
      	* libgimp/gimp_pdb.h
      	* libgimp/gimpcontext_pdb.[ch]: (re)generated.
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-context.[ch]: new files that will hold code
      	that implements a context stack in the plug-in's proc-frame.
      
      	* app/plug-in/plug-in.[ch]: new function plug_in_get_proc_frame().
      
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c: use the new function instead of
      	duplicating it all over the place.
      4069dd9d
    • Michael Natterer's avatar
      app/plug-in/Makefile.am removed... ...and added with a new name. · 9ffc00be
      Michael Natterer authored
      2004-09-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-proc.[ch]: removed...
      	* app/plug-in/plug-in-proc-def.[ch]: ...and added with a new name.
      
      	* app/plug-in/plug-in-def.[ch]
      	* app/plug-in/plug-in-message.[ch]
      	* app/plug-in/plug-in-progress.[ch]
      	* app/plug-in/plug-in-rc.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-ins.[ch]
      	* app/actions/plug-in-actions.c
      	* app/actions/plug-in-commands.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/file/file-utils.[ch]
      	* app/gui/gui-vtable.c
      	* app/menus/plug-in-menus.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpfileprocview.c
      	* app/widgets/gimppluginaction.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly plus some
      	minor cosmetic cleanups.
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/plug_in_cmds.c: regenerated.
      9ffc00be
    • Michael Natterer's avatar
      removed the hack that was displaying "Floating Selection" instead of the · 10d80dac
      Michael Natterer authored
      2004-09-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimplayertreeview.c
      	(gimp_layer_tree_view_floating_selection_changed): removed the
      	hack that was displaying "Floating Selection" instead of the
      	floating layer's real name.
      
      	* app/core/gimplayer.c: implement GimpViewable::get_description()
      	instead and special case floating selections with a two-line
      	text that contains "Floating Selection".
      
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimpimage-undo-push.c: emit "name_changed" on the layer
      	when it changes its state from floating to normal or vice versa
      	so the views can update accordingly.
      
      	* app/core/gimpselection.c: s/"Selection"/"Floated Layer"/.
      
      	* app/tools/gimpeditselectiontool.c:
      	s/"Floating Layer"/"Floating Selection"/.
      10d80dac
    • Michael Natterer's avatar
      app/plug-in/Makefile.am new files containing utility functions for · fcc13b8c
      Michael Natterer authored
      2004-09-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-proc-frame.[ch]: new files containing
      	utility functions for initializing/freeing PlugInProcFrames.
      	Added the progress stuff to the proc_frame.
      
      	* app/plug-in/plug-in.[ch]: removed the progress stuff from the
      	PlugIn struct and use the new proc_frame utility functions.
      
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-run.c: changed accordingly.
      fcc13b8c
    • Michael Natterer's avatar
      Prepare for enabling private contexts for plug-ins and scripts: · 77ba473f
      Michael Natterer authored
      2004-09-22  Michael Natterer  <mitch@gimp.org>
      
      	Prepare for enabling private contexts for plug-ins and scripts:
      
      	* app/plug-in/plug-in.[ch]: removed the "context" member from
      	the PlugIn struct and added it to PlugInProcFrame instead.
      
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-run.c: changed accordingly.
      77ba473f
    • Sven Neumann's avatar
      moved the preview to the left. · 531935c7
      Sven Neumann authored
      2004-09-22  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/common/bumpmap.c: moved the preview to the left.
      531935c7
  3. 21 Sep, 2004 11 commits
    • Michael Natterer's avatar
      app/plug-in/plug-in-types.h · 459964ba
      Michael Natterer authored
      2004-09-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-types.h
      
      	* app/plug-in/plug-in.[ch]: added struct PlugInProcFrame which
      	contains the ProcRecord, the proc's GMainLoop and its return
      	values.
      
      	Use the same struct for the plug-in's main proc and its
      	temp_procs, so we finally have one set of return values per call
      	frame, and not just one per plug-in.
      
      	Added plug_in_proc_frame_push()/pop() and changed
      	plug_in_main_loop[_quit]() accordingly.
      
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-run.c: changed accordingly.
      459964ba
    • Sven Neumann's avatar
      workaround Pango bug #143542 (PangoFT2Fontmap leak, see also bug #148997). · 6d73b203
      Sven Neumann authored
      2004-09-22  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimptextlayout.c (gimp_text_get_pango_context):
      	workaround Pango bug #143542 (PangoFT2Fontmap leak, see also bug
      	#148997). Based on a patch by Robert gren.
      6d73b203
    • Sven Neumann's avatar
      removed the prelit event box from the header frame, use a smaller font for · e0d0d7cf
      Sven Neumann authored
      2004-09-22  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpviewabledialog.c: removed the prelit event box
      	from the header frame, use a smaller font for the subtitle,
      	removed the separator.
      
      	* app/dialogs/preferences-dialog.c: removed the prelit event box
      	from the header frame. Perhaps we should have subtitles here with
      	a more verbose description of the settings page?
      e0d0d7cf
    • Michael Natterer's avatar
      resolved conflicting mnemonics. · 01b603c5
      Michael Natterer authored
      2004-09-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/file-actions.c (file_actions): resolved conflicting
      	mnemonics.
      01b603c5
    • Sven Neumann's avatar
      renamed gimp_splash.png to gimp-splash.png. · 93f3623c
      Sven Neumann authored
      2004-09-21  Sven Neumann  <sven@gimp.org>
      
      	* data/images/Makefile.am (imagedata_DATA): renamed gimp_splash.png
      	to gimp-splash.png.
      
      	* data/images/gimp-splash.png: new splash, courtesy of Dave Neary.
      
      	* app/gui/splash.c: look for gimp-splash.png in the users
      	directory, then in the systemwide images directory.
      93f3623c
    • Sven Neumann's avatar
      got rid of two the global file descriptor sets. Use the client hash-table · b58d54bc
      Sven Neumann authored
      2004-09-21  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/script-fu/script-fu-server.c: got rid of two the global
      	file descriptor sets. Use the client hash-table instead.
      b58d54bc
    • Sven Neumann's avatar
      enabled build of the Script-Fu server for the Win32 platform using the · 0d2455ac
      Sven Neumann authored
      2004-09-21  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/script-fu/script-fu-server.c: enabled build of the
      	Script-Fu server for the Win32 platform using the winsock API.
      
      	* plug-ins/script-fu/Makefile.am: link with -lwsock32 on Win32.
      
      	* plug-ins/script-fu/script-fu-console.c
      	* plug-ins/script-fu/script-fu.c
      	* plug-ins/script-fu/siod-wrapper.c: removed Win32 specific code
      	that isn't needed any longer.
      0d2455ac
    • Michael Natterer's avatar
      For the sake of completeness, added a GUI for the hidden "Open as Layer" · 37912655
      Michael Natterer authored
      2004-09-21  Michael Natterer  <mitch@gimp.org>
      
      	For the sake of completeness, added a GUI for the hidden
      	"Open as Layer" feature:
      
      	* app/actions/file-actions.c
      	* app/actions/file-commands.[ch]: added "file-open-as-layer"
      	action and callback. Abuse the "gimage" field of GimpFileDialog to
      	indicate layer opening (it's otherwise unused for file-open).
      
      	* app/dialogs/file-open-dialog.c: if dialog->gimage is non-NULL,
      	open the selected files as layers for that image.
      
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_FILE_OPEN_AS_LAYER.
      
      	* menus/image-menu.xml.in: added it to the menu.
      37912655
    • Sven Neumann's avatar
      let the dialog collapse with the expander by making it not resizable. · 12bbec37
      Sven Neumann authored
      2004-09-21  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/common/jpeg.c (save_dialog): let the dialog collapse
      	with the expander by making it not resizable.
      12bbec37
    • Sven Neumann's avatar
      resolved a mnemonics collision. · 03d49fc1
      Sven Neumann authored
      2004-09-21  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-close.c
      	(gimp_display_shell_close_dialog): resolved a mnemonics collision.
      03d49fc1
    • Dave Neary's avatar
      Correctly set overlay, hard light and soft light modes from .psd files. · ddb73eb8
      Dave Neary authored
      
      
      2004-09-21  Dave Neary  <bolsh@gimp.org>
      
      	* plug-ins/common/psd.c: Correctly set overlay, hard light and
      	soft light modes from .psd files. Fixes bug #153229.
      ddb73eb8
  4. 20 Sep, 2004 8 commits