Ethereal-dev: [Ethereal-dev] Unifing the title [PATCH]

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Wed, 9 Nov 2005 22:47:59 +0100 (CET)
Hi list,

A minor thing that bugged me for a while is the duplication of the
program title "Ethereal - Network Protocol Analyzer". This patch unifies
it.

Just my 0.02,
Jaap



Index: gtk/about_dlg.c
===================================================================
--- gtk/about_dlg.c	(revision 16448)
+++ gtk/about_dlg.c	(working copy)
@@ -47,6 +47,7 @@
 #include "plugins_dlg.h"
 
 static void about_ethereal_destroy_cb(GtkWidget *, gpointer);
+static const char title[] = "Ethereal - Network Protocol Analyzer";
 
 
 /*
@@ -99,7 +100,7 @@
     gtk_container_border_width(GTK_CONTAINER(main_vb), 24);
     gtk_container_add(GTK_CONTAINER(win), main_vb);
 
-    about_ethereal(win, main_vb, "Ethereal - Network Protocol Analyzer");
+    about_ethereal(win, main_vb, title);
 
     main_lb = gtk_label_new(message);
     gtk_container_add(GTK_CONTAINER(main_vb), main_lb);
@@ -142,7 +143,6 @@
 {
   GtkWidget   *main_vb, *msg_label /*, *icon*/;
   gchar       *message;
-  const char   title[] = "Ethereal - Network Protocol Analyzer";
 
   main_vb = gtk_vbox_new(FALSE, 6);
   gtk_container_border_width(GTK_CONTAINER(main_vb), 12);