[gnome-themes-standard] adwaita: remove unused code to draw scale sliders
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] adwaita: remove unused code to draw scale sliders
- Date: Fri, 10 Jun 2011 19:21:50 +0000 (UTC)
commit 8380fb47b2e379cf287855ef943391311d979b7e
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Jun 10 15:21:29 2011 -0400
adwaita: remove unused code to draw scale sliders
src/adwaita_engine.c | 96 --------------------------------------------------
1 files changed, 0 insertions(+), 96 deletions(-)
---
diff --git a/src/adwaita_engine.c b/src/adwaita_engine.c
index 4a22871..43e6c80 100644
--- a/src/adwaita_engine.c
+++ b/src/adwaita_engine.c
@@ -575,102 +575,6 @@ adwaita_engine_render_activity (GtkThemingEngine *engine,
}
static void
-draw_round_slider (cairo_t *cr,
- gdouble width,
- gdouble height)
-{
- cairo_arc (cr, (width) / 2.0, (height) / 2.0,
- MIN (height / 2.0, width / 2.0) - 0.5,
- 0, 2 * G_PI);
- cairo_close_path (cr);
-}
-
-static void
-draw_mark_slider (cairo_t *cr,
- gdouble width,
- gdouble height,
- gboolean marks_below,
- GtkOrientation orientation)
-{
- cairo_set_line_join (cr, CAIRO_LINE_JOIN_ROUND);
-
- if (marks_below)
- {
- if (orientation == GTK_ORIENTATION_HORIZONTAL)
- {
- cairo_move_to (cr, 0, height / 2.0 + 3.0);
- cairo_arc (cr, 2.5, 3.5,
- 2.0,
- G_PI, G_PI + G_PI_2);
-
- cairo_arc (cr, width - 2.5, 3.5,
- 2.0,
- G_PI + G_PI_2, 2 * G_PI);
-
- cairo_line_to (cr, width, height / 2.0 + 3.0);
- cairo_line_to (cr, width / 2.0, height);
- cairo_line_to (cr, 0, height / 2.0 + 3.0);
-
- cairo_close_path (cr);
- }
- else
- {
- cairo_move_to (cr, width / 2.0, 0);
- cairo_arc (cr, width - 2.5, 2.5,
- 2.0,
- G_PI + G_PI_2, 2 * G_PI);
-
- cairo_arc (cr, width - 2.5, height - 2.5,
- 2.0,
- 0, G_PI_2);
-
- cairo_line_to (cr, width / 2.0, height);
- cairo_line_to (cr, 0, height / 2.0);
- cairo_line_to (cr, width / 2.0, 0);
-
- cairo_close_path (cr);
- }
- }
- else
- {
- if (orientation == GTK_ORIENTATION_HORIZONTAL)
- {
- cairo_move_to (cr, width, height / 2.0 - 3.0);
- cairo_arc (cr, width - 2.5, height - 3.5,
- 2.0,
- 0, G_PI_2);
-
- cairo_arc (cr, 2.5, height - 3.5,
- 2.0,
- G_PI_2, G_PI);
-
- cairo_line_to (cr, 0, height / 2.0 - 3.0);
- cairo_line_to (cr, width / 2.0, 0);
- cairo_line_to (cr, width, height / 2.0 - 3.0);
-
- cairo_close_path (cr);
- }
- else
- {
- cairo_move_to (cr, width / 2.0, height);
- cairo_arc (cr, 2.5, height - 2.5,
- 2.0,
- G_PI_2, G_PI);
-
- cairo_arc (cr, 2.5, 2.5,
- 2.0,
- G_PI, G_PI + G_PI_2);
-
- cairo_line_to (cr, width / 2.0, 0);
- cairo_line_to (cr, width, height / 2.0);
- cairo_line_to (cr, width / 2.0, height);
-
- cairo_close_path (cr);
- }
- }
-}
-
-static void
render_switch_lines (GtkThemingEngine *engine,
cairo_t *cr,
gdouble x,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]