Does it annoy anyone else besides me that the protocol tree
GUI pane sticks to the hex-dump GUI pane. Most of the time I want
to focus in on the protocol tree, so I move the top bar of the
protocol pane up, but the hex dump moves along with it. So then
I have to move the hex dump down to get the enlarged protocol
tree pane that I wanted in the first place.
I'd like to change that behavior --- make the protocol tree pane stick with
the packet list pane. Then, the hex dump pane stays at the bottom until
specifically enlarged.
Here's the patch to do so; if no one objects, I'll commit it.
--gilbert
Index: gtk/main.c
===================================================================
RCS file: /usr/local/cvsroot/ethereal/gtk/main.c,v
retrieving revision 1.66
diff -u -r1.66 main.c
--- main.c 1999/12/09 07:19:18 1.66
+++ main.c 1999/12/10 05:06:30
@@ -976,6 +976,7 @@
"without libz", "",
#endif /* HAVE_LIBZ */
+/* Oh, this is pretty */
#if defined(HAVE_UCD_SNMP_SNMP_H)
#ifdef HAVE_UCD_SNMP_VERSION_H
"with UCD SNMP ", VersionInfo
@@ -1211,9 +1212,9 @@
gtk_paned_gutter_size(GTK_PANED(u_pane), (GTK_PANED(u_pane))->handle_size);
l_pane = gtk_vpaned_new();
gtk_paned_gutter_size(GTK_PANED(l_pane), (GTK_PANED(l_pane))->handle_size);
- gtk_container_add(GTK_CONTAINER(main_vbox), u_pane);
+ gtk_container_add(GTK_CONTAINER(main_vbox), l_pane);
gtk_widget_show(u_pane);
- gtk_paned_add2 (GTK_PANED(u_pane), l_pane);
+ gtk_paned_add1 (GTK_PANED(l_pane), u_pane);
gtk_widget_show(l_pane);
/* Packet list */
@@ -1253,16 +1254,14 @@
tv_scrollw = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW(tv_scrollw),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
- gtk_paned_add1(GTK_PANED(l_pane), tv_scrollw);
+ gtk_paned_add2(GTK_PANED(u_pane), tv_scrollw);
gtk_widget_set_usize(tv_scrollw, -1, tv_size);
gtk_widget_show(tv_scrollw);
tree_view = gtk_tree_new();
- gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(tv_scrollw),
- tree_view);
+ gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(tv_scrollw), tree_view);
gtk_tree_set_selection_mode(GTK_TREE(tree_view), GTK_SELECTION_SINGLE);
- /* XXX - what's the difference between the next two lines? */
gtk_tree_set_view_lines(GTK_TREE(tree_view), FALSE);
gtk_tree_set_view_mode(GTK_TREE(tree_view), GTK_TREE_VIEW_ITEM);