summaryrefslogtreecommitdiff
path: root/epan/prefs.c
diff options
context:
space:
mode:
authorMichal Labedzki <michal.labedzki@tieto.com>2015-02-18 13:30:06 +0100
committerMichal Labedzki <michal.labedzki@tieto.com>2015-07-20 21:21:28 +0000
commit1e487664bc2a902dbfd8d2d3ef9ddcd09a4b3d12 (patch)
tree98e7d8e8ae2724be9f0ce966012292eab2d90b25 /epan/prefs.c
parent7e13cacb9b589662a1f748c362a70e753ae4a9db (diff)
downloadwireshark-1e487664bc2a902dbfd8d2d3ef9ddcd09a4b3d12.tar.gz
Qt: Add option to back white line separator for packet list items
This uses one line (on bottom) of items and makes it white. Seen in Wireshark on some configurations of GTK 2 on Linux, so backports it to Qt for people who like it. In my opinion it helps if you use packet list background colors for frames and you have a lot of following frames with the same background color. Bug: 10954 Change-Id: Id8f58520d7224db4eb8181bcc04febd7416a8578 Reviewed-on: https://code.wireshark.org/review/7293 Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
Diffstat (limited to 'epan/prefs.c')
-rw-r--r--epan/prefs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/prefs.c b/epan/prefs.c
index 0ca84c3636..4b993001ef 100644
--- a/epan/prefs.c
+++ b/epan/prefs.c
@@ -2337,10 +2337,16 @@ prefs_register_modules(void)
"Layout content of the pane 3",
(gint*)(void*)(&prefs.gui_layout_content_3), gui_layout_content, FALSE);
+ prefs_register_bool_preference(gui_layout_module, "packet_list_separator.enabled",
+ "Enable Packet List Separator",
+ "Enable Packet List Separator",
+ &prefs.gui_qt_packet_list_separator);
+
prefs_register_bool_preference(gui_module, "packet_editor.enabled",
"Enable Packet Editor",
"Enable Packet Editor (Experimental)",
&prefs.gui_packet_editor);
+
/* Console
* These are preferences that can be read/written using the
* preference module API. These preferences still use their own
@@ -2975,6 +2981,8 @@ pre_init_prefs(void)
prefs.gui_layout_content_3 = layout_pane_content_pbytes;
prefs.gui_packet_editor = FALSE;
+ prefs.gui_qt_packet_list_separator = FALSE;
+
if (!prefs.col_list) {
/* First time through */
for (i = 0; i < DEF_NUM_COLS; i++) {