[Openvas-commits] r1257 - in trunk/openvas-client: . nessus

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Sep 1 09:03:03 CEST 2008


Author: mwiegand
Date: 2008-09-01 09:03:03 +0200 (Mon, 01 Sep 2008)
New Revision: 1257

Modified:
   trunk/openvas-client/ChangeLog
   trunk/openvas-client/nessus/plugin_infos.c
Log:
* nessus/plugin_infos.c (plugin_info_window_setup): Add description when
displaying plugin version.


Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog	2008-08-31 22:13:53 UTC (rev 1256)
+++ trunk/openvas-client/ChangeLog	2008-09-01 07:03:03 UTC (rev 1257)
@@ -1,5 +1,10 @@
-2008-08-10  Jan-Oliver Wagner <jan-oliver.wagner at intevation.de>
+2008-09-01  Michael Wiegand <michael.wiegand at intevation.de>
 
+	* nessus/plugin_infos.c (plugin_info_window_setup): Add description when
+	displaying plugin version.
+
+2008-09-01  Jan-Oliver Wagner <jan-oliver.wagner at intevation.de>
+
 	* nessus/attack.c (attack_host): Removed some old commented
 	out code (which was about NEW_ATTACK).
 

Modified: trunk/openvas-client/nessus/plugin_infos.c
===================================================================
--- trunk/openvas-client/nessus/plugin_infos.c	2008-08-31 22:13:53 UTC (rev 1256)
+++ trunk/openvas-client/nessus/plugin_infos.c	2008-09-01 07:03:03 UTC (rev 1257)
@@ -367,10 +367,15 @@
   }
 
   /* The Version */
-  label = gtk_label_new( plugin->version );
-  gtk_box_pack_start(GTK_BOX(vbox), label, FALSE,FALSE,0);
-  gtk_misc_set_alignment((GtkMisc *)label, 0, 1);
-  gtk_widget_show(label);
+  txt = plugin->version;
+  if( txt != NULL  && txt[0] != '\0' )
+  {
+    snprintf(buf, sizeof(buf), _("Plugin Version: %s"), txt);
+    label = gtk_label_new(buf);
+    gtk_box_pack_start(GTK_BOX(vbox), label, FALSE,FALSE,0);
+    gtk_misc_set_alignment((GtkMisc *)label, 0, 1);
+    gtk_widget_show(label);
+  }
 
   /* A separator */
   separator = gtk_hseparator_new();



More information about the Openvas-commits mailing list