1. 04 May, 2005 1 commit
    • Michael Natterer's avatar
      new function which finds a proc_def in a GSList by its procedure name. · 4f2e5afc
      Michael Natterer authored
      2005-05-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-proc-def.[ch] (plug_in_proc_def_find): new
      	function which finds a proc_def in a GSList by its procedure name.
      
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-ins.c
      	* tools/pdbgen/pdb/plug_in.pdb: use it instead of iterating and
      	comparing manually.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      
      	* app/plug-in/plug-in-def.c: minor cleanups.
      4f2e5afc
  2. 03 May, 2005 1 commit
    • Michael Natterer's avatar
      new function. · e103a880
      Michael Natterer authored
      2005-05-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-proc-def.[ch] (plug_in_proc_def_set_icon):
      	new function.
      
      	* tools/pdbgen/pdb/plug_in.pdb: removed the same code here and use
      	the new function.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      e103a880
  3. 25 Apr, 2005 1 commit
    • Sven Neumann's avatar
      added a boolean flag to the ProcDef struct to identify file procedures. · 380b1703
      Sven Neumann authored
      2005-04-25  Sven Neumann  <sven@gimp.org>
      
      	* app/plug-in/plug-in-proc-def.h: added a boolean flag to the
      	ProcDef struct to identify file procedures.
      
      	* app/xcf/xcf.c: changed accordingly.
      
      	* app/plug-in/plug-ins.c: look at the new flag instead of checking
      	extensions, prefixes and magics being non-NULL. A file plug-in
      	doesn't necessarily have any of these fields set.
      
      	* app/plug-in/plug-in-rc.c: changed pluginrc format to contain an
      	extra section for file procedures. Moved all file related info there.
      380b1703
  4. 24 Apr, 2005 1 commit
  5. 07 Apr, 2005 1 commit
  6. 05 Apr, 2005 1 commit
    • Michael Natterer's avatar
      app/plug-in/Makefile.am new files containing plug_ins_query(). · 60e3e02e
      Michael Natterer authored
      2005-04-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-ins-query.[ch]: new files containing
      	plug_ins_query().
      
      	* tools/pdbgen/pdb/plug_in.pdb (plugins_query): remove all code
      	and use above function.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      60e3e02e
  7. 24 Mar, 2005 1 commit
    • Michael Natterer's avatar
      Added API to explicitly register dynamic menu items hierarchies. Fixes bug · 0a5ce16b
      Michael Natterer authored
      2005-03-24  Michael Natterer  <mitch@gimp.org>
      
      	Added API to explicitly register dynamic menu items hierarchies.
      	Fixes bug #170623.
      
      	* app/core/gimp.h: added "GSList *plug_in_menu_branches".
      
      	* app/plug-in/plug-in-types.h
      
      	* app/plug-in/plug-ins.[ch]: added API to register plug-in menu
      	branches, just as for locale and help domans. Cleaned up handling
      	of locale and help domains.
      
      	(plug_ins_exit): free the registered menu branches.
      
      	* app/actions/plug-in-actions.[ch] (plug_in_actions_add_branch):
      	new function to explicitly add a menu branch action.
      
      	(plug_in_actions_setup): add the registered menu branches to each
      	new action group.
      
      	(plug_in_actions_build_path): always strip the untranslated menu
      	path from underlines before using it as hash table key or action
      	name.
      
      	* app/menus/plug-in-menus.c (plug_in_menus_add_proc): changed
      	accordingly: strip underlines from untranslated menu paths before
      	passing them to plug_in_menus_build_path().
      
      	* app/core/gimp-gui.[ch]: added gimp_menus_create_branch() plus
      	vtable entry to access the new stuff from the core. Renamed the
      	functions desling with items from gimp_foo_entry() to
      	gimp_foo_item().
      
      	* app/gui/gui-vtable.c: implement create_branch() and add the
      	branch action to all existing "plug-in" action groups. Note that
      	we don't need to create any menus because that happens implicitly
      	when adding menu items.
      
      	* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_branch_register): new
      	PDB wrapper to access branch registering from plug-ins.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/plug_in_cmds.c
      	* libgimp/gimpplugin_pdb.[ch]: regenerated.
      
      	* libgimp/gimp.def: changed accordingly.
      
      	* plug-ins/script-fu/script-fu-scripts.c (script_fu_find_scripts):
      	register the menu branches for all included scripts.
      0a5ce16b
  8. 27 Feb, 2005 1 commit
    • Daniel Egger's avatar
      app/base/Makefile.am app/composite/*akefile.am app/config/*akefile.am · 0add6029
      Daniel Egger authored
      2005-02-27  Daniel Egger  <de@axiros.com>
      
      	* app/base/Makefile.am
      	* app/composite/*akefile.am
      	* app/config/*akefile.am
      	* app/core/*akefile.am
      	* app/display/*akefile.am
      	* app/file/*akefile.am
      	* app/paint-funcs/*akefile.am
      	* app/pdb/*akefile.am
      	* app/plug-in/*akefile.am
      	* app/text/*akefile.am
      	* app/tools/*akefile.am
      	* app/vectors/*akefile.am
      	* app/xcf/*akefile.am: Commonized include paths to always look
      	in the builddir also to cater for srcdir != builddir builds.
      0add6029
  9. 21 Feb, 2005 1 commit
    • Manish Singh's avatar
      Support for custom plug-in interpreters, independent of OS support. · 9706fce0
      Manish Singh authored
      2005-02-20  Manish Singh  <yosh@gimp.org>
      
              Support for custom plug-in interpreters, independent of OS support.
      
              * app/core/Makefile.am
              * app/core/core-types.h
              * app/core/gimpinterpreterdb.[ch]: implemented GimpInterpreterDB,
              which handles registering and resolving custom plug-in interpreters.
      
              * app/core/gimp.[ch]: keep a GimpInterpreterDB around.
      
              * app/config/gimpcoreconfig.[ch]
              * app/config/gimprc-blurbs.h
              * app/dialogs/preferences-dialog.c
              * app/dialogs/user-install-dialog.c
              * app/widgets/gimphelp-ids.h: interpreter-path config stuff.
      
              * app/plug-in/plug-in.c: use registered interpreters when running
              plug-ins.
      
              * themes/Default/images/preferences/Makefile.am
              * themes/Default/images/preferences/folders-interp.png: just copied
              folders-plug-ins.png here, need a better one.
      
              * data/interpreters/Makefile.am: creates system interpreter directory.
      
              * data/interpreters/default.interp: sample interpreter file info.
      
              * data/Makefile.am
              * configure.in: add data/interpreters directory.
      
              * plug-ins/pygimp/Makefile.am: install pygimp.interp, which configures
              the python interpreter to point to the python we were built with. Also
              register the .py extension.
      
              * etc/gimprc
              * docs/gimprc.5.in: regenerated
      9706fce0
  10. 20 Feb, 2005 1 commit
    • Sven Neumann's avatar
      app/core/gimpgradient-load.c app/core/gimppalette.c app/core/gimppattern.c · 1e6a94e6
      Sven Neumann authored
      2005-02-20  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpgradient-load.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/plug-in/plug-in.c
      	* libgimpbase/gimputils.c
      	* libgimpmodule/gimpmodule.c
      	* libgimpwidgets/gimppatheditor.c
      	* tools/pdbgen/pdb/image.pdb: use g_filename_display_name() or
      	g_filename_display_basename() where appropriate.
      
      	* app/pdb/image_cmds.c: regenerated.
      1e6a94e6
  11. 13 Feb, 2005 2 commits
    • Sven Neumann's avatar
      check for gthread-2.0 unless the --disable-mp option is given. · 9511753a
      Sven Neumann authored
      2005-02-13  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: check for gthread-2.0 unless the --disable-mp
      	option is given.
      
      	* app/app_procs.c (app_libs_init): call g_thread_init().
      
      	* app/base/pixel-processor.c: ported to GThread.
      
      	* app/Makefile.am
      	* app/*/Makefile.am: use @GTHREAD_CFLAGS@.
      9511753a
    • Sven Neumann's avatar
      accept an empty string. · 4cf9d0e4
      Sven Neumann authored
      2005-02-13  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpprogress.c (gimp_progress_start): accept an empty
      	string.
      
      	* app/plug-in/plug-in-progress.c: if NULL is passed as message to
      	plug_in_progress_start(), set an empty string on the progress.
      
      	* tools/pdbgen/pdb/progress.pdb:
      	* libgimp/gimpprogress.[ch]: wrap the new gimp_progress_set_text()
      	PDP function with a function that accepts printf-like arguments.
      
      	* libgimp/gimpprogress_pdb.[ch]: regenerated.
      
      	* lots of plug-ins, most of them file plug-ins:
      	use gimp_progress_init(NULL) followed by gimp_progress_set_text()
      	to initialize the progress using the new API instead of constructing
      	a temporary string.
      4cf9d0e4
  12. 12 Feb, 2005 3 commits
    • Sven Neumann's avatar
      app/plug-in/plug-in-progress.[ch] added new PDB function · 996d24a3
      Sven Neumann authored
      2005-02-12  Sven Neumann  <sven@gimp.org>
      
      	* app/plug-in/plug-in-progress.[ch]
      	* tools/pdbgen/pdb/progress.pdb: added new PDB function
      	gimp_progress_set_text().
      
      	* app/pdb/internal_procs.c
      	* app/pdb/progress_cmds.c
      	* libgimp/gimpprogress_pdb.[ch]: regenerated.
      
      	* libgimp/gimp.def: updated.
      996d24a3
    • Sven Neumann's avatar
      only set progress value to 0.0 if it isn't 0.0 already. Allows to use · 9cabb3e9
      Sven Neumann authored
      2005-02-12  Sven Neumann  <sven@gimp.org>
      
      	* app/plug-in/plug-in-progress.c (plug_in_progress_start): only
      	set progress value to 0.0 if it isn't 0.0 already. Allows to use
      	gimp_progress_init() to change the progress message w/o causing
      	gtk_progress_bar_set_fraction() to be called.
      
      	* plug-ins/uri/uri-backend-gnomevfs.c: use gimp_progress_pulse()
      	if the filesize is unknown. Also limit frequency of progress
      	updates.
      9cabb3e9
    • Sven Neumann's avatar
      added GimpProgress::pulse. · 7c19953c
      Sven Neumann authored
      2005-02-12  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpprogress.[ch]: added GimpProgress::pulse.
      
      	* app/display/gimpdisplay.c
      	* app/display/gimpstatusbar.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpprogressbox.c
      	* app/widgets/gimpprogressdialog.c
      	* app/widgets/gimpthumbbox.c: implement it in the classes that
      	implement the GimpProgress interface.
      
      	* app/plug-in/plug-in-progress.[ch]: allow plug-ins to pulse their
      	progress.
      
      	* tools/pdbgen/pdb/progress.pdb: added a procedure for the new
      	functionality.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/progress_cmds.c
      	* libgimp/gimpprogress_pdb.[ch]: regenerated.
      
      	* libgimp/gimp.def: updated.
      7c19953c
  13. 08 Feb, 2005 1 commit
    • Michael Natterer's avatar
      removed SIGCHLD handler which used to call waitpid(-1,...) because this · a285088c
      Michael Natterer authored
      2005-02-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/main.c: removed SIGCHLD handler which used to call
      	waitpid(-1,...) because this breaks all waitpid(pid,...) calls
      	in a non-deterministic way. Apparently it is possible to use both
      	SIG_DFL *and* SA_RESTART (SA_RESTART being the original reason
      	why the call to sigaction() was introduced).
      
      	* app/plug-in/plug-in.c (plug_in_close): don't have a million
      	subsequent if(plug_in->pid) blocks. Put everything into one big
      	if(plug_in->pid) block instead. Call g_spawn_close_pid() on all
      	platforms instead of using the Win32 CloseHandle().
      a285088c
  14. 07 Feb, 2005 1 commit
    • Sven Neumann's avatar
      app/base/base.c app/base/temp-buf.c app/base/tile-swap.c · 648cccde
      Sven Neumann authored
      2005-02-07  Sven Neumann  <sven@gimp.org>
      
      	* app/base/base.c
      	* app/base/temp-buf.c
      	* app/base/tile-swap.c
      	* app/config/gimpconfig-file.c
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpdata.c
      	* app/core/gimpenvirontable.c
      	* app/core/gimpgradient-load.c
      	* app/core/gimpgradient-save.c
      	* app/core/gimppalette-import.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/dialogs/user-install-dialog.c
      	* app/gui/session.c
      	* app/menus/menus.c
      	* app/widgets/gimpdevices.c: use gstdio wrappers.
      648cccde
  15. 25 Jan, 2005 1 commit
  16. 22 Jan, 2005 2 commits
  17. 23 Dec, 2004 1 commit
  18. 14 Dec, 2004 1 commit
    • Michael Natterer's avatar
      added "gint ref_count" to the PlugInProcFrame struct. Added new functions · 0449deee
      Michael Natterer authored
      2004-12-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in-proc-frame.[ch]: added "gint ref_count" to
      	the PlugInProcFrame struct. Added new functions
      	plug_in_proc_frame_ref/unref().
      
      	(plug_in_proc_frame_new): set the ref_count to 1.
      
      	* app/plug-in/plug-in.[ch] (plug_in_proc_frame_push): return the
      	new proc_frame.
      
      	(plug_in_proc_frame_pop): use unref() instead of free().
      
      	* app/plug-in/plug-in-run.c (plug_in_temp_run): ref the proc_frame
      	while running its main loop. Removed the call to
      	plug_in_proc_frame_pop().
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_temp_proc_return):
      	call plug_in_proc_frame_pop() immediately after
      	plug_in_main_loop_quit() so the proc_frame goes away from the
      	stack and can't be used accidentially if the core is too busy to
      	return to the main loop before the next command arrives on the
      	wire. Really fixes bug #161114 this time.
      0449deee
  19. 09 Dec, 2004 1 commit
    • Sven Neumann's avatar
      only expose the area of the window that actually changed. · 9af2a5d2
      Sven Neumann authored
      2004-12-09  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/splash.c (splash_update): only expose the area of the
      	window that actually changed.
      
      	* app/plug-in/plug-in-rc.c (plug_in_rc_write): changed the header
      	and footer to be more in line with the other rc files.
      9af2a5d2
  20. 21 Nov, 2004 1 commit
    • Hans Breuer's avatar
      [new file] app/dialogs/Makefile.am : added to EXTRA_DIST · 696663a6
      Hans Breuer authored
      2004-09-21  Hans Breuer  <hans@breuer.org>
      
      	* app/dialogs/makefile.msc : [new file]
      	  app/dialogs/Makefile.am : added to EXTRA_DIST
      
      	* **/makefile.msc app/gimpcore.def : updated
      
      	* app/gimp.rc : let wilber be first
      
      	* app/widgets/gimppropwidgets.c : msvc6 can't cast uint64 either
      
      	* libgimpbase/gimpwin32-io.h : make up recent loss of ftruncate in GLib
      
      	* libgimpthumbnail/gimpthumbnail.c : <process.h> for getpid() on win32
      
      	* plug-ins/helpbrowser/dialog.c : include gimpwin32-io.h
      
      	* plug-ins/script-fu/siodwrapper.c plug-ins/script-fu/scrip-fu.c : there
      	is no script-fu-server on win32
      696663a6
  21. 19 Nov, 2004 1 commit
    • Michael Natterer's avatar
      tools/pdbgen/lib.pl added support for deprecated procedures without any · ebf18dce
      Michael Natterer authored
      2004-11-19  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/lib.pl
      	* tools/pdbgen/stddefs.pdb: added support for deprecated procedures
      	without any replacement.
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_run): added
      	a special warning for procedures without replacement.
      
      	* tools/pdbgen/pdb/drawable.pdb: deprecated drawable_set_image()
      	without any replacement and made it a nop (which fails if the
      	passed image is different from the drawable's image). It's not
      	needed any longer since 2.0 and moreover dangerous to use.
      
      	* app/pdb/drawable_cmds.c
      	* libgimp/gimpdrawable_pdb.[ch]: regenerated.
      
      	* app/core/gimpitem.c (gimp_item_set_image): replaced assertion
      	for gimp_item_is_floating() by !gimp_item_is_attached(). The
      	former warned when adding a layer with already added mask to the
      	image (which is a perfectly valid operation).
      ebf18dce
  22. 17 Nov, 2004 2 commits
    • Michael Natterer's avatar
      Made plug-in menu registration work the same way for ordinary and · d871be74
      Michael Natterer authored
      2004-11-17  Michael Natterer  <mitch@gimp.org>
      
      	Made plug-in menu registration work the same way for ordinary and
      	temporary procedures. Addresses bug #158117.
      
      	* app/core/gimp-gui.[ch]: added "const gchar *menu_path" to
      	gimp_menus_create_entry().
      
      	* app/gui/gui-vtable.c (gui_menus_create_entry): if menu_path is
      	NULL, behave as before and create an action and its menu entries
      	for all the procedure's menu_paths. If it is non-NULL, skip action
      	creation and create a menu entry just for that path.
      
      	* app/plug-in/plug-ins.c (plug_ins_temp_proc_def_add): call
      	gimp_menus_create_entry() with a NULL menu path and call it if
      	proc_def->menu_paths *or* proc_def->menu_label is non-NULL, so
      	it creates at least the procedure's action, even if it has
      	no menu_path (yet).
      
      	* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_register): check both
      	the list of procs and temp_procs when trying to register the
      	entry.  Allow ordinary procedures and extensions to install stuff
      	at query() and init() time and allow temp_procs to install stuff
      	at any time.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      d871be74
    • Michael Natterer's avatar
      replaced the while(plug_in->temp_procs) "loop" which called · cd1960ad
      Michael Natterer authored
      2004-11-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in.c (plug_in_close): replaced the
      	while(plug_in->temp_procs) "loop" which called
      	plug_in_proc_frame_quit() by a real for()-loop iterating over the
      	list of PlugInProcFrames, calling g_main_loop_quit() on each main
      	loop. The old version did not unroll the stack but looped
      	infinitely. Spotted by Yosh.
      cd1960ad
  23. 14 Nov, 2004 1 commit
    • Manish Singh's avatar
      Fix a bunch of warnings from Sparse: · 5d015810
      Manish Singh authored
      2004-11-13  Manish Singh  <yosh@gimp.org>
      
              Fix a bunch of warnings from Sparse:
      
              * app/actions/dockable-commands.c
              * app/actions/layers-actions.c
              * app/actions/view-commands.c
              * app/base/pixel-surround.c
              * app/config/gimpconfig-utils.c
              * app/config/gimpscanner.c
              * app/core/gimpbrushgenerated.c
              * app/core/gimpcontainer.c
              * app/core/gimpimage.c
              * app/dialogs/palette-import-dialog.c
              * app/file/gimprecentlist.c
              * app/plug-in/plug-in-params.c
              * app/text/gimptext-compat.c
              * app/text/gimptext-parasite.c
              * app/vectors/gimpbezierstroke.c
              * app/vectors/gimpstroke.c
              * app/widgets/gimpcellrendereraccel.c
              * app/widgets/gimpselectiondata.c
              * app/xcf/xcf.c
              * libgimp/gimp.c
              * libgimpthumb/gimpthumb-utils.c
              * libgimpthumb/gimpthumbnail.c
              * modules/cdisplay_proof.c
              * plug-ins/Lighting/lighting_ui.c
              * plug-ins/common/csource.c
              * plug-ins/common/glasstile.c
              * plug-ins/common/nova.c
              * plug-ins/common/pcx.c
              * plug-ins/common/pnm.c
              * plug-ins/common/randomize.c
              * plug-ins/common/screenshot.c
              * plug-ins/common/sel_gauss.c
              * plug-ins/common/spheredesigner.c
              * plug-ins/common/wind.c
              * plug-ins/gfig/gfig-dialog.c
              * plug-ins/gfig/gfig-dobject.c
              * plug-ins/gimpressionist/gimpressionist.c
              * plug-ins/ifscompose/ifscompose.c
              * plug-ins/print/gimp_main_window.c
              * plug-ins/print/print.c: Cleanup integer vs. pointer confusion.
      
              * app/base/temp-buf.c
              * app/dialogs/about-dialog.c
              * plug-ins/common/bumpmap.c
              * plug-ins/common/jigsaw.c
              * plug-ins/gfig/gfig-dobject.c: Cosmetic cleanups.
      
              * app/config/gimpconfig-deserialize.c
              * app/config/gimpconfig-path.c
              * app/config/gimpconfigwriter.c
              * app/core/gimpgradient.c
              * app/tools/gimpdrawtool.c
              * plug-ins/common/nlfilt.c
              * plug-ins/common/unsharp.c
              * plug-ins/common/zealouscrop.c: Define inline functions before they
              are used.
      
              * app/core/gimpdrawable-blend.c: PixelRegion definition was changed
              some time ago, but the initialization here didn't change. Fix it.
      
              * app/plug-in/plug-in-rc.c (plug_in_extra_deserialize): No need to
              assign token twice in a row.
      
              * libgimpbase/gimpdatafiles.c (gimp_datafiles_read_directories): No
              need to initialize file_data, since the code fills out all the fields.
      
              * plug-ins/common/CML_explorer.c
              * plug-ins/common/vpropagate.c: Declare function pointers fully.
      
              * plug-ins/common/grid.c (pix_composite): G_INLINE_FUNC isn't needed,
              we assume we can use the "inline" keyword always.
      
              * plug-ins/common/psd_save.c
              * plug-ins/common/vinvert.c
              * plug-ins/gfig/gfig-arc.c
              * plug-ins/gfig/gfig-bezier.c
              * plug-ins/gfig/gfig-circle.c
              * plug-ins/gfig/gfig-dialog.c
              * plug-ins/gfig/gfig-dobject.c
              * plug-ins/gfig/gfig-ellipse.c
              * plug-ins/gfig/gfig-line.c
              * plug-ins/gfig/gfig-poly.c
              * plug-ins/gfig/gfig-spiral.c
              * plug-ins/gfig/gfig-star.c
              * plug-ins/gfig/gfig.c
              * plug-ins/gimpressionist/orientmap.c
              * plug-ins/gimpressionist/placement.c
              * plug-ins/gimpressionist/sizemap.c
              * plug-ins/imagemap/imap_grid.c
              * plug-ins/imagemap/imap_main.c
              * plug-ins/imagemap/imap_preferences.c
              * plug-ins/imagemap/imap_settings.c
              * plug-ins/maze/maze.c
              * plug-ins/sel2path/curve.c
              * plug-ins/sel2path/fit.c
              * plug-ins/sel2path/pxl-outline.c
              * plug-ins/sel2path/spline.c
              * plug-ins/xjt/xjt.c: Functions with no args should be declared
              with (void).
      
              * plug-ins/common/retinex.c (MSRCR): Initialize max_preview to quiet
              the compiler.
      5d015810
  24. 13 Nov, 2004 1 commit
    • Sven Neumann's avatar
      app/plug-in/plug-in-proc-def.[ch] app/plug-in/plug-in-rc.c allow to · b62ca985
      Sven Neumann authored
      2004-11-13  Sven Neumann  <sven@gimp.org>
      
      	* app/plug-in/plug-in-proc-def.[ch]
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-ins.[ch]: allow to associate a procedure for
      	thumbnail loading with any file load procedure.
      
      	* tools/pdbgen/pdb/fileops.pdb: export this functionality to the
      	PDB as gimp_register_thumbnail_loader().
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimpfileops_pdb.[ch]: regenerated.
      
      	* app/core/gimpimagefile.c
      	* app/file/file-open.[ch]: when creating a thumbnail for an image
      	file, use a thumbnail load procedure if available.
      
      	* plug-ins/common/svg.c: added "file_svg_load_thumb", a procedure
      	that allows to load a small preview of the SVG image.
      b62ca985
  25. 01 Nov, 2004 1 commit
    • Sven Neumann's avatar
      don't check for file_proc->menu_paths. Our load and save procedure don't · caac418c
      Sven Neumann authored
      2004-11-01  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpfiledialog.c (gimp_file_dialog_add_filters):
      	don't check for file_proc->menu_paths. Our load and save procedure
      	don't necessarily register a menu path any longer.
      
      	* app/plug-in/plug-ins.c: minor cleanup.
      
      	* app/xcf/xcf.c (xcf_init): no need for adding menu paths for the
      	XCF load and save procedures.
      
      	* tools/pdbgen/pdb/fileops.pdb: fixed outdated documentation.
      
      	* app/pdb/fileops_cmds.c
      	* libgimp/gimpfileops_pdb.c: regenerated.
      caac418c
  26. 29 Oct, 2004 1 commit
  27. 25 Oct, 2004 1 commit
    • Michael Natterer's avatar
      Don't store human readable and translatable enum/flag strings in · 67116466
      Michael Natterer authored
      2004-10-25  Michael Natterer  <mitch@gimp.org>
      
      	Don't store human readable and translatable enum/flag strings in
      	GEnumValue's and GTypeValue's fields but attach them to their
      	GType using separate structs and utility functions:
      
      	* tools/gimp-mkenums: added params and perl voodoo to support
      	generating a second array of values, which is used by the
      	Makefiles below to create and register arrays of value
      	descriptions.
      
      	* libgimpbase/gimpbasetypes.[ch]: added API to attach/retreive
      	arrays of translatable strings to/from enum and flags types. Added
      	structs GimpEnumDesc and GimpFlagsDesc for that purpose.
      
      	* libgimpbase/gimputils.[ch]: changed existing enum utility
      	functions, added new ones and added a symmetric API for flags.
      
      	* app/base/Makefile.am
      	* app/core/Makefile.am
      	* app/display/Makefile.am
      	* app/paint/Makefile.am
      	* app/text/Makefile.am
      	* app/tools/Makefile.am
      	* app/widgets/Makefile.am
      	* libgimp/Makefile.am
      	* libgimpbase/Makefile.am: changed *-enums.c generation rules
      	accordingly.
      
      	* app/base/base-enums.c
      	* app/core/core-enums.c
      	* app/display/display-enums.c
      	* app/paint/paint-enums.c
      	* app/text/text-enums.c
      	* app/tools/tools-enums.c
      	* app/widgets/widgets-enums.c
      	* libgimpbase/gimpbaseenums.c: regenerated.
      
      	* app/widgets/gimpenumstore.c
      	* app/widgets/gimpenumwidgets.c
      	* app/widgets/gimptemplateeditor.c
      	* libgimpwidgets/gimppreviewarea.c: follow the enum utility
      	function API changes.
      67116466
  28. 14 Oct, 2004 1 commit
    • Sven Neumann's avatar
      added "message" function to the GimpProgress interface. Call · 0b6f4114
      Sven Neumann authored
      2004-10-14  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpprogress.[ch]: added "message" function to the
      	GimpProgress interface. Call gimp_message() if it is unimplemented.
      
      	* app/plug-in/plug-in-progress.[ch]: added new function
      	plug_in_progress_message() that passes the message to the current
      	proc_frame's progress.
      
      	* app/widgets/gimpthumbbox.c: implement GimpProgress::message.
      	Just do nothing in the implementation. We don't want to see
      	messages from file plug-ins that we use to create the thumbnails.
      
      	* tools/pdbgen/pdb/message.pdb
      	* app/pdb/message_cmds.c: if there's a current plug-in, dispatch
      	the message by calling plug_in_progress_message().
      
      	* app/display/gimpdisplayshell-close.c: fixed wrong types in
      	function calls.
      0b6f4114
  29. 06 Oct, 2004 2 commits
    • Michael Natterer's avatar
      changed new member "deprecated" from "gboolean" to a "gchar*" which holds · 6f42c42d
      Michael Natterer authored
      2004-10-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/procedural_db.h (struct ProcRecord): changed new member
      	"deprecated" from "gboolean" to a "gchar*" which holds the name of
      	the replacement procedure.
      
      	* tools/pdbgen/app.pl: changed accordingly.
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_run): show
      	the name of the replacement procedure in the warning message.
      
      	* tools/pdbgen/stddefs.pdb: added utility function
      	std_pdb_deprecated() which takes the name of the replacement
      	procedure and fills the blurb, help, author, copyright, date and
      	deprecated fields of the procedure definition.
      
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/text_tool.pdb: use it instead of duplicating
      	the same code and strings for all deprecated procedures.
      
      	* app/pdb/*_cmds.c: regenerated.
      6f42c42d
    • Michael Natterer's avatar
      return the mask's bpp and the brush's pixmap data if it has one. · 7ed9a288
      Michael Natterer authored
      2004-10-06  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/brush.pdb: return the mask's bpp and the
      	brush's pixmap data if it has one.
      
      	* tools/pdbgen/pdb/pattern.pdb: cleaned up.
      
      	* tools/pdbgen/pdb/image.pdb: added $deprecated = 1 to deprecated
      	functions even if they are not exported to libgimp any more.
      
      	* app/pdb/procedural_db.h (struct ProcRecord): added member
      	"gboolean deprecated".
      
      	* tools/pdbgen/app.pl
      	* app/xcf/xcf.c: fill it accordingly.
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_run): warn
      	not only for deprecated procedured which are in the compat hach
      	table, but also for procedures with deprecated flag set to TRUE.
      
      	* app/pdb/*_cmds.c
      	* libgimp/gimpbrush_pdb.[ch]
      	* libgimp/gimppattern_pdb.[ch]: regenerated.
      
      	* libgimp/gimpbrushmenu.c
      	* plug-ins/gfig/gfig-style.c: changed accordingly.
      7ed9a288
  30. 04 Oct, 2004 1 commit
    • Sven Neumann's avatar
      app/config/gimpguiconfig.[ch] added gimprc option "show-help-button". · 62b5c77c
      Sven Neumann authored
      2004-10-04  Sven Neumann  <sven@gimp.org>
      
              * app/config/gimpguiconfig.[ch]
              * app/config/gimprc-blurbs.h: added gimprc option "show-help-button".
      
              * app/dialogs/preferences-dialog.c: added a GUI for it.
      
              * app/dialogs/file-save-dialog.c
              * app/dialogs/image-new-dialog.c
              * app/dialogs/quit-dialog.c
              * app/display/gimpdisplayshell-close.c
              * app/widgets/gimphelp-ids.h: don't set help-ids on confirmation
              dialogs.
      
              * libgimpbase/gimpprotocol.[ch]
              * libgimp/gimp.[ch]: added boolean "show_help_button" to the
              config message.
      
              * app/plug-in/plug-in-run.c: pass the new preference to the plug-in.
      
              * libgimpwidgets/gimpdialog.[ch]: added new function that allows to
              set whether new dialogs should get a help button added.
      
              * app/gui/gui.c
              * libgimp/gimpui.c: call gimp_dialogs_show_help_button() according
              to the gimprc settings.
      62b5c77c
  31. 24 Sep, 2004 1 commit
  32. 22 Sep, 2004 3 commits
    • 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
      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