return FALSE if the file wasn't found.
2004-02-08 Sven Neumann <sven@gimp.org> * app/plug-in/plug-in-rc.c (plug_in_rc_parse): return FALSE if the file wasn't found. * app/plug-in/plug-ins.c (plug_ins_init): don't output the error message from plug_in_rc_parse() if it failed for file not found. Fixes bug #133490.
This commit is contained in:
committed by
Sven Neumann
parent
9257adae0a
commit
cc446eaebb
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
||||
2004-02-08 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/plug-in/plug-in-rc.c (plug_in_rc_parse): return FALSE if the
|
||||
file wasn't found.
|
||||
|
||||
* app/plug-in/plug-ins.c (plug_ins_init): don't output the error
|
||||
message from plug_in_rc_parse() if it failed for file not found.
|
||||
|
||||
Fixes bug #133490.
|
||||
|
||||
2004-02-08 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* libgimpwidgets/gimppickbutton.c: some code cleanup, no changes.
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
#include "plug-in-types.h"
|
||||
|
||||
#include "config/gimpcoreconfig.h"
|
||||
#include "config/gimpconfig-error.h"
|
||||
#include "config/gimpconfig-path.h"
|
||||
|
||||
#include "core/gimp.h"
|
||||
@ -132,7 +133,9 @@ plug_ins_init (Gimp *gimp,
|
||||
|
||||
if (! plug_in_rc_parse (gimp, filename, &error))
|
||||
{
|
||||
g_message (error->message);
|
||||
if (error->code != GIMP_CONFIG_ERROR_OPEN_ENOENT)
|
||||
g_message (error->message);
|
||||
|
||||
g_clear_error (&error);
|
||||
}
|
||||
|
||||
|
||||
@ -90,7 +90,7 @@ plug_in_rc_parse (Gimp *gimp,
|
||||
scanner = gimp_scanner_new_file (filename, error);
|
||||
|
||||
if (! scanner)
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
|
||||
g_scanner_scope_add_symbol (scanner, 0,
|
||||
"protocol-version",
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
#include "plug-in-types.h"
|
||||
|
||||
#include "config/gimpcoreconfig.h"
|
||||
#include "config/gimpconfig-error.h"
|
||||
#include "config/gimpconfig-path.h"
|
||||
|
||||
#include "core/gimp.h"
|
||||
@ -132,7 +133,9 @@ plug_ins_init (Gimp *gimp,
|
||||
|
||||
if (! plug_in_rc_parse (gimp, filename, &error))
|
||||
{
|
||||
g_message (error->message);
|
||||
if (error->code != GIMP_CONFIG_ERROR_OPEN_ENOENT)
|
||||
g_message (error->message);
|
||||
|
||||
g_clear_error (&error);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user