From d5f905db37560669ad62032fa4c21fd0412ffbf6 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Sat, 27 Sep 2014 16:47:27 +0300 Subject: Allow a theme to specify ellipsize width for a title It's nice to indicate when a title is truncated with an ellipsis. Because themes may draw a title multiple times to draw a shadow, or may include the window icon within the title area, we can't determine the proper ellipsization width automatically, so add an optional attribute to the element "ellipsize_width" which, if set, is the width to ellipsize at. This is only enabled if a theme version of 3.1 is required. When it's not set, we keep the old behavior of just letting the title be clipped with a hard edge. https://bugzilla.gnome.org/show_bug.cgi?id=591842 NOTE: Patch copied from mutter and adapted for metacity. --- doc/theme-format.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/theme-format.txt b/doc/theme-format.txt index bacc6e44..54138e65 100644 --- a/doc/theme-format.txt +++ b/doc/theme-format.txt @@ -32,6 +32,10 @@ Additional predefined variables are added for positioning expressions: frame_y_center: the Y center of the entire frame, with respect to the piece currently being drawn. +The <title/> element now supports an "ellipsize_width" attribute. When +specified, this gives a width at which to ellipsize the title. If not +specified, the title will simply be clipped to the title area. + New Features in Theme Format Version 3 ====================================== -- cgit v1.2.1