diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2017-02-16 10:41:58 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2017-02-16 20:53:22 +0000 |
commit | 14e19128dca1b318896ab7768d4527723dbefd17 (patch) | |
tree | 08f677e469805715b5b17bd5d24927f5a49de0bd /epan/prefs.h | |
parent | 384c26622b0adc7eda415ba6e2a9fc704cd27794 (diff) | |
download | wireshark-14e19128dca1b318896ab7768d4527723dbefd17.tar.gz wireshark-14e19128dca1b318896ab7768d4527723dbefd17.tar.bz2 wireshark-14e19128dca1b318896ab7768d4527723dbefd17.zip |
Qt: Disable pane menu items if not used in layout
If a pane is not used in the layout it should not be possible to show
and hide this from the menu, as this may give unexpected results.
Change-Id: I335168e66e1dffc89992cad480dd7daaea7e9d59
Reviewed-on: https://code.wireshark.org/review/20140
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'epan/prefs.h')
-rw-r--r-- | epan/prefs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/prefs.h b/epan/prefs.h index d2b193a243..74ea1a0217 100644 --- a/epan/prefs.h +++ b/epan/prefs.h @@ -658,6 +658,11 @@ WS_DLL_PUBLIC gboolean prefs_capture_device_monitor_mode(const char *name); WS_DLL_PUBLIC gboolean prefs_capture_options_dialog_column_is_visible(const gchar *column); +/* + * Returns TRUE if the layout pane content is enabled + */ +WS_DLL_PUBLIC gboolean prefs_has_layout_pane_content (layout_pane_content_e layout_pane_content); + #ifdef __cplusplus } #endif /* __cplusplus */ |