diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-02-13 00:53:37 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-02-13 00:53:37 +0000 |
commit | f91461f2d154f6d84edd4caa804b72b763c38aee (patch) | |
tree | 12528c3d9b2df330cfe374963bb02901ea4dbdce /gtk/summary_dlg.c | |
parent | 67e96defa8e45269baba4d2604e40125ac4fb309 (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/summary_dlg.c')
-rw-r--r-- | gtk/summary_dlg.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/summary_dlg.c b/gtk/summary_dlg.c index 969fd627b6..cec8321a11 100644 --- a/gtk/summary_dlg.c +++ b/gtk/summary_dlg.c @@ -1,7 +1,7 @@ /* summary_dlg.c * Routines for capture file summary window * - * $Id: summary_dlg.c,v 1.26 2004/02/02 22:51:30 guy Exp $ + * $Id: summary_dlg.c,v 1.27 2004/02/13 00:53:36 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -77,9 +77,7 @@ summary_open_cb(GtkWidget *w _U_, gpointer d _U_) /* initial computations */ seconds = summary.stop_time - summary.start_time; - sum_open_w = gtk_window_new(GTK_WINDOW_TOPLEVEL); - gtk_window_set_title(GTK_WINDOW(sum_open_w), "Ethereal: Summary"); - SIGNAL_CONNECT(sum_open_w, "realize", window_icon_realize_cb, NULL); + sum_open_w = window_new(GTK_WINDOW_TOPLEVEL, "Ethereal: Summary"); /* Container for each row of widgets */ main_vb = gtk_vbox_new(FALSE, 3); |