From 30c5551caa87a95fcbe75dd9df654ffd8464f305 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 31 Dec 2001 04:41:50 +0000 Subject: 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 --- gtk/proto_hier_stats_dlg.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'gtk/proto_hier_stats_dlg.c') 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 @@ -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); -- cgit v1.2.3