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/smb_stat.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'gtk/smb_stat.c') diff --git a/gtk/smb_stat.c b/gtk/smb_stat.c index bebac10ed6..515788bc68 100644 --- a/gtk/smb_stat.c +++ b/gtk/smb_stat.c @@ -1,7 +1,7 @@ /* smb_stat.c * smb_stat 2003 Ronnie Sahlberg * - * $Id: smb_stat.c,v 1.35 2004/02/11 04:28:49 guy Exp $ + * $Id: smb_stat.c,v 1.36 2004/02/13 00:53:36 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -30,18 +30,22 @@ # include #endif -#include #include -#include "../epan/packet_info.h" -#include "../epan/epan.h" + +#include + +#include +#include +#include + #include "tap_menu.h" #include "../tap.h" -#include "../epan/value_string.h" #include "../smb.h" #include "../register.h" #include "../timestats.h" #include "compat_macros.h" #include "../simple_dialog.h" +#include "ui_util.h" #include "dlg_utils.h" #include "../file.h" #include "../globals.h" @@ -164,7 +168,7 @@ gtk_smbstat_init(char *optarg) ss=g_malloc(sizeof(smbstat_t)); - ss->win=gtk_window_new(GTK_WINDOW_TOPLEVEL); + ss->win=window_new(GTK_WINDOW_TOPLEVEL, NULL); gtk_window_set_default_size(GTK_WINDOW(ss->win), 550, 600); smbstat_set_title(ss); SIGNAL_CONNECT(ss->win, "destroy", win_destroy_cb, ss); -- cgit v1.2.3