aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/fc_stat.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-02-13 00:53:37 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-02-13 00:53:37 +0000
commitf91461f2d154f6d84edd4caa804b72b763c38aee (patch)
tree12528c3d9b2df330cfe374963bb02901ea4dbdce /gtk/fc_stat.c
parent67e96defa8e45269baba4d2604e40125ac4fb309 (diff)
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
Diffstat (limited to 'gtk/fc_stat.c')
-rw-r--r--gtk/fc_stat.c16
1 files changed, 10 insertions, 6 deletions
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 <gerald@ethereal.com>
@@ -30,18 +30,22 @@
# include <sys/types.h>
#endif
-#include <gtk/gtk.h>
#include <string.h>
-#include "../epan/packet_info.h"
-#include "../epan/epan.h"
+
+#include <gtk/gtk.h>
+
+#include <epan/packet_info.h>
+#include <epan/epan.h>
+#include <epan/value_string.h>
+
#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);