Commit 8945f4b9 authored by ONO Yoshio's avatar ONO Yoshio Committed by Jehan

Fixed when texttool popup is shown first, it does not have current text direction.

(cherry picked from commit ee468b00)
parent f6ed6e6e
......@@ -176,6 +176,8 @@ text_tool_actions_update (GimpActionGroup *group,
gboolean clip = FALSE; /* clipboard has text available */
gboolean input_method_menu;
gboolean unicode_menu;
GimpTextDirection direction;
gint i;
layer = gimp_image_get_active_layer (image);
......@@ -213,5 +215,15 @@ text_tool_actions_update (GimpActionGroup *group,
SET_SENSITIVE ("text-tool-text-to-path", text_layer);
SET_SENSITIVE ("text-tool-text-along-path", text_layer && vectors);
direction = gimp_text_tool_get_direction (text_tool);
for (i = 0; i < G_N_ELEMENTS (text_tool_direction_actions); i++)
if (direction == text_tool_direction_actions[i].value)
SET_ACTIVE (text_tool_direction_actions[i].name, TRUE);
SET_VISIBLE ("text-tool-input-methods-menu", input_method_menu);
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