r14718 - gnucash/trunk/src/gnome-utils - Replace hard-coded directory separator by g_build_filename() function
Christian Stimming
cstim at cvs.gnucash.org
Wed Aug 23 08:09:44 EDT 2006
Author: cstim
Date: 2006-08-23 08:09:43 -0400 (Wed, 23 Aug 2006)
New Revision: 14718
Trac: http://svn.gnucash.org/trac/changeset/14718
Modified:
gnucash/trunk/src/gnome-utils/dialog-utils.c
Log:
Replace hard-coded directory separator by g_build_filename() function
Modified: gnucash/trunk/src/gnome-utils/dialog-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-utils.c 2006-08-23 12:08:49 UTC (rev 14717)
+++ gnucash/trunk/src/gnome-utils/dialog-utils.c 2006-08-23 12:09:43 UTC (rev 14718)
@@ -810,6 +810,10 @@
{
GladeXML *xml;
char *fname;
+ const gchar *gnc_glade_dir = GNC_GLADE_DIR;
+ /* FIXME: On windows, gnc_glade_dir needs to be looked up
+ somewhere where it was specified at installation time instead
+ of compile time, e.g. in the registry. */
g_return_val_if_fail (filename != NULL, NULL);
g_return_val_if_fail (root != NULL, NULL);
@@ -820,7 +824,7 @@
glade_inited = TRUE;
}
- fname = g_strconcat (GNC_GLADE_DIR, "/", filename, (char *)NULL);
+ fname = g_build_filename(gnc_glade_dir, filename, (char *)NULL);
xml = glade_xml_new (fname, root, NULL);
More information about the gnucash-changes
mailing list