When jumping (e.g. using menu item Go/Go to Packet...) to a new packet which is curre...
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 12 Sep 2005 20:10:44 +0000 (20:10 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 12 Sep 2005 20:10:44 +0000 (20:10 +0000)
commit74506a2c8d80929b0c12e8680a17ffbb5ce66cdb
treec052e90346ab89c261d49e0cf8abd3af615c643d
parent16fe2f66d2d1a83bd718847d7b12c4f0d219fbf7
When jumping (e.g. using menu item Go/Go to Packet...) to a new packet which is currently not displayed, this newly selected packet will become the first in the packet list.

This is inconvenient, as most of the time (at least) I'm interested not only in the packets behind the newly selected one, but also to have some history *before* it.

So this change will scroll the packet list to have the selected packet after the first third of the packet list.

This change won't take effect if the new packet is already visible (only the selection is changed) or it's near the beginning or end of the packet list (so the whole beginning/end of the list is shown).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15772 f5534014-38df-0310-8fa8-9805f1628bb7
gtk/packet_list.c