diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-10-27 15:04:44 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-10-27 23:28:56 +0000 |
commit | 9f8d00c1741604ae6ad53e2f27e2686e1df10cc3 (patch) | |
tree | 6401987ba4b1c827fe69cefe5139bb572745bae0 /epan/prefs.c | |
parent | d43047f2e0efdecb0b0aa4a394e04d790b6b3d6a (diff) | |
download | wireshark-9f8d00c1741604ae6ad53e2f27e2686e1df10cc3.tar.gz wireshark-9f8d00c1741604ae6ad53e2f27e2686e1df10cc3.tar.bz2 wireshark-9f8d00c1741604ae6ad53e2f27e2686e1df10cc3.zip |
Add preferences for related packets and the scroll bar minimap.
Add gui.packet_list_show_related and gui.packet_list_show_minimap.
Show_related enables and disables the related packet delegate.
Show_minimap enables and disables the minimap. Start calling it the
"intelligent scroll bar" since that's the best suggestion for a name
I've seen so far.
Leave them out of the Appearance preference pane for now.
Change-Id: I5869c446fda5c8e62d6b1e49a74d63ba3b117b0f
Reviewed-on: https://code.wireshark.org/review/11332
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'epan/prefs.c')
-rw-r--r-- | epan/prefs.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/epan/prefs.c b/epan/prefs.c index 127c484699..a5393d125d 100644 --- a/epan/prefs.c +++ b/epan/prefs.c @@ -2391,6 +2391,16 @@ prefs_register_modules(void) "The position of \"...\" in packet list text.", (gint*)(void*)(&prefs.gui_packet_list_elide_mode), gui_packet_list_elide_mode, FALSE); + prefs_register_bool_preference(gui_layout_module, "packet_list_show_related", + "Show Related Packets", + "Show related packet indicators in the first column", + &prefs.gui_packet_list_show_related); + + prefs_register_bool_preference(gui_layout_module, "packet_list_show_minimap", + "Enable Intelligent Scroll Bar", + "Show the intelligent scroll bar (a minimap of packet list colors in the scrollbar)", + &prefs.gui_packet_list_show_minimap); + /* Console * These are preferences that can be read/written using the * preference module API. These preferences still use their own @@ -3025,6 +3035,8 @@ pre_init_prefs(void) prefs.gui_layout_content_3 = layout_pane_content_pbytes; prefs.gui_packet_editor = FALSE; prefs.gui_packet_list_elide_mode = ELIDE_RIGHT; + prefs.gui_packet_list_show_related = TRUE; + prefs.gui_packet_list_show_minimap = TRUE; prefs.gui_qt_packet_list_separator = FALSE; |