[gtk+/gtk-style-context] GtkThemingEngine: remove unused code
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context] GtkThemingEngine: remove unused code
- Date: Wed, 17 Nov 2010 01:59:43 +0000 (UTC)
commit 722a7b2d33fb3f3efd1dccb02fb0f71c5c27fbc3
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Nov 17 02:59:19 2010 +0100
GtkThemingEngine: remove unused code
gtk/gtkthemingengine.c | 64 ------------------------------------------------
1 files changed, 0 insertions(+), 64 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index ad8ae01..a2e012e 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -1164,70 +1164,6 @@ add_path_line (cairo_t *cr,
}
static void
-add_path_rectangle_sides (cairo_t *cr,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height,
- guint sides)
-{
- if (sides & SIDE_TOP)
- {
- cairo_move_to (cr, x, y + 0.5);
- cairo_line_to (cr, x + width, y + 0.5);
- }
-
- if (sides & SIDE_RIGHT)
- {
- cairo_move_to (cr, x + width - 0.5, y);
- cairo_line_to (cr, x + width - 0.5, y + height);
- }
-
- if (sides & SIDE_BOTTOM)
- {
- cairo_move_to (cr, x, y + height - 0.5);
- cairo_line_to (cr, x + width, y + height - 0.5);
- }
-
- if (sides & SIDE_LEFT)
- {
- cairo_move_to (cr, x + 0.5, y + height);
- cairo_line_to (cr, x + 0.5, y);
- }
-}
-
-static void
-add_path_gap_side (cairo_t *cr,
- GtkPositionType gap_side,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height,
- gdouble xy0_gap,
- gdouble xy1_gap)
-{
- switch (gap_side)
- {
- case GTK_POS_TOP:
- add_path_line (cr, x, y, x + xy0_gap, y);
- add_path_line (cr, x + xy1_gap, y, x + width, y);
- break;
- case GTK_POS_BOTTOM:
- add_path_line (cr, x, y + height, x + xy0_gap, y + height);
- add_path_line (cr, x + xy1_gap, y + height, x + width, y + height);
- break;
- case GTK_POS_LEFT:
- add_path_line (cr, x, y, x, y + xy0_gap);
- add_path_line (cr, x, y + xy1_gap, x, y + height);
- break;
- case GTK_POS_RIGHT:
- add_path_line (cr, x + width, y, x + width, y + xy0_gap);
- add_path_line (cr, x + width, y + xy1_gap, x + width, y + height);
- break;
- }
-}
-
-static void
color_shade (const GdkRGBA *color,
gdouble factor,
GdkRGBA *color_return)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]