aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/packet_win.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/packet_win.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/packet_win.c')
-rw-r--r--gtk/packet_win.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/packet_win.c b/gtk/packet_win.c
index 4ff1a73aee..dbefa6c909 100644
--- a/gtk/packet_win.c
+++ b/gtk/packet_win.c
@@ -3,7 +3,7 @@
*
* Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com>
*
- * $Id: packet_win.c,v 1.43 2004/01/19 00:42:10 ulfl Exp $
+ * $Id: packet_win.c,v 1.44 2004/02/13 00:53:35 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -56,6 +56,7 @@
#include "proto_draw.h"
#include "keys.h"
#include "gtkglobals.h"
+#include "ui_util.h"
#include <epan/plugins.h>
#include <epan/epan_dissect.h>
#include "compat_macros.h"
@@ -114,8 +115,6 @@ void new_window_cb(GtkWidget *w _U_)
DataPtr->frame, &cfile.cinfo);
epan_dissect_fill_in_columns(DataPtr->edt);
- main_w = gtk_window_new(GTK_WINDOW_TOPLEVEL);
-
/*
* Build title of window by getting column data constructed when the
* frame was dissected.
@@ -128,7 +127,7 @@ void new_window_cb(GtkWidget *w _U_)
}
}
- gtk_window_set_title(GTK_WINDOW(main_w), Title);
+ main_w = window_new(GTK_WINDOW_TOPLEVEL, Title);
gtk_window_set_default_size(GTK_WINDOW(main_w), DEF_WIDTH, -1);
/* Container for paned windows */