mirror of https://github.com/GNOME/gimp.git
removed another warning.
2002-05-03 Sven Neumann <sven@gimp.org> * plug-ins/tools/tool-safe-mode.c: removed another warning.
This commit is contained in:
parent
a74a8997b4
commit
53ff0fe38e
|
@ -1,3 +1,7 @@
|
||||||
|
2002-05-03 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* plug-ins/tools/tool-safe-mode.c: removed another warning.
|
||||||
|
|
||||||
2002-05-03 Michael Natterer <mitch@gimp.org>
|
2002-05-03 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* devel-docs/Makefile.am
|
* devel-docs/Makefile.am
|
||||||
|
|
|
@ -68,7 +68,6 @@ tool_safe_mode_init (const gchar *tool_plug_in_path)
|
||||||
const gchar *dir_ent;
|
const gchar *dir_ent;
|
||||||
struct stat filestat;
|
struct stat filestat;
|
||||||
|
|
||||||
|
|
||||||
#ifdef __EMX__
|
#ifdef __EMX__
|
||||||
/*
|
/*
|
||||||
* Change drive so opendir works.
|
* Change drive so opendir works.
|
||||||
|
@ -78,20 +77,20 @@ tool_safe_mode_init (const gchar *tool_plug_in_path)
|
||||||
_chdrive (tool_plug_in_path[0]);
|
_chdrive (tool_plug_in_path[0]);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
g_message ("%s", tool_plug_in_path);
|
|
||||||
|
g_message ("tool_plug_in_path: %s", tool_plug_in_path);
|
||||||
|
|
||||||
path = gimp_path_parse (tool_plug_in_path, 16, TRUE, NULL);
|
path = gimp_path_parse (tool_plug_in_path, 16, TRUE, NULL);
|
||||||
g_message ("%p", path);
|
|
||||||
|
|
||||||
for (list = path; list; list = g_list_next (list))
|
for (list = path; list; list = g_list_next (list))
|
||||||
{
|
{
|
||||||
g_message("reading directory %s", list->data);
|
g_message ("reading datafiles directory '%s'", (gchar *) list->data);
|
||||||
/* Open directory */
|
|
||||||
dir = g_dir_open ((gchar *) list->data, 0, NULL);
|
dir = g_dir_open ((gchar *) list->data, 0, NULL);
|
||||||
|
|
||||||
if (!dir)
|
if (!dir)
|
||||||
{
|
{
|
||||||
g_message ("error reading datafiles directory \"%s\"",
|
g_message ("error reading datafiles directory '%s'",
|
||||||
(gchar *) list->data);
|
(gchar *) list->data);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -106,7 +105,7 @@ tool_safe_mode_init (const gchar *tool_plug_in_path)
|
||||||
|
|
||||||
if (! err && !S_ISDIR (filestat.st_mode))
|
if (! err && !S_ISDIR (filestat.st_mode))
|
||||||
{
|
{
|
||||||
g_message("loading tool %s\n", filename);
|
g_message ("loading tool %s\n", filename);
|
||||||
gimp_tool_module_new (filename,
|
gimp_tool_module_new (filename,
|
||||||
safe_mode_register_tool,
|
safe_mode_register_tool,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
Loading…
Reference in New Issue