Mailing List Archive

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

Modified Files:
prefs_dialog_prefs.c
Log Message:
Make the use of the plugin cache for report contexts options and
configurable in the preferences dialog


Index: prefs_dialog_prefs.c
===================================================================
RCS file: /usr/local/cvs/NessusClient/nessus/prefs_dialog/prefs_dialog_prefs.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- prefs_dialog_prefs.c 27 Apr 2006 13:49:34 -0000 1.3
+++ prefs_dialog_prefs.c 27 Apr 2006 14:09:11 -0000 1.4
@@ -44,6 +44,7 @@
GtkWidget * check_autoexpand;
GtkWidget * check_autoconnect;
GtkWidget * check_cacheplugins;
+ GtkWidget * check_reportplugincache;
GtkWidget * entry_url_nessus;
GtkWidget * entry_url_cve;
GtkWidget * entry_url_bid;
@@ -115,7 +116,7 @@
gtk_widget_show(frame);
gtk_box_pack_start_defaults(GTK_BOX(vbox), frame);

- table = gtk_table_new(1, 1, FALSE);
+ table = gtk_table_new(2, 1, FALSE);
gtk_widget_show(table);
gtk_container_add(GTK_CONTAINER(frame), table);
gtk_container_set_border_width(GTK_CONTAINER(table), 4);
@@ -129,6 +130,14 @@
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_cacheplugins),
prefs_get_int(Global, "cache_plugin_information"));

+ check_reportplugincache = gtk_check_button_new_with_mnemonic(
+ _("Use plugin cache with reports"));
+ gtk_widget_show(check_reportplugincache);
+ gtk_table_attach_defaults(GTK_TABLE(table), check_reportplugincache,
+ 0, 1, 1, 2);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_reportplugincache),
+ prefs_get_int(Global, "reports_use_plugin_cache"));
+
/*
frame = gtk_frame_new(_("External programs"));
gtk_widget_show(frame);
@@ -203,6 +212,9 @@
prefs_set_int(Global, "cache_plugin_information",
gtk_toggle_button_get_active(
GTK_TOGGLE_BUTTON(check_cacheplugins))?1:0);
+ prefs_set_int(Global, "reports_use_plugin_cache",
+ gtk_toggle_button_get_active(
+ GTK_TOGGLE_BUTTON(check_reportplugincache))?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