gtk-engines r1145 - in trunk: . engines/clearlooks/src



Author: acimitan
Date: Wed Mar 19 01:03:19 2008
New Revision: 1145
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1145&view=rev

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

	* engines/clearlooks/src/clearlooks_style.c:
	(clearlooks_set_widget_parameters):
	Fix? Workaround?
	Anyway this fixes insensitive spinbuttons


Modified:
   trunk/ChangeLog
   trunk/engines/clearlooks/src/clearlooks_draw_inverted.c
   trunk/engines/clearlooks/src/clearlooks_style.c

Modified: trunk/engines/clearlooks/src/clearlooks_draw_inverted.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_draw_inverted.c	(original)
+++ trunk/engines/clearlooks/src/clearlooks_draw_inverted.c	Wed Mar 19 01:03:19 2008
@@ -31,7 +31,7 @@
 
 static void
 clearlooks_draw_top_left_highlight (cairo_t *cr,
-                 							const CairoColor *color,
+                                    const CairoColor *color,
                                     const WidgetParameters *params,
                                     int width, int height, gdouble radius)
 {

Modified: trunk/engines/clearlooks/src/clearlooks_style.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_style.c	(original)
+++ trunk/engines/clearlooks/src/clearlooks_style.c	Wed Mar 19 01:03:19 2008
@@ -65,6 +65,10 @@
 {
 	params->style_functions = &(clearlooks_style_class->style_functions[CLEARLOOKS_STYLE (style)->style]);
 
+	/* Taken from Murrine, seems to fix insensitive spinbuttons */
+	if (widget && GE_IS_ENTRY (widget))
+		state_type = GTK_WIDGET_STATE (widget);
+
 	params->active        = (state_type == GTK_STATE_ACTIVE);
 	params->prelight      = (state_type == GTK_STATE_PRELIGHT);
 	params->disabled      = (state_type == GTK_STATE_INSENSITIVE);



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