From 62cf8cb8def9bfdcee1d7ea257a3a616a5c98acc Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 17 Apr 2024 16:52:05 +0200 Subject: [PATCH] I#2722 - EMailBrowser: Hide Print preview menu option Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2722 --- src/mail/e-mail-browser.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mail/e-mail-browser.c b/src/mail/e-mail-browser.c index 9aebeef718..7100971148 100644 --- a/src/mail/e-mail-browser.c +++ b/src/mail/e-mail-browser.c @@ -994,6 +994,11 @@ mail_browser_constructed (GObject *object) browser, "key-press-event", G_CALLBACK (mail_browser_key_press_event_cb), NULL); + /* WebKitGTK does not support print preview, thus hide the option from the menu; + maybe it'll be supported in the future */ + action = e_mail_reader_get_action (reader, "mail-print-preview"); + gtk_action_set_visible (action, FALSE); + e_extensible_load_extensions (E_EXTENSIBLE (object)); }