diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-08-06 12:31:21 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-08-06 21:06:34 +0000 |
commit | 9fd3bcc25e0b6c1feaf6e20850200de4acf5637a (patch) | |
tree | 10e5c227842f3d32a26dfbb1eb8c256f80b7f8af /epan/prefs.c | |
parent | fda29e1c9521f3da0a194dbedb419d0fb796aa2e (diff) |
Add an elide mode preference for the Qt packet list.
Change-Id: I081cc1e9b2a0eea7f0a3ef1157561c50beb4c4db
Reviewed-on: https://code.wireshark.org/review/9902
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 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/epan/prefs.c b/epan/prefs.c index 16f08be70c..24cfdd8441 100644 --- a/epan/prefs.c +++ b/epan/prefs.c @@ -194,6 +194,14 @@ static const gchar *capture_cols[5] = { "Possible values: INTERFACE, LINK, PMODE, SNAPLEN, FILTER\n" #endif +static const enum_val_t gui_packet_list_elide_mode[] = { + {"LEFT", "LEFT", ELIDE_LEFT}, + {"RIGHT", "RIGHT", ELIDE_RIGHT}, + {"MIDDLE", "MIDDLE", ELIDE_MIDDLE}, + {"NONE", "NONE", ELIDE_NONE}, + {NULL, NULL, -1} +}; + /* * List of all modules with preference settings. */ @@ -2347,6 +2355,11 @@ prefs_register_modules(void) "Enable Packet Editor (Experimental)", &prefs.gui_packet_editor); + prefs_register_enum_preference(gui_module, "packet_list_elide_mode", + "Elide mode", + "The position of \"...\" in packet list text.", + (gint*)(void*)(&prefs.gui_packet_list_elide_mode), gui_packet_list_elide_mode, FALSE); + /* Console * These are preferences that can be read/written using the * preference module API. These preferences still use their own @@ -2980,6 +2993,7 @@ pre_init_prefs(void) prefs.gui_layout_content_2 = layout_pane_content_pdetails; prefs.gui_layout_content_3 = layout_pane_content_pbytes; prefs.gui_packet_editor = FALSE; + prefs.gui_packet_list_elide_mode = ELIDE_RIGHT; prefs.gui_qt_packet_list_separator = FALSE; |