• Michael Natterer's avatar
    These changes enable help support for 3rd party plug-ins which install · 9c6b0b0c
    Michael Natterer authored
    2000-05-21  Michael Natterer  <mitch@gimp.org>
    
    	These changes enable help support for 3rd party plug-ins which
    	install their help files outside GIMP's main help dir.
    
    	Instead of calling gimp_help(), gimp_plugin_help_func() etc.,
    	all help callbacks now have to call gimp_standard_help_func()
    	which has different implementations in the app and in libgimp.
    
    	There is a new function gimp_plugin_help_register() which can
    	be called during plug-in query. plug_in.c keeps a list of
    	executable_name/help_path pairs. Plug-ins have to pass their
    	exec. name to gimp_help() which uses the list to find the plug-in's
    	help directory.
    
    	* app/gimphelp.[ch]: gimp_help() now takes a help_path parameter.
    	help_path == NULL means the standard help directory. Various
    	changes to pass the help_path to the help browser.
    
    	* app/gimprc.c: save the plug-in's help_path in the pluginrc file.
    
    	* app/menus.c: ugly hack to enable help_paths in the "F1" callback.
    
    	* app/plug_in.[ch]: many help_path related changes. Use g_basename()
    	instead of strrchr(str,G_DIR_SEPARATOR), cosmetic cleanups.
    
    	* app/internal_procs.c
    	* app/gimphelp_cmds.c
    	* tools/pdbgen/pdb/gimphelp.pdb: new procedure
    	gimp_plugin_help_register(). gimp_help() takes a second parameter
    	which is the executable name (not the help_path).
    
    	* app/color_notebook.c
    	* app/commands.c
    	* app/lc_dialog.c
    	* app/preferences_dialog.c
    	* app/tools.c: call gimp_standard_help_func() instead of gimp_help().
    
    	* libgimp/gimp.c: new function gimp_get_progname() which returns
    	the full path of the plug-in's executable.
    
    	* libgimp/gimp.h: export the new function,
    	removed gimp_plugin_help_func(), gimp_help() takes the executable
    	name as second parameter.
    
    	* libgimp/gimpcompat.h: added gimp_plugin_help_func().
    
    	* libgimp/gimphelp.c: a wrapper for gimp_plugin_help_register(),
    	changed the calls to gimp_help.
    
    	* libgimp/gimphelpui.[ch]: call gimp_standard_help_func() instead
    	of gimp_help().
    
    	* plug-ins/helpbrowser/helpbrowser.c: now called with an additional
    	help_path parameter. Various changes to enable
    	help_path != gimp_standard_help_path.
    
    	Unrelated stuff:
    
    	* app/batch.h: added missing GPL header.
    
    	* app/gimpunit.c: had a LGPL header, merged some fprintf's into
    	one call.
    
    	* app/procedural_db.[ch]: cosmetic: g* types, s/g_malloc/g_new/,
    	prototypes, indentation.
    
    	* app/resize.c: use less packing widgets. didn't find the "offset"
    	redraw bug :(
    9c6b0b0c
Name
Last commit
Last update
RPM Loading commit data...
app Loading commit data...
cursors Loading commit data...
data Loading commit data...
debian Loading commit data...
devel-docs Loading commit data...
docs Loading commit data...
etc Loading commit data...
help Loading commit data...
libgimp Loading commit data...
libgimpbase Loading commit data...
libgimpwidgets Loading commit data...
modules Loading commit data...
pixmaps Loading commit data...
plug-ins Loading commit data...
po Loading commit data...
po-libgimp Loading commit data...
po-plug-ins Loading commit data...
po-script-fu Loading commit data...
tips Loading commit data...
tools Loading commit data...
.cvsignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
ChangeLog.plug-ins Loading commit data...
ChangeLog.pre-1-0 Loading commit data...
HACKING Loading commit data...
INSTALL Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
PLUGIN_CVS Loading commit data...
PLUGIN_MAINTAINERS Loading commit data...
README Loading commit data...
README.i18n Loading commit data...
README.patch_xinput_airbrush Loading commit data...
README.perl Loading commit data...
README.win32 Loading commit data...
TODO Loading commit data...
acconfig.h Loading commit data...
acinclude.m4 Loading commit data...
autogen.sh Loading commit data...
config.guess Loading commit data...
config.h.in Loading commit data...
config.h.win32 Loading commit data...
config.sub Loading commit data...
configure.in Loading commit data...
gimp.1 Loading commit data...
gimp.m4 Loading commit data...
gimp.spec Loading commit data...
gimp1_0_splash.ppm Loading commit data...
gimp_logo.ppm Loading commit data...
gimp_splash.ppm Loading commit data...
gimprc-1.2.5.in Loading commit data...
gimprc.5.in Loading commit data...
gimprc.in Loading commit data...
gimprc.win32 Loading commit data...
gimprc_user.in Loading commit data...
gimptool-1.2.in Loading commit data...
gimptool.1 Loading commit data...
gimptool.in Loading commit data...
gtkrc Loading commit data...
ltconfig Loading commit data...
ltmain.sh Loading commit data...
patch_xinput_airbrush Loading commit data...
ps-menurc Loading commit data...
rmshm Loading commit data...
unitrc Loading commit data...
user_install Loading commit data...
user_install.bat Loading commit data...