[ghemical-devel] first dialog converted to libglade

Tommi Hassinen thassine@messi.uku.fi
Wed, 5 Jun 2002 15:13:36 +0300 (WET)


Hi all,

the geometry optimization dialog is now converted to a libglade based
one, and it looks that much simpler that I immediately ported it to
MANY_PROJECTS_BRANCH tree as well. It seems to be the easiest way to
work with both HEAD and MANY_PROJECTS_BRANCH at the same time, so I expect
that I will convert the other dialogs also the same way, one by one.

Now the compilation works fine (thanks Geoff and Michael) but there
remains something to think about in the installation stage. You see,
libglade needs to read the glade XML files, that are in

	src/target3/glade

at the moment. In installation, these should be installed somewhere under
/usr/share (or /usr/local/share) so that they can be found later. At the
moment the path to glade XML files is set at src/target3/glade_dialog.h:

	// set a default search path for .glade files if needed...
	
	#ifndef GLADE_DATA_PATH
	#define GLADE_DATA_PATH "../src/target3/glade/"
	#endif	// GLADE_DATA_PATH

The current setting only works if the program is run in the bin/
directory of the source tree.

So, the configure script should be tweaked to that it would override
the default GLADE_DATA_PATH and also install the xml files correctly.

Regards,

	Tommi