Pass the current icon theme directory to plug-ins through the config message, and add a gimp_icon_theme_dir() libgimp function for retrieving it. Note that we already have a similar gimp_icon_get_theme_dir() PDB function, which we keep around, since it can be used to dynamically query for the current icon dir, unlike the former, and since it returns a dynamically-allocated string, while the rest of the config-related functions return statically allocated strings. Use the new function, instead of gimp_get_icon_theme_dir(), in gimp_ui_init(). This allows gimp_ui_init() to run without making any PDB calls. Consequently, this allows us to start plug-ins that call gimp_ui_init() without entering the main loop in the main app. We're going to add a plug-in that displays an interactive dialog while the main app is blocking waiting for an operation to complete, and we need to be able to start the plug-in without entering the main loop, to avoid the possibility of arbitrary code being executed during the wait. Bump the protocol version. |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| gimpenvirontable.c | ||
| gimpenvirontable.h | ||
| gimpinterpreterdb.c | ||
| gimpinterpreterdb.h | ||
| gimpplugin-cleanup.c | ||
| gimpplugin-cleanup.h | ||
| gimpplugin-context.c | ||
| gimpplugin-context.h | ||
| gimpplugin-message.c | ||
| gimpplugin-message.h | ||
| gimpplugin-progress.c | ||
| gimpplugin-progress.h | ||
| gimpplugin.c | ||
| gimpplugin.h | ||
| gimpplugindebug.c | ||
| gimpplugindebug.h | ||
| gimpplugindef.c | ||
| gimpplugindef.h | ||
| gimppluginerror.c | ||
| gimppluginerror.h | ||
| gimppluginmanager-call.c | ||
| gimppluginmanager-call.h | ||
| gimppluginmanager-data.c | ||
| gimppluginmanager-data.h | ||
| gimppluginmanager-file-procedure.c | ||
| gimppluginmanager-file-procedure.h | ||
| gimppluginmanager-file.c | ||
| gimppluginmanager-file.h | ||
| gimppluginmanager-help-domain.c | ||
| gimppluginmanager-help-domain.h | ||
| gimppluginmanager-locale-domain.c | ||
| gimppluginmanager-locale-domain.h | ||
| gimppluginmanager-menu-branch.c | ||
| gimppluginmanager-menu-branch.h | ||
| gimppluginmanager-query.c | ||
| gimppluginmanager-query.h | ||
| gimppluginmanager-restore.c | ||
| gimppluginmanager-restore.h | ||
| gimppluginmanager.c | ||
| gimppluginmanager.h | ||
| gimppluginprocedure.c | ||
| gimppluginprocedure.h | ||
| gimppluginprocframe.c | ||
| gimppluginprocframe.h | ||
| gimppluginshm.c | ||
| gimppluginshm.h | ||
| gimptemporaryprocedure.c | ||
| gimptemporaryprocedure.h | ||
| Makefile.am | ||
| plug-in-enums.c | ||
| plug-in-enums.h | ||
| plug-in-menu-path.c | ||
| plug-in-menu-path.h | ||
| plug-in-params.c | ||
| plug-in-params.h | ||
| plug-in-rc.c | ||
| plug-in-rc.h | ||
| plug-in-types.h | ||