[geary: 1/3] ui: make sure action entries are set for both composer and editor
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary: 1/3] ui: make sure action entries are set for both composer and editor
- Date: Mon, 25 Feb 2019 22:32:53 +0000 (UTC)
commit 91967edc2f6ef83c68419e38e97075537adacffe
Author: Konstantin Kharlamov <Hi-Angel yandex ru>
Date: Sun Feb 24 19:32:50 2019 +0300
ui: make sure action entries are set for both composer and editor
Bugzilla: https://gitlab.gnome.org/GNOME/geary/issues/263
Signed-off-by: Konstantin Kharlamov <Hi-Angel yandex ru>
src/client/composer/composer-widget.vala | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/src/client/composer/composer-widget.vala b/src/client/composer/composer-widget.vala
index 24365816..c4e43cef 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -826,12 +826,14 @@ public class ComposerWidget : Gtk.EventBox, Geary.BaseInterface {
);
this.editor_container.insert_action_group("win", this.editor_actions);
- this.composer_actions.change_action_state(
- ACTION_SHOW_EXTENDED, false
- );
- this.composer_actions.change_action_state(
- ACTION_COMPOSE_AS_HTML, this.config.compose_as_html
- );
+ SimpleActionGroup[] composer_action_entries_users
+ = {this.editor_actions, this.composer_actions};
+ foreach (SimpleActionGroup entries_users in composer_action_entries_users) {
+ entries_users.change_action_state(ACTION_SHOW_EXTENDED, false);
+ entries_users.change_action_state(
+ ACTION_COMPOSE_AS_HTML, this.config.compose_as_html
+ );
+ }
get_action(ACTION_CLOSE_AND_SAVE).set_enabled(false);
get_action(GearyApplication.ACTION_UNDO).set_enabled(false);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]