From: Dermot Musgrove (dermot@glade.perl.connectfree.co.uk)
Date: Sun Oct 10 1999 - 14:05:09 EDT
Oliver Elphick wrote:
>
> The <directory> tag is always empty, even if I choose a directory from
> the preferences dialog.
>
> Furthermore, if I edit it by hand, read it in and save it, the contents
> of the tag are lost.
>
> What is the purpose of this tag?
Hi, AFAIK, it defines the project directory and is relative to the .glade
file. If you choose the same directory for the <project><directory> as that
which holds the .glade file it will always end up empty.
I arrange my files as:
Project-dir/Existing/Project.glade The glade file
Project-dir/pixmaps/Logo.xpm A logo
Project-dir/Generated/Project.pm My generated perl module
So my .glade file has:
<project>
[...]
<directory>../</directory>
<source_directory>../Generated</source_directory>
<pixmaps_directory>../pixmaps</pixmaps_directory>
[...]
I generate perl code but C source code ends up in Project-dir/Generated/
too. However, all the automake files and so on are created starting in
Project-dir/ and using several other dirs for .po files, macros and so on.
When you call Glade the only thing that it knows is the path to the .glade
file so everything must be relative to that.
I think that the idea is to define all directories relative to the .glade
file so that you can move the .glade file and everything will still be found.
For instance, it wouldn't work if another user tried to run Glade or build
source code using a copy of your .glade file and it had absolute paths in it.
Please anyone, correct me if I've got the wrong end of the stick.
Regards, Dermot
+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to majordomo@ncis.pn.org
with the line "unsubscribe glade-devel" in the body of the message.
This archive was generated by hypermail 2b29 : Tue Aug 01 2000 - 19:24:31 EDT