}
}
-#if 0
-/*
- * See http://bugzilla.gnome.org/show_bug.cgi?id=80229
- */
-static void
-draw_spin_entry_shadow (GtkStyle *style,
- GdkWindow *window,
- GtkStateType state,
- GdkRectangle *area,
- gint x,
- gint y,
- gint width,
- gint height)
-{
- gint window_width, window_height;
- gboolean focus_inset;
-
- gdk_drawable_get_size (window, &window_width, &window_height);
-
- if (width == -1)
- width = window_width;
- if (height == 1)
- height = window_height;
-
- focus_inset = (width < window_width && height < window_height);
-
- if (area)
- {
- gdk_gc_set_clip_rectangle (style->light_gc[state], area);
- gdk_gc_set_clip_rectangle (style->dark_gc[state], area);
- gdk_gc_set_clip_rectangle (style->black_gc, area);
- gdk_gc_set_clip_rectangle (style->bg_gc[state], area);
- gdk_gc_set_clip_rectangle (style->base_gc[state], area);
- }
-
- gdk_draw_line (window, style->light_gc[state],
- x, y + height - 1, x + width - 1, y + height - 1);
-
- gdk_draw_line (window,
- style->base_gc[state],
- x + width - 1, y + 1, x + width - 1, y + height - 3);
-
- if (!focus_inset)
- {
- gdk_draw_line (window, style->bg_gc[state],
- x + 1, y + height - 2, x + width - 1, y + height - 2);
- gdk_draw_line (window,
- style->base_gc[state],
- x + width - 2, y + 1, x + width - 2, y + height - 3);
-
- gdk_draw_line (window, style->black_gc,
- x + 1, y + 1, x + width - 1, y + 1);
- gdk_draw_line (window, style->black_gc,
- x + 1, y + 1, x + 1, y + height - 2);
- }
-
- gdk_draw_line (window, style->dark_gc[state],
- x, y, x + width - 1, y);
- gdk_draw_line (window, style->dark_gc[state],
- x, y, x, y + height - 1);
-
- if (area)
- {
- gdk_gc_set_clip_rectangle (style->light_gc[state], NULL);
- gdk_gc_set_clip_rectangle (style->dark_gc[state], NULL);
- gdk_gc_set_clip_rectangle (style->black_gc, NULL);
- gdk_gc_set_clip_rectangle (style->bg_gc[state], NULL);
- gdk_gc_set_clip_rectangle (style->base_gc[state], NULL);
- }
-}
-#endif
-
static void
draw_spinbutton_shadow (GtkStyle *style,
GdkWindow *window,