aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/packet_list.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2007-07-09 16:31:39 +0000
committerGerald Combs <gerald@wireshark.org>2007-07-09 16:31:39 +0000
commitcc0f2c6efe37ed93254ae954d121458799af495a (patch)
treee334834f12fcd3f6dfcc9f287566eae92e46cf77 /gtk/packet_list.h
parentafb016cc87a53bf103a6289ddf575a28c19fc4c6 (diff)
From Dustin Johnson: If "Update list of packets in real time" and
"Automatic scrolling in live capture" are both enabled, make the scroll bar behavior more natural. If the packet list is scrolled to the bottom, scroll automatically. If the user scrolls back, keep the packet list scrolled at that point instead of jumping back to the end. svn path=/trunk/; revision=22277
Diffstat (limited to 'gtk/packet_list.h')
-rw-r--r--gtk/packet_list.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/packet_list.h b/gtk/packet_list.h
index a1141820f5..b00c7ca80f 100644
--- a/gtk/packet_list.h
+++ b/gtk/packet_list.h
@@ -111,6 +111,12 @@ extern void packet_list_next(void);
*/
extern void packet_list_prev(void);
+/** Get if the packet list is at its end.
+ *
+ * @return TRUE if packet list is scrolled to greater than 90% of its total length.
+ */
+extern gboolean packet_list_at_end(void);
+
/* Different modes of copying summary data */
typedef enum {
CS_TEXT, /* Packet summary data (tab separated) */