Mailing List Archive

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

Modified Files:
prefs_dialog_prefs.c
Log Message:
Add a preference cache_plugin_information to make the plugin cache
optional.


Index: prefs_dialog_prefs.c
===================================================================
RCS file: /usr/local/cvs/NessusClient/nessus/prefs_dialog/prefs_dialog_prefs.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- prefs_dialog_prefs.c 10 Sep 2005 17:36:45 -0000 1.1.1.1
+++ prefs_dialog_prefs.c 3 Feb 2006 21:31:51 -0000 1.2
@@ -43,6 +43,7 @@
GtkWidget * label;
GtkWidget * check_autoexpand;
GtkWidget * check_autoconnect;
+ GtkWidget * check_cacheplugins;
GtkWidget * entry_url_nessus;
GtkWidget * entry_url_cve;
GtkWidget * entry_url_bid;
@@ -96,7 +97,7 @@
gtk_widget_show(frame);
gtk_box_pack_start_defaults(GTK_BOX(hbox), 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);
@@ -110,6 +111,12 @@
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_autoconnect),
prefs_get_int(Global, "nessusd_autoconnect"));

+ check_cacheplugins = gtk_check_button_new_with_mnemonic(
+ _("Cache Plugin Information"));
+ gtk_widget_show(check_cacheplugins);
+ gtk_table_attach_defaults(GTK_TABLE(table), check_cacheplugins, 0, 1, 1, 2);
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_cacheplugins),
+ prefs_get_int(Global, "cache_plugin_information"));

/*
frame = gtk_frame_new(_("External programs"));
@@ -182,6 +189,9 @@
prefs_set_int(Global, "nessusd_autoconnect",
gtk_toggle_button_get_active(
GTK_TOGGLE_BUTTON(check_autoconnect))?1:0);
+ prefs_set_int(Global, "cache_plugin_information",
+ gtk_toggle_button_get_active(
+ GTK_TOGGLE_BUTTON(check_cacheplugins))?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