aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/wsp_stat.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-02-13 00:53:37 +0000
committerGuy Harris <guy@alum.mit.edu>2004-02-13 00:53:37 +0000
commit36ece5a17ad804d3c6e668af1bb254e8d3e67b48 (patch)
tree12528c3d9b2df330cfe374963bb02901ea4dbdce /gtk/wsp_stat.c
parent5f27347dfa71ce05f77aa14cf6a89f1bfb2e6914 (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. svn path=/trunk/; revision=10054
Diffstat (limited to 'gtk/wsp_stat.c')
-rw-r--r--gtk/wsp_stat.c14
1 files changed, 8 insertions, 6 deletions
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 <gerald@ethereal.com>
@@ -27,13 +27,16 @@
# include "config.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 "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);