app/file-open.c app/file-utils.c app/gimprc.c app/plug_in.c

2001-10-24  Michael Natterer  <mitch@gimp.org>

	* app/file-open.c
	* app/file-utils.c
	* app/gimprc.c
	* app/plug_in.c
	* app/user_install.c
	* app/base/base.c
	* app/base/temp-buf.c
	* app/core/gimpdata.c
	* app/core/gimpdatafiles.c
	* app/core/gimpimagefile.c
	* app/gui/about-dialog.c
	* app/gui/file-open-dialog.c
	* app/gui/file-save-dialog.c
	* app/gui/gui.c
	* app/gui/menus.c
	* app/gui/splash.c
	* app/gui/tips-dialog.c
	* app/tools/gimpcurvestool.c
	* app/tools/gimplevelstool.c
	* libgimpbase/gimpenv.c
	* plug-ins/FractalExplorer/FractalExplorer.c
	* plug-ins/gfig/gfig.c
	* plug-ins/gflare/gflare.c
	* tools/pdbgen/pdb/fileops.pdb: use g_build_filename() all over
	the place instead of g_strconcat() and friends together with
	G_DIR_SEPARATOR_S. Also removed all attempts to manually detect
	double dir separators. LibGimpBase's searchpath utility functions
	don't append a G_DIR_SEPARATOR_S to all paths any more.

	* app/pdb/fileops_cmds.c: regenerated.
This commit is contained in:
Michael Natterer
2001-10-24 15:56:33 +00:00
committed by Michael Natterer
parent f766956e67
commit 840a9700f4
57 changed files with 689 additions and 670 deletions

View File

@ -98,6 +98,7 @@ file_save_dialog_menu_init (void)
for (list = save_procs; list; list = g_slist_next (list))
{
gchar *basename;
gchar *filename;
gchar *page;
gchar *lowercase_page;
@ -105,12 +106,14 @@ file_save_dialog_menu_init (void)
basename = g_path_get_basename (file_proc->prog);
page = g_strconcat ("filters", G_DIR_SEPARATOR_S,
basename, ".html",
NULL);
filename = g_strconcat (basename, ".html", NULL);
g_free (basename);
page = g_build_filename ("filters", filename, NULL);
g_free (filename);
lowercase_page = g_ascii_strdown (page, -1);
g_free (page);
@ -393,7 +396,9 @@ file_save_ok_callback (GtkWidget *widget,
g_free (s);
}
else
gtk_file_selection_set_filename (fs, filename);
{
gtk_file_selection_set_filename (fs, filename);
}
}
else
{