From f91461f2d154f6d84edd4caa804b72b763c38aee Mon Sep 17 00:00:00 2001 From: guy 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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10054 f5534014-38df-0310-8fa8-9805f1628bb7 --- gtk/fc_stat.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'gtk/fc_stat.c') diff --git a/gtk/fc_stat.c b/gtk/fc_stat.c index 18d46f88c3..3129aa98eb 100644 --- a/gtk/fc_stat.c +++ b/gtk/fc_stat.c @@ -1,7 +1,7 @@ /* fc_stat.c * fc_stat 2003 Ronnie Sahlberg * - * $Id: fc_stat.c,v 1.24 2004/02/11 04:28:48 guy Exp $ + * $Id: fc_stat.c,v 1.25 2004/02/13 00:53:35 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 "../packet-fc.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" @@ -142,7 +146,7 @@ gtk_fcstat_init(char *optarg) fc=g_malloc(sizeof(fcstat_t)); - fc->win=gtk_window_new(GTK_WINDOW_TOPLEVEL); + fc->win=window_new(GTK_WINDOW_TOPLEVEL, NULL); gtk_window_set_default_size(GTK_WINDOW(fc->win), 550, 400); fcstat_set_title(fc); SIGNAL_CONNECT(fc->win, "destroy", win_destroy_cb, fc); -- cgit v1.2.3