diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-02-13 00:53:37 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-02-13 00:53:37 +0000 |
commit | 36ece5a17ad804d3c6e668af1bb254e8d3e67b48 (patch) | |
tree | 12528c3d9b2df330cfe374963bb02901ea4dbdce /gtk/dcerpc_stat.c | |
parent | 5f27347dfa71ce05f77aa14cf6a89f1bfb2e6914 (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/dcerpc_stat.c')
-rw-r--r-- | gtk/dcerpc_stat.c | 14 |
1 files changed, 8 insertions, 6 deletions
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 <gerald@ethereal.com> @@ -33,11 +33,13 @@ # include "config.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 "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); |