
bh at nessus
May 4, 2006, 9:06 AM
Post #1 of 1
(539 views)
Permalink
|
|
NessusClient/nessus/prefs_dialog prefs_dialog_prefs.c,1.6,1.7
|
|
Update of /usr/local/cvs/NessusClient/nessus/prefs_dialog In directory raccoon.nessus.org:/tmp/cvs-serv72141/nessus/prefs_dialog Modified Files: prefs_dialog_prefs.c Log Message: Add a preference option to enable/disable the appendix with the plugin information in PDF exports Index: prefs_dialog_prefs.c =================================================================== RCS file: /usr/local/cvs/NessusClient/nessus/prefs_dialog/prefs_dialog_prefs.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- prefs_dialog_prefs.c 28 Apr 2006 14:11:25 -0000 1.6 +++ prefs_dialog_prefs.c 4 May 2006 16:06:44 -0000 1.7 @@ -46,6 +46,7 @@ GtkWidget * check_cacheplugins; GtkWidget * check_reportplugincache; GtkWidget * check_scopesplugincache; + GtkWidget * check_reportpluginpdf; GtkWidget * entry_url_nessus; GtkWidget * entry_url_cve; GtkWidget * entry_url_bid; @@ -148,6 +149,29 @@ prefs_get_int(Global, "scopes_load_plugin_cache_immediately")); /* + * Report frame + */ + + frame = gtk_frame_new(_("Report")); + gtk_widget_show(frame); + gtk_box_pack_start_defaults(GTK_BOX(vbox), frame); + + table = gtk_table_new(1, 1, FALSE); + gtk_widget_show(table); + gtk_container_add(GTK_CONTAINER(frame), table); + gtk_container_set_border_width(GTK_CONTAINER(table), 4); + gtk_table_set_row_spacings(GTK_TABLE(table), 8); + gtk_table_set_col_spacings(GTK_TABLE(table), 8); + + check_reportpluginpdf = gtk_check_button_new_with_mnemonic( + _("Include plugin details in PDF")); + gtk_widget_show(check_reportpluginpdf); + gtk_table_attach_defaults(GTK_TABLE(table), check_reportpluginpdf, + 0, 1, 0, 1); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_reportpluginpdf), + prefs_get_int(Global, "report_plugin_details_in_pdf")); + + /* frame = gtk_frame_new(_("External programs")); gtk_widget_show(frame); gtk_box_pack_start_defaults(GTK_BOX(vbox), frame); @@ -227,6 +251,9 @@ prefs_set_int(Global, "scopes_load_plugin_cache_immediately", gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(check_scopesplugincache))?1:0); + prefs_set_int(Global, "report_plugin_details_in_pdf", + gtk_toggle_button_get_active( + GTK_TOGGLE_BUTTON(check_reportpluginpdf))?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 [at] list http://mail.nessus.org/mailman/listinfo/nessus-cvs
|