diff options
author | Christian Hergert <chergert@redhat.com> | 2016-10-10 13:52:50 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2016-10-10 13:56:48 -0700 |
commit | a68915abd1f8c3f01f48ffe97c7fa88d6e8c1403 (patch) | |
tree | 57f0f85b6de42cb92b61231ebfd8b0c7506082fc | |
parent | fe6030a41be6887d298a63aa79959e08c1c0a192 (diff) | |
download | gtk+-a68915abd1f8c3f01f48ffe97c7fa88d6e8c1403.tar.gz |
shortcuts: the accelerator should always be LTR
Even on RTL languages, we want the shortcut to be LTR so that we always
have <control> to the left of the accel keyval.
https://bugzilla.gnome.org/show_bug.cgi?id=772695
-rw-r--r-- | gtk/gtkshortcutlabel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkshortcutlabel.c b/gtk/gtkshortcutlabel.c index 905a27ba7c..bfacbd391e 100644 --- a/gtk/gtkshortcutlabel.c +++ b/gtk/gtkshortcutlabel.c @@ -499,6 +499,9 @@ static void gtk_shortcut_label_init (GtkShortcutLabel *self) { gtk_box_set_spacing (GTK_BOX (self), 6); + + /* Always use LTR so that modifiers are always left to the keyval */ + gtk_widget_set_direction (GTK_WIDGET (self), GTK_TEXT_DIR_LTR); } /** |