summaryrefslogtreecommitdiff
path: root/src/ui/theme.h
diff options
context:
space:
mode:
authorOwen W. Taylor <[email protected]>2014-09-27 16:47:27 +0300
committerVictor Kareh <[email protected]>2018-08-28 09:38:37 -0400
commita47f178df47ae26bf080b5c4f34762102c58085e (patch)
tree10de970315f7f835c2bac590c4e2a18150b24409 /src/ui/theme.h
parent728f0022b1b5b75a289abf8f3acec43378c06d92 (diff)
downloadmarco-a47f178df47ae26bf080b5c4f34762102c58085e.tar.bz2
marco-a47f178df47ae26bf080b5c4f34762102c58085e.tar.xz
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 <title/> 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.
Diffstat (limited to 'src/ui/theme.h')
-rw-r--r--src/ui/theme.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/theme.h b/src/ui/theme.h
index a52d22e8..6d0b4d16 100644
--- a/src/ui/theme.h
+++ b/src/ui/theme.h
@@ -539,6 +539,7 @@ struct _MetaDrawOp
MetaColorSpec *color_spec;
MetaDrawSpec *x;
MetaDrawSpec *y;
+ MetaDrawSpec *ellipsize_width;
} title;
struct {