Mailing List Archive

NessusClient/nessus/prefs_dialog prefs_dialog.c,1.17,1.18
Update of /usr/local/cvs/NessusClient/nessus/prefs_dialog
In directory raccoon.nessus.org:/tmp/cvs-serv46377

Modified Files:
prefs_dialog.c
Log Message:
Added a path handling for Windows (via Cygwin).


Index: prefs_dialog.c
===================================================================
RCS file: /usr/local/cvs/NessusClient/nessus/prefs_dialog/prefs_dialog.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- prefs_dialog.c 22 May 2006 09:35:02 -0000 1.17
+++ prefs_dialog.c 5 Jul 2006 14:12:44 -0000 1.18
@@ -92,11 +92,17 @@
GtkWidget *menuitem;
gpointer ctrls;
{
+#ifndef CYGWIN
#ifdef NESSUS_DOCDIR
char * dir = NESSUS_DOCDIR;
#else
char * dir = "";
#endif
+#else
+ char * dir = g_win32_get_package_installation_subdirectory(NULL, NULL,
+ "share\\doc\\NessusClient");
+#endif /* CYGWIN */
+
/* the pdf file is covered by gettext to allow
* speficication of translation in the respective po
* files rather than in the source code. */

_______________________________________________
Nessus-cvs mailing list
Nessus-cvs@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus-cvs