[murrine] Added code to draw layout with cairo. But it is not enabled.



commit deff4d9860a2162babc3cf4d92f18f89787f7d71
Author: Andrea Cimitan <andrea cimitan gmail com>
Date:   Wed Jul 28 01:19:24 2010 +0200

    Added code to draw layout with cairo. But it is not enabled.

 src/murrine_style.c |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/src/murrine_style.c b/src/murrine_style.c
index 241d626..9c9162d 100644
--- a/src/murrine_style.c
+++ b/src/murrine_style.c
@@ -1303,7 +1303,6 @@ murrine_style_draw_box (DRAW_ARGS)
 		button.has_default_button_color = FALSE;
 
 		boolean horizontal = TRUE;
-
 		/* Different heuristic:
 		 * if (DETAIL ("vscale"))
 		 *	horizontal = FALSE;
@@ -2078,6 +2077,8 @@ murrine_style_draw_layout (GtkStyle     *style,
 				murrine_shade (&colors->base[state_type], shade_level, &temp);
 			else
 				murrine_shade (&colors->bg[state_type], shade_level, &temp);
+				
+			
 		}
 		else if (DETAIL ("cellrenderertext"))
 			murrine_shade (&colors->base[state_type], shade_level, &temp);
@@ -2090,6 +2091,16 @@ murrine_style_draw_layout (GtkStyle     *style,
 
 		gdk_draw_layout_with_colors (window, gc, x+xos, y+yos, layout, &etched, NULL);
 
+		/* with cairo *
+		 */
+/*		cairo_t *cr; */
+/*		cr = murrine_begin_paint (window, area); */
+/*		cairo_translate (cr, x+xos, y+yos); */
+/*		murrine_set_color_rgb (cr, &temp); */
+/*		murrine_set_color_rgba (cr, &temp, 0.5);*/
+/*		pango_cairo_show_layout (cr, layout);*/
+/*		cairo_destroy (cr);*/
+
 /*		printf( "draw_layout: %s %s\n", detail, G_OBJECT_TYPE_NAME (widget->parent));*/
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]