Merge lp:~elementary-apps/pantheon-mail/no-manual-ltr into lp:~elementary-apps/pantheon-mail/trunk

Proposed by Danielle Foré
Status: Merged
Approved by: Corentin Noël
Approved revision: 1956
Merged at revision: 1957
Proposed branch: lp:~elementary-apps/pantheon-mail/no-manual-ltr
Merge into: lp:~elementary-apps/pantheon-mail/trunk
Diff against target: 23 lines (+4/-9)
1 file modified
src/client/composer/composer-widget.vala (+4/-9)
To merge this branch: bzr merge lp:~elementary-apps/pantheon-mail/no-manual-ltr
Reviewer Review Type Date Requested Status
elementary Apps team Pending
Review via email: mp+285102@code.launchpad.net

Commit message

Don't set ltr icons manually

Description of the change

Gtk does this automatically, no need to do this ourselves

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/client/composer/composer-widget.vala'
2--- src/client/composer/composer-widget.vala 2015-12-14 17:46:52 +0000
3+++ src/client/composer/composer-widget.vala 2016-02-04 18:51:36 +0000
4@@ -397,15 +397,10 @@
5 cc_entry.changed.connect(validate_send_button);
6 bcc_entry.changed.connect(validate_send_button);
7 reply_to_entry.changed.connect(validate_send_button);
8-
9- if (get_direction () == Gtk.TextDirection.RTL) {
10- actions.get_action(ACTION_INDENT).icon_name = "format-indent-more-rtl-symbolic";
11- actions.get_action(ACTION_OUTDENT).icon_name = "format-indent-less-rtl-symbolic";
12- } else {
13- actions.get_action(ACTION_INDENT).icon_name = "format-indent-more-symbolic";
14- actions.get_action(ACTION_OUTDENT).icon_name = "format-indent-less-symbolic";
15- }
16-
17+
18+ actions.get_action(ACTION_INDENT).icon_name = "format-indent-more-symbolic";
19+ actions.get_action(ACTION_OUTDENT).icon_name = "format-indent-less-symbolic";
20+
21 ComposerToolbar composer_toolbar = new ComposerToolbar(actions, menu);
22 Gtk.Alignment toolbar_area = (Gtk.Alignment) builder.get_object("toolbar area");
23 toolbar_area.add(composer_toolbar);

Subscribers

People subscribed via source and target branches