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: Sat, 20 Dec 2008 13:45:18 +0530
On Sat, Dec 20, 2008 at 3:41 AM, Hans Breuer <hans breuer org> wrote:
lib/sheet.c(load_all_sheets) has
sheet_path = getenv("DIA_SHEET_PATH");
OK. So the location of sheets is taken from one of two places:
1) If the environment variable is set, then it is used
2) else a path relative to the compile-time variable DATADIR is used.
In that case, some code in object/SISSI is broken. For example,
sissi_object_create() in SISSI/sissi_object.c ... it directly calls
dia_get_data_directory() when loading a sheet, without checking the
environment variable. 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.
Sameer.
--
http://www.it.iitb.ac.in/~sameerds/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]