aboutsummaryrefslogtreecommitdiffstats
path: root/src/sato-draw-cairo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sato-draw-cairo.c')
-rw-r--r--src/sato-draw-cairo.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/sato-draw-cairo.c b/src/sato-draw-cairo.c
index e9a51f7..d66c31f 100644
--- a/src/sato-draw-cairo.c
+++ b/src/sato-draw-cairo.c
@@ -72,7 +72,6 @@ sato_draw_box (DRAW_ARGS)
if (DETAIL ("paned") || DETAIL ("vscrollbar") || DETAIL ("hscrollbar"))
return;
-
/* hack to remove PRELIGHT state */
if (!DETAIL ("menuitem") && state_type == GTK_STATE_PRELIGHT)
{
@@ -206,6 +205,7 @@ static void
sato_draw_shadow (DRAW_ARGS)
{
cairo_t *cr;
+
DEBUG ("draw_shadow");
if (shadow_type == GTK_SHADOW_NONE)
@@ -213,7 +213,6 @@ sato_draw_shadow (DRAW_ARGS)
SANITIZE_SIZE;
-
/* FIXME: for RTL */
if (widget && (GTK_IS_SPIN_BUTTON (widget) || GTK_IS_COMBO_BOX_ENTRY (widget->parent)))
width += 10;
@@ -256,7 +255,7 @@ sato_draw_focus (GtkStyle *style, GdkWindow *window, GtkStateType state_type,
gint x, gint y, gint width, gint height)
{
DEBUG ("draw_focus");
-
+ /* TODO */
}
static void
@@ -350,8 +349,8 @@ sato_draw_box_gap (GtkStyle * style, GdkWindow * window,
gint x, gint y, gint width, gint height,
GtkPositionType gap_side, gint gap_x, gint gap_width)
{
- GdkRectangle rect;
cairo_t *cr;
+ GdkRectangle rect;
if (shadow_type == GTK_SHADOW_NONE)
return;
@@ -473,6 +472,10 @@ sato_draw_vline (GtkStyle *style, GdkWindow *window, GtkStateType state_type,
gint y1, gint y2, gint x)
{
cairo_t *cr;
+
+ if (DETAIL ("vscale") || DETAIL ("hscale"))
+ return;
+
cr = gdk_cairo_create (window);
cairo_set_line_width (cr, LINE_WIDTH);
cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND);
@@ -491,6 +494,10 @@ sato_draw_hline (GtkStyle *style, GdkWindow *window, GtkStateType state_type,
gint x1, gint x2, gint y)
{
cairo_t *cr;
+
+ if (DETAIL ("vscale") || DETAIL ("hscale"))
+ return;
+
cr = gdk_cairo_create (window);
cairo_set_line_width (cr, LINE_WIDTH);
cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND);