aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/h225_ras_srt.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/h225_ras_srt.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/h225_ras_srt.c')
-rw-r--r--gtk/h225_ras_srt.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/gtk/h225_ras_srt.c b/gtk/h225_ras_srt.c
index d07619d455..331c0a26f2 100644
--- a/gtk/h225_ras_srt.c
+++ b/gtk/h225_ras_srt.c
@@ -2,7 +2,7 @@
* h225 RAS Service Response Time statistics for ethereal
* Copyright 2003 Lars Roland
*
- * $Id: h225_ras_srt.c,v 1.10 2004/02/11 04:28:48 guy Exp $
+ * $Id: h225_ras_srt.c,v 1.11 2004/02/13 00:53:35 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -31,13 +31,16 @@
# 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 "../register.h"
#include "../packet-h225.h"
#include "../timestats.h"
@@ -283,7 +286,7 @@ gtk_h225rassrt_init(char *optarg)
h225rassrt_reset(hs);
- hs->win=gtk_window_new(GTK_WINDOW_TOPLEVEL);
+ hs->win=window_new(GTK_WINDOW_TOPLEVEL, NULL);
SIGNAL_CONNECT(hs->win, "destroy", win_destroy_cb, hs);
hs->vbox=gtk_vbox_new(FALSE, 0);