summaryrefslogtreecommitdiff
path: root/gtk/gtkapplicationwindow.c
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2016-10-12 13:56:57 -0700
committerMatthias Clasen <mclasen@redhat.com>2016-10-13 06:34:50 -0400
commit133da654338544c9d8bf657eb3da3f5902e8889b (patch)
tree5a8052db351427b827eef5c2cf8a9473f5c827b0 /gtk/gtkapplicationwindow.c
parent9e2b1ad39e86b2352116f49214cf195cb3e0e970 (diff)
downloadgtk+-133da654338544c9d8bf657eb3da3f5902e8889b.tar.gz
menusectionbox: add support for "text-direction" attribute
This allows the use of a "text-direction" hint set to one of "none", "rtl", or "ltr" to enforce the text direction of a "horizontal-buttons" display-hint. This is useful when a menu has buttons that map to physical space in the UI and therefore must match the application widgetry. https://bugzilla.gnome.org/show_bug.cgi?id=772775
Diffstat (limited to 'gtk/gtkapplicationwindow.c')
-rw-r--r--gtk/gtkapplicationwindow.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index 62d133a6f3..2128f983c1 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -135,6 +135,9 @@
* - "label": a user-visible string to use as section heading
* - "display-hint": a string used to determine special formatting for the section.
* Possible values include "horizontal-buttons".
+ * - "text-direction": a string used to determine the #GtkTextDirection to use
+ * when "display-hint" is set to "horizontal-buttons". Possible values
+ * include "rtl", "ltr", and "none".
*
* The following attributes are used when constructing submenus:
* - "label": a user-visible string to display