Re: the location of "sheets" passed to Dia
- From: "Sameer Sahasrabuddhe" <sameerds gmail com>
- To: "discussions about usage and development of dia" <dia-list gnome org>
- Subject: Re: the location of "sheets" passed to Dia
- Date: Wed, 24 Dec 2008 23:35:58 +0530
On Sat, Dec 20, 2008 at 9:17 PM, Hans Breuer <hans breuer org> wrote:
The correct fix is to extract the code in
lib/sheet.c into a new function called dia_get_sheets_directory(),
which can be used wherever the name of the sheets directory is
required.
A patch which cleans up SISSI would be appreciated. But as said above the
fix should be local to the plug-in.
I started creating a new function in sissi.c, called
"sissi_get_sheets_directory()". This will be used by whichever SISSI
file needs to access the sheet location. But I noticed that
SISSI/sissi_object.c (and also other files) use strings such as
"sheets/SISSI/1.xml" ... now the question is, why does this work on
Windows? Is there some compatibility available in Windows for this? I
suppose the clean thing to do here is to replace the forward slash
with G_DIR_SEPARATOR.
Sameer.
--
http://www.it.iitb.ac.in/~sameerds/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]