aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/proto_hier_stats_dlg.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2001-12-31 04:41:50 +0000
committerGerald Combs <gerald@wireshark.org>2001-12-31 04:41:50 +0000
commit30c5551caa87a95fcbe75dd9df654ffd8464f305 (patch)
tree78e05cec6ec91f3bd339f77a4559aab80ce43cde /gtk/proto_hier_stats_dlg.c
parent0fa63e3baf23d875f85df2039a43945e14840ec8 (diff)
Add preferences to save the main window size and position. If enabled,
the geometry is saved at exit. Should we save the main window pane sizes as well? Move the DEF_WIDTH and DEF_HEIGHT #defines from gtk/main.h to prefs.h. Remove the reference to DEF_WIDTH from proto_hier_stats_dlg.c. svn path=/trunk/; revision=4462
Diffstat (limited to 'gtk/proto_hier_stats_dlg.c')
-rw-r--r--gtk/proto_hier_stats_dlg.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/proto_hier_stats_dlg.c b/gtk/proto_hier_stats_dlg.c
index da0a18e8b7..1bc3163ade 100644
--- a/gtk/proto_hier_stats_dlg.c
+++ b/gtk/proto_hier_stats_dlg.c
@@ -1,6 +1,6 @@
/* proto_hier_stats_dlg.c
*
- * $Id: proto_hier_stats_dlg.c,v 1.5 2001/12/12 21:38:59 gerald Exp $
+ * $Id: proto_hier_stats_dlg.c,v 1.6 2001/12/31 04:41:50 gerald Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -157,11 +157,8 @@ create_tree(GtkWidget *container, ph_stats_t *ps)
/* Fill in the data. */
fill_in_ctree(tree, ps);
- /* Try to size the CTree to a good initial size.
- * 5 is a magic number that I pulled out off my hat.
- * Using DEF_WIDTH is pretty bogus, too. */
height = GTK_CLIST(tree)->rows * (GTK_CLIST(tree)->row_height + 5);
- gtk_widget_set_usize(tree, DEF_WIDTH, height);
+ gtk_widget_set_usize(tree, 500, height);
gtk_container_add(GTK_CONTAINER(sw), tree);