summaryrefslogtreecommitdiff
path: root/src/ui/theme.h
diff options
context:
space:
mode:
authorOwen W. Taylor <[email protected]>2014-09-27 16:21:16 +0300
committerVictor Kareh <[email protected]>2018-08-28 09:38:37 -0400
commit728f0022b1b5b75a289abf8f3acec43378c06d92 (patch)
treec89303b97f6bc424e6efb5b856762486431d2024 /src/ui/theme.h
parented3004dfddea34ccb733343954bf63f55cd357ac (diff)
downloadmarco-728f0022b1b5b75a289abf8f3acec43378c06d92.tar.bz2
marco-728f0022b1b5b75a289abf8f3acec43378c06d92.tar.xz
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 NOTE: Patch is copied from mutter and is adapted for metacity.
Diffstat (limited to 'src/ui/theme.h')
-rw-r--r--src/ui/theme.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/theme.h b/src/ui/theme.h
index d023d8d3..a52d22e8 100644
--- a/src/ui/theme.h
+++ b/src/ui/theme.h
@@ -830,6 +830,8 @@ struct _MetaTheme
GQuark quark_icon_height;
GQuark quark_title_width;
GQuark quark_title_height;
+ GQuark quark_frame_x_center;
+ GQuark quark_frame_y_center;
};
struct _MetaPositionExprEnv
@@ -845,6 +847,8 @@ struct _MetaPositionExprEnv
int bottom_height;
int title_width;
int title_height;
+ int frame_x_center;
+ int frame_y_center;
int mini_icon_width;
int mini_icon_height;
int icon_width;