From 36ece5a17ad804d3c6e668af1bb254e8d3e67b48 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 13 Feb 2004 00:53:37 +0000 Subject: 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 --- gtk/dcerpc_stat.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'gtk/dcerpc_stat.c') diff --git a/gtk/dcerpc_stat.c b/gtk/dcerpc_stat.c index fd03f93ea6..8345fe0504 100644 --- a/gtk/dcerpc_stat.c +++ b/gtk/dcerpc_stat.c @@ -1,7 +1,7 @@ /* dcerpc_stat.c * dcerpc_stat 2002 Ronnie Sahlberg * - * $Id: dcerpc_stat.c,v 1.48 2004/02/11 04:28:47 guy Exp $ + * $Id: dcerpc_stat.c,v 1.49 2004/02/13 00:53:34 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -33,11 +33,13 @@ # include "config.h" #endif -#include #include -#include "epan/packet_info.h" -#include "epan/epan.h" +#include + +#include +#include + #include "tap_menu.h" #include "simple_dialog.h" #include "dlg_utils.h" @@ -257,9 +259,9 @@ gtk_dcerpcstat_init(char *optarg) rs->uuid=uuid; rs->ver=ver; - rs->win=gtk_window_new(GTK_WINDOW_TOPLEVEL); - gtk_window_set_default_size(GTK_WINDOW(rs->win), 550, 400); + rs->win=window_new(GTK_WINDOW_TOPLEVEL, NULL); dcerpcstat_set_title(rs); + gtk_window_set_default_size(GTK_WINDOW(rs->win), 550, 400); SIGNAL_CONNECT(rs->win, "destroy", win_destroy_cb, rs); vbox=gtk_vbox_new(FALSE, 0); -- cgit v1.2.3