/* If we haven't found the pixmap, try the source directory. */
if (!found_filename)
{
- found_filename = check_file_exists ("", filename);
+ found_filename = check_file_exists ("../utils/images", filename);
}
if (!found_filename)
{
- g_warning ("Couldn't find pixmap file: %s", filename);
+ g_warning (_("Couldn't find pixmap file: %s"), filename);
return create_dummy_pixmap (widget);
}
NULL, found_filename);
if (gdkpixmap == NULL)
{
- g_warning ("Error loading pixmap file: %s", found_filename);
+ g_warning (_("Error loading pixmap file: %s"), found_filename);
g_free (found_filename);
return create_dummy_pixmap (widget);
}
}
/* This is an internally used function to check if a pixmap file exists. */
-gchar*
+static gchar*
check_file_exists (const gchar *directory,
const gchar *filename)
{