[murrine] Updated focusstyle = 3 focus on tab, use xthickness, ythickness = 2 for best results
- From: Andrea Cimitan <acimitan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [murrine] Updated focusstyle = 3 focus on tab, use xthickness, ythickness = 2 for best results
- Date: Thu, 27 May 2010 16:36:36 +0000 (UTC)
commit d6af1a03b727019c638ee3e07f9d7fecc56e576a
Author: Andrea Cimitan <andrea cimitan gmail com>
Date: Thu May 27 17:36:02 2010 +0100
Updated focusstyle = 3 focus on tab, use xthickness,ythickness = 2 for best results
src/murrine_draw.c | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/src/murrine_draw.c b/src/murrine_draw.c
index d3c30f6..b8fc5b6 100644
--- a/src/murrine_draw.c
+++ b/src/murrine_draw.c
@@ -2983,6 +2983,16 @@ murrine_draw_focus_classic (cairo_t *cr,
}
static void
+murrine_draw_tab_focus (cairo_t *cr,
+ const MurrineColors *colors,
+ const WidgetParameters *widget,
+ const FocusParameters *focus,
+ int x, int y, int width, int height)
+{
+
+}
+
+static void
murrine_draw_focus_border (cairo_t *cr,
const MurrineColors *colors,
const WidgetParameters *widget,
@@ -3057,9 +3067,10 @@ murrine_draw_focus_border (cairo_t *cr,
radius = widget->roundness;
break;
case MRN_FOCUS_TAB:
- xoffset = 0.0;
- yoffset = 0.0;
- radius = widget->roundness-1;
+ xoffset = CLAMP (-(widget->xthickness)-1.0, -3.0, 0);
+ yoffset = CLAMP (-(widget->ythickness)-1.0, -3.0, 0);
+ radius = widget->roundness-1;
+ focus_border = FALSE;
break;
case MRN_FOCUS_SCALE:
radius = widget->roundness;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]