Mailing List Archive

NessusClient/nessus/prefs_dialog prefs_scan_assistant.c, 1.1.1.1, 1.2
Update of /usr/local/cvs/NessusClient/nessus/prefs_dialog
In directory raccoon.nessus.org:/tmp/cvs-serv20138/nessus/prefs_dialog

Modified Files:
prefs_scan_assistant.c
Log Message:
Take the value for the targets used in the scan assistant from the
Global scope.


Index: prefs_scan_assistant.c
===================================================================
RCS file: /usr/local/cvs/NessusClient/nessus/prefs_dialog/prefs_scan_assistant.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- prefs_scan_assistant.c 10 Sep 2005 17:36:46 -0000 1.1.1.1
+++ prefs_scan_assistant.c 14 Feb 2006 16:14:12 -0000 1.2
@@ -25,6 +25,7 @@
#include "error_dialog.h"
#include "context.h"
#include "prefs_context.h"
+#include "preferences.h"
#include "prefs_scope_tree.h"
#include "prefs_dialog.h"
#include "prefs_dialog_auth.h"
@@ -226,8 +227,8 @@
}

void
-scan_assistant_create_dialog(assistant)
- struct scan_assistant *assistant;
+scan_assistant_create_dialog(struct scan_assistant *assistant,
+ const char * targets)
{
GtkWidget *dialog;
GtkWidget *notebook;
@@ -293,7 +294,7 @@
"\nYou can enter several targets by separating them with a comma."
));
assistant->targets = scan_assistant_add_entry(page,
- _("Please enter the targets to scan:"), "localhost");
+ _("Please enter the targets to scan:"), targets);
scan_assistant_add_text(page,
_("Warning: Please make sure you are allowed to scan these hosts!"
"\nHarmful checks are disabled by default, but some computers and"
@@ -335,7 +336,7 @@
gulong handler;

assistant->parent = context_window?GTK_WINDOW(context_window):NULL;
- scan_assistant_create_dialog(assistant);
+ scan_assistant_create_dialog(assistant, prefs_get_string(Global, "targets"));

handler = g_signal_connect_after(G_OBJECT(assistant->notebook),
"switch-page", G_CALLBACK(scan_assistant_switch_page), assistant);

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