Mailing List Archive

NessusClient/nessus/prefs_dialog prefs_dialog_prefs.c,1.4,1.5
Update of /usr/local/cvs/NessusClient/nessus/prefs_dialog
In directory raccoon.nessus.org:/tmp/cvs-serv86265/nessus/prefs_dialog

Modified Files:
prefs_dialog_prefs.c
Log Message:
Optionally load the plugin cache for scopes when the user first clicks
on the scope in the scope tree


Index: prefs_dialog_prefs.c
===================================================================
RCS file: /usr/local/cvs/NessusClient/nessus/prefs_dialog/prefs_dialog_prefs.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- prefs_dialog_prefs.c 27 Apr 2006 14:09:11 -0000 1.4
+++ prefs_dialog_prefs.c 28 Apr 2006 10:46:36 -0000 1.5
@@ -45,6 +45,7 @@
GtkWidget * check_autoconnect;
GtkWidget * check_cacheplugins;
GtkWidget * check_reportplugincache;
+ GtkWidget * check_scopesplugincache;
GtkWidget * entry_url_nessus;
GtkWidget * entry_url_cve;
GtkWidget * entry_url_bid;
@@ -138,6 +139,14 @@
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_reportplugincache),
prefs_get_int(Global, "reports_use_plugin_cache"));

+ check_reportplugincache = gtk_check_button_new_with_mnemonic(
+ _("Load plugin cache for scopes immediately"));
+ gtk_widget_show(check_reportplugincache);
+ gtk_table_attach_defaults(GTK_TABLE(table), check_reportplugincache,
+ 0, 1, 2, 3);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_reportplugincache),
+ prefs_get_int(Global, "scopes_load_plugin_cache_immediately"));
+
/*
frame = gtk_frame_new(_("External programs"));
gtk_widget_show(frame);
@@ -215,6 +224,9 @@
prefs_set_int(Global, "reports_use_plugin_cache",
gtk_toggle_button_get_active(
GTK_TOGGLE_BUTTON(check_reportplugincache))?1:0);
+ prefs_set_int(Global, "scopes_load_plugin_cache_immediately",
+ gtk_toggle_button_get_active(
+ GTK_TOGGLE_BUTTON(check_scopesplugincache))?1:0);
prefs_set_string(Global, "url_nessus",
gtk_entry_get_text(GTK_ENTRY(entry_url_nessus)));
prefs_set_string(Global, "url_cve",

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