Commit 288eaee8 authored by Yosef Or Boczko's avatar Yosef Or Boczko Committed by Jim Nelson

Indent and outdent icons for RTL: Closes #7551

parent 0aae79f2
......@@ -269,6 +269,14 @@ public class ComposerWindow : Gtk.Window {
cc_entry.changed.connect(validate_send_button);
bcc_entry.changed.connect(validate_send_button);
if (get_direction () == Gtk.TextDirection.RTL) {
actions.get_action(ACTION_INDENT).icon_name = "format-indent-more-rtl-symbolic";
actions.get_action(ACTION_OUTDENT).icon_name = "format-indent-less-rtl-symbolic";
} else {
actions.get_action(ACTION_INDENT).icon_name = "format-indent-more-symbolic";
actions.get_action(ACTION_OUTDENT).icon_name = "format-indent-less-symbolic";
}
ComposerToolbar composer_toolbar = new ComposerToolbar(actions, menu);
Gtk.Alignment toolbar_area = (Gtk.Alignment) builder.get_object("toolbar area");
toolbar_area.add(composer_toolbar);
......
......@@ -79,14 +79,12 @@
<child>
<object class="GtkAction" id="indent">
<property name="tooltip" translatable="yes">Quote text (Ctrl+])</property>
<property name="icon_name">format-indent-more-symbolic</property>
</object>
<accelerator key="bracketright" modifiers="GDK_CONTROL_MASK"/>
</child>
<child>
<object class="GtkAction" id="outdent">
<property name="tooltip" translatable="yes">Unquote text (Ctrl+[)</property>
<property name="icon_name">format-indent-less-symbolic</property>
</object>
<accelerator key="bracketleft" modifiers="GDK_CONTROL_MASK"/>
</child>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment