[evolution/gnome-43] I#2051 - Mail: Hide print Preview in the menu



commit 48ef5fbea36afba42e59c4775f3aa29b0f4404e7
Author: Milan Crha <mcrha redhat com>
Date:   Thu Sep 29 09:40:41 2022 +0200

    I#2051 - Mail: Hide print Preview in the menu
    
    Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2051

 src/modules/mail/e-mail-shell-view-actions.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/modules/mail/e-mail-shell-view-actions.c b/src/modules/mail/e-mail-shell-view-actions.c
index b4b7d6cb40..4986c94161 100644
--- a/src/modules/mail/e-mail-shell-view-actions.c
+++ b/src/modules/mail/e-mail-shell-view-actions.c
@@ -2210,6 +2210,11 @@ e_mail_shell_view_actions_init (EMailShellView *mail_shell_view)
                action_group, mail_popup_entries,
                G_N_ELEMENTS (mail_popup_entries));
 
+       /* WebKitGTK does not support print preview, thus hide the option from the menu;
+          maybe it'll be supported in the future */
+       action = ACTION (MAIL_PRINT_PREVIEW);
+       gtk_action_set_visible (action, FALSE);
+
        /* Search Folder Actions */
        action_group = ACTION_GROUP (SEARCH_FOLDERS);
        gtk_action_group_add_actions (


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]