diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2015-01-18 16:07:48 +0200 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2015-01-20 19:35:04 +0200 |
commit | 415a50a6ac9320c644de14eca3d9f4724e0d8a8b (patch) | |
tree | ccb8b1278ee1abce239932130d427118725b068c /src/ui | |
parent | 215dd8e9de7c416cdd5053eb638a163d49e603e8 (diff) | |
download | metacity-415a50a6ac9320c644de14eca3d9f4724e0d8a8b.tar.gz |
theme: add invisible_border to metacity theme
This adds 'invisible_border' to metacity theme. This invisible
border will be used for resize cursor area.
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/theme-parser.c | 4 | ||||
-rw-r--r-- | src/ui/theme.c | 5 | ||||
-rw-r--r-- | src/ui/theme.h | 3 |
3 files changed, 11 insertions, 1 deletions
diff --git a/src/ui/theme-parser.c b/src/ui/theme-parser.c index 0ac6983b..25b727f1 100644 --- a/src/ui/theme-parser.c +++ b/src/ui/theme-parser.c @@ -36,7 +36,7 @@ * look out for. */ #define THEME_MAJOR_VERSION 3 -#define THEME_MINOR_VERSION 5 +#define THEME_MINOR_VERSION 6 #define THEME_VERSION (1000 * THEME_MAJOR_VERSION + THEME_MINOR_VERSION) #define METACITY_THEME_FILENAME_FORMAT "metacity-theme-%d.xml" @@ -1552,6 +1552,8 @@ parse_border (GMarkupParseContext *context, border = &info->layout->title_border; else if (strcmp (name, "button_border") == 0) border = &info->layout->button_border; + else if (strcmp (name, "invisible_border") == 0) + border = &info->layout->invisible_border; if (border == NULL) { diff --git a/src/ui/theme.c b/src/ui/theme.c index 64f136f9..9728558f 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -219,6 +219,11 @@ meta_frame_layout_new (void) layout->right_width = -1; layout->bottom_height = -1; + layout->invisible_border.left = 10; + layout->invisible_border.right = 10; + layout->invisible_border.bottom = 10; + layout->invisible_border.top = 10; + init_border (&layout->title_border); layout->title_vertical_pad = -1; diff --git a/src/ui/theme.h b/src/ui/theme.h index 862c3aab..05ce21f7 100644 --- a/src/ui/theme.h +++ b/src/ui/theme.h @@ -90,6 +90,9 @@ struct _MetaFrameLayout /** Size of bottom side */ int bottom_height; + /** Invisible border */ + GtkBorder invisible_border; + /** Border of blue title region * \bug (blue?!) **/ |