Commit ca5026a5 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

don't do anything if gimp->no_interface is TRUE.

2004-07-12  Michael Natterer  <mitch@gimp.org>

	* app/core/gimp-modules.c: don't do anything if gimp->no_interface
	is TRUE.
parent 84c29b48
2004-07-12 Michael Natterer <mitch@gimp.org>
* app/core/gimp-modules.c: don't do anything if gimp->no_interface
is TRUE.
2004-07-12 Michael Natterer <mitch@gimp.org>
Made the gimp-console binary compile.
......
......@@ -44,8 +44,11 @@ gimp_modules_init (Gimp *gimp)
{
g_return_if_fail (GIMP_IS_GIMP (gimp));
gimp->module_db = gimp_module_db_new (gimp->be_verbose);
gimp->write_modulerc = FALSE;
if (! gimp->no_interface)
{
gimp->module_db = gimp_module_db_new (gimp->be_verbose);
gimp->write_modulerc = FALSE;
}
}
void
......@@ -70,6 +73,9 @@ gimp_modules_load (Gimp *gimp)
g_return_if_fail (GIMP_IS_GIMP (gimp));
if (gimp->no_interface)
return;
filename = gimp_personal_rc_file ("modulerc");
scanner = gimp_scanner_new_file (filename, NULL);
g_free (filename);
......@@ -167,7 +173,7 @@ gimp_modules_unload (Gimp *gimp)
{
g_return_if_fail (GIMP_IS_GIMP (gimp));
if (gimp->write_modulerc)
if (! gimp->no_interface && gimp->write_modulerc)
{
GimpConfigWriter *writer;
GString *str;
......@@ -211,11 +217,14 @@ gimp_modules_unload (Gimp *gimp)
void
gimp_modules_refresh (Gimp *gimp)
{
gchar *path;
g_return_if_fail (GIMP_IS_GIMP (gimp));
path = gimp_config_path_expand (gimp->config->module_path, TRUE, NULL);
gimp_module_db_refresh (gimp->module_db, path);
g_free (path);
if (! gimp->no_interface)
{
gchar *path;
path = gimp_config_path_expand (gimp->config->module_path, TRUE, NULL);
gimp_module_db_refresh (gimp->module_db, path);
g_free (path);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment