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/bootp_stat.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/bootp_stat.c')
-rw-r--r-- | gtk/bootp_stat.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gtk/bootp_stat.c b/gtk/bootp_stat.c index b1ea692d4d..2a99210795 100644 --- a/gtk/bootp_stat.c +++ b/gtk/bootp_stat.c @@ -1,7 +1,7 @@ /* bootp_stat.c * boop_stat 2003 Jean-Michel FAYARD * - * $Id: bootp_stat.c,v 1.17 2004/02/11 04:28:47 guy Exp $ + * $Id: bootp_stat.c,v 1.18 2004/02/13 00:53:34 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -30,10 +30,12 @@ #include <gtk/gtk.h> #include <string.h> -#include "epan/packet_info.h" -#include "epan/epan.h" +#include <epan/packet_info.h> +#include <epan/epan.h> + #include "tap_menu.h" #include "simple_dialog.h" +#include "ui_util.h" #include "dlg_utils.h" #include "tap.h" #include "../register.h" @@ -216,8 +218,7 @@ gtk_dhcpstat_init(char *optarg) } /* top level window */ - sp->win = gtk_window_new( GTK_WINDOW_TOPLEVEL); - gtk_window_set_title( GTK_WINDOW(sp->win), title ); + sp->win = window_new( GTK_WINDOW_TOPLEVEL, title); g_free(title); SIGNAL_CONNECT( sp->win, "destroy", win_destroy_cb, sp); |