From 93b5dd1cf945b59a1ec605e66c2ceda49ba9e397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberts=20Muktup=C4=81vels?= Date: Sun, 18 Jan 2015 16:07:48 +0200 Subject: theme: add invisible_border to metacity theme This adds 'invisible_border' to metacity theme. This invisible border will be used for resize cursor area. --- src/ui/theme-parser.c | 4 +++- src/ui/theme.c | 5 +++++ src/ui/theme.h | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ui/theme-parser.c b/src/ui/theme-parser.c index a328fd06..6fadaa1d 100644 --- a/src/ui/theme-parser.c +++ b/src/ui/theme-parser.c @@ -38,7 +38,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 MARCO_THEME_FILENAME_FORMAT "metacity-theme-%d.xml" @@ -1570,6 +1570,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 7035db5f..fee9948c 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 4e21a6e5..0713e2ce 100644 --- a/src/ui/theme.h +++ b/src/ui/theme.h @@ -92,6 +92,9 @@ struct _MetaFrameLayout /** Size of bottom side */ int bottom_height; + /** Invisible border */ + GtkBorder invisible_border; + /** Border of blue title region * \bug (blue?!) **/ -- cgit v1.2.1