summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2009-08-20 13:47:05 -0400
committerOwen W. Taylor <otaylor@fishsoup.net>2010-04-13 14:07:50 -0400
commite8e78ebfdd000ad85b0ec269b1a3420586750523 (patch)
tree98b2e13773434db5a722a9781ade68d12fb3ee5f /doc
parentb77b0a3d817ac75fb13f9f17829c17d238a72a02 (diff)
downloadmutter-e8e78ebfdd000ad85b0ec269b1a3420586750523.tar.gz
Add frame_x_center/frame_y_center variables for themes
Sometimes you want to position something (usually the title) to be centered with respect to the entire frame instead of centered with respect to the individual piece currently being drawn. This patch adds frame_x_center and frame_y_center variables that represent the X/Y centers of the frame in the coordinate system of the piece being drawn. The theme version is bumped from 3.0 to 3.1 (3.0 is just the new version system, 3.1 will have all the features we add for Mutter-2.28.) position expressions https://bugzilla.gnome.org/show_bug.cgi?id=591842
Diffstat (limited to 'doc')
-rw-r--r--doc/theme-format.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/theme-format.txt b/doc/theme-format.txt
index bb79d4534..cefc31627 100644
--- a/doc/theme-format.txt
+++ b/doc/theme-format.txt
@@ -22,6 +22,16 @@ This document has separate sections for each format version. You may
want to read the document in reverse order, since the base features
are discussed under version 1.
+New Features in Theme Format Version 3.1
+========================================
+
+Additional predefined variables are added for positioning expressions:
+
+ frame_x_center: the X center of the entire frame, with respect to the
+ piece currently being drawn.
+ frame_y_center: the Y center of the entire frame, with respect to the
+ piece currently being drawn.
+
New Features in Theme Format Version 3
======================================