From 36ece5a17ad804d3c6e668af1bb254e8d3e67b48 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 13 Feb 2004 00:53:37 +0000 Subject: Add a "window_new()" routine that creates a window of a given type, sets the title, and arranges to set the icon for it. Use that instead of "gtk_window_new()" and separate calls to set the title and arrange to set the icon. Regularize #includes a bit. Clean up white space. svn path=/trunk/; revision=10054 --- gtk/wsp_stat.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'gtk/wsp_stat.c') diff --git a/gtk/wsp_stat.c b/gtk/wsp_stat.c index c5e2a503ce..b21d1701ab 100644 --- a/gtk/wsp_stat.c +++ b/gtk/wsp_stat.c @@ -1,7 +1,7 @@ /* wsp_stat.c * wsp_stat 2003 Jean-Michel FAYARD * - * $Id: wsp_stat.c,v 1.17 2004/02/11 04:28:49 guy Exp $ + * $Id: wsp_stat.c,v 1.18 2004/02/13 00:53:37 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -27,13 +27,16 @@ # include "config.h" #endif -#include #include -#include "epan/packet_info.h" -#include "epan/epan.h" +#include + +#include +#include + #include "tap_menu.h" #include "simple_dialog.h" +#include "ui_util.h" #include "dlg_utils.h" #include "tap.h" #include "../register.h" @@ -349,8 +352,7 @@ gtk_wspstat_init(char *optarg) sp->pdu_stats[i].packets=0; } - sp->win = gtk_window_new( GTK_WINDOW_TOPLEVEL); - gtk_window_set_title( GTK_WINDOW(sp->win), title ); + sp->win = window_new( GTK_WINDOW_TOPLEVEL, title); g_free(title); SIGNAL_CONNECT( sp->win, "destroy", win_destroy_cb, sp); -- cgit v1.2.3