diff options
author | Gerald Combs <gerald@wireshark.org> | 2003-06-22 04:00:21 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2003-06-22 04:00:21 +0000 |
commit | c150ac467bfcd36b162baa1f918ac05d68e377cc (patch) | |
tree | 6cfff5ea8da26ffb484710a8960ccb497e777655 /gtk/rpc_stat.c | |
parent | 57105d45c4711f4df7529917707fb4c57ea6a972 (diff) |
From Lars Roland: Fix the service response time functions to work with GTK2.
svn path=/trunk/; revision=7911
Diffstat (limited to 'gtk/rpc_stat.c')
-rw-r--r-- | gtk/rpc_stat.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/rpc_stat.c b/gtk/rpc_stat.c index 0d0a18724f..73f3a937f2 100644 --- a/gtk/rpc_stat.c +++ b/gtk/rpc_stat.c @@ -1,7 +1,7 @@ /* rpc_stat.c * rpc_stat 2002 Ronnie Sahlberg * - * $Id: rpc_stat.c,v 1.11 2003/06/21 09:50:19 guy Exp $ + * $Id: rpc_stat.c,v 1.12 2003/06/22 04:00:21 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -223,12 +223,14 @@ gtk_rpcstat_init(char *optarg) gtk_box_pack_start(GTK_BOX(vbox), filter_label, FALSE, FALSE, 0); gtk_widget_show(filter_label); - rpc_min_proc=-1; rpc_max_proc=-1; g_hash_table_foreach(rpc_procs, (GHFunc)rpcstat_find_procs, NULL); rs->num_procedures=rpc_max_proc+1; + /* We must display TOP LEVEL Widget before calling init_srt_table() */ + gtk_widget_show(rs->win); + init_srt_table(&rs->srt_table, rpc_max_proc+1, vbox); for(i=0;i<rs->num_procedures;i++){ @@ -423,7 +425,7 @@ gtk_rpcstat_cb(GtkWidget *w _U_, gpointer d _U_) filter_entry=gtk_entry_new_with_max_length(250); gtk_box_pack_start(GTK_BOX(filter_box), filter_entry, FALSE, FALSE, 0); gtk_widget_show(filter_entry); - + gtk_box_pack_start(GTK_BOX(dlg_box), filter_box, TRUE, TRUE, 0); gtk_widget_show(filter_box); |