aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/smb_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/smb_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/smb_stat.c')
-rw-r--r--gtk/smb_stat.c16
1 files changed, 10 insertions, 6 deletions
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 <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 "../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);