Wireshark-dev: Re: [Wireshark-dev] New Wireshark welcome page!
From: "Anders Broman" <[email protected]>
Date: Fri, 18 Apr 2008 10:32:52 +0200
 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Graeme Lunt
Sent: den 18 april 2008 08:50
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] New Wireshark welcome page!


>> > One suggestion - how about including the version information 
>> > (including a build date)?
>> >
>> No, that's what the about dialog is for. I want to avoid too much 
>> information on that page, because it will get more and more confusing

>> and less informative.

>I think it is useful to have this information on the front page as most
users will never actually go and look at the about dialog. If they can 
>see that their copy of Wireshark is 12 months out of date when they
start it, they might look for a later version.

I did a quick hack to see what it would look like and I don't think it's
too bad. It would probably look
better if it wasn't in bold(not sure how to do that).
Regards
Anders

Index: gtk/main_welcome.c
===================================================================
--- gtk/main_welcome.c	(revision 25109)
+++ gtk/main_welcome.c	(working copy)
@@ -53,8 +53,8 @@
 #include "gtk/help_dlg.h"
 #include "gtk/stock_icons.h"
 #include "../image/wssplash.xpm"
+#include "../version_info.h"
 
-
 /* XXX */
 extern gint if_list_comparator_alph (const void *first_arg, const void
*second_arg);
 
@@ -172,7 +172,13 @@
     if ((now->tm_mon == 3 && now->tm_mday == 1) || (now->tm_mon = 6 &&
now->tm_mday == 14)) {
         message = "<span weight=\"bold\" size=\"x-large\">" "Sniffing
the glue that holds the Internet together" "</span>";
     } else {
-        message = "<span weight=\"bold\" size=\"x-large\">" "The
World's Most Popular Network Protocol Analyzer" "</span>";
+		message = g_strdup_printf(
+			"<span weight=\"bold\" size=\"x-large\">"
+			"The World's Most Popular Network Protocol
Analyzer"
+			"\n"
+			"Version " VERSION "%s"
+			"</span>",wireshark_svnversion);
+
     }
     w = gtk_label_new(message);
     gtk_label_set_markup(GTK_LABEL(w), message);
_______________________________________________
Wireshark-dev mailing list
[email protected]
http://www.wireshark.org/mailman/listinfo/wireshark-dev