gtk-engines r1051 - in trunk: . engines/mist/src



Author: acimitan
Date: Sat Feb  2 23:41:24 2008
New Revision: 1051
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1051&view=rev

Log:
2008-02-03  Andrea Cimitan  <andrea cimitan gmail com>

	* engines/mist/src/mist-style.c: (mist_style_draw_check),
	(mist_style_draw_option):
	I guess thix should fix 500952, but it's just a 30 seconds patch :)


Modified:
   trunk/ChangeLog
   trunk/engines/mist/src/mist-style.c

Modified: trunk/engines/mist/src/mist-style.c
==============================================================================
--- trunk/engines/mist/src/mist-style.c	(original)
+++ trunk/engines/mist/src/mist-style.c	Sat Feb  2 23:41:24 2008
@@ -669,7 +669,10 @@
 	ge_cairo_stroke_rectangle(cr, x + 0.5, y + 0.5, width - 2, height - 2);
 	
 	if (shadow_type == GTK_SHADOW_IN) {
-		ge_cairo_set_color(cr, &mist_style->color_cube.base[GTK_STATE_SELECTED]);	
+		if (state_type == GTK_STATE_INSENSITIVE)
+			ge_cairo_set_color(cr, &mist_style->color_cube.dark[state_type]);
+		else
+			ge_cairo_set_color(cr, &mist_style->color_cube.base[GTK_STATE_SELECTED]);
 		cairo_rectangle(cr, x + 2, y + 2, width - 5, height - 5);
 		cairo_fill(cr);
 	} else if (shadow_type == GTK_SHADOW_ETCHED_IN) { /* inconsistent */
@@ -757,7 +760,10 @@
 	else if (shadow_type == GTK_SHADOW_IN)
 	{
 		/* checked */
-		ge_cairo_set_color(cr, &mist_style->color_cube.bg[GTK_STATE_SELECTED]);	
+		if (state_type == GTK_STATE_INSENSITIVE)
+			ge_cairo_set_color(cr, &mist_style->color_cube.dark[state_type]);
+		else
+			ge_cairo_set_color(cr, &mist_style->color_cube.base[GTK_STATE_SELECTED]);
 		cairo_arc(cr, x + floor(width/2), y + floor(height/2), floor((width - 7)/2) + 1, 0 , 2 * G_PI);
 		cairo_fill (cr);
 	}



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