From 374d1b07e6d1067d202551005375056d6b838834 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 1 Aug 2022 18:44:36 +0200 Subject: [PATCH] ECompEditor: Prefer "Save and Close" in the header bar It's the suggested action, thus make it prominent. --- src/calendar/gui/e-comp-editor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calendar/gui/e-comp-editor.c b/src/calendar/gui/e-comp-editor.c index 2d9f7c2d0a..8fc040b6f2 100644 --- a/src/calendar/gui/e-comp-editor.c +++ b/src/calendar/gui/e-comp-editor.c @@ -1921,14 +1921,14 @@ comp_editor_construct_header_bar (ECompEditor *comp_editor) gtk_widget_show (widget); gtk_header_bar_set_show_close_button (GTK_HEADER_BAR (widget), TRUE); - action = e_comp_editor_get_action (comp_editor, "save"); + action = e_comp_editor_get_action (comp_editor, "save-and-close"); - button = e_header_bar_button_new (_("Save"), action); + button = e_header_bar_button_new (_("Save and Close"), action); e_header_bar_button_css_add_class (E_HEADER_BAR_BUTTON (button), "suggested-action"); gtk_widget_show (button); gtk_header_bar_pack_start (GTK_HEADER_BAR (widget), button); - action = e_comp_editor_get_action (comp_editor, "save-and-close"); + action = e_comp_editor_get_action (comp_editor, "save"); button = e_header_bar_button_new (NULL, action); gtk_widget_show (button);