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



Author: bberg
Date: Sun Mar  2 15:52:57 2008
New Revision: 1110
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1110&view=rev

Log:
2008-03-02  Benjamin Berg  <benjamin sipsolutions net>

	* engines/clearlooks/src/clearlooks_style.c:
	(clearlooks_style_draw_shadow):
	Override the entry state early enough so that the params are set
	correctly.


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

Modified: trunk/engines/clearlooks/src/clearlooks_style.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_style.c	(original)
+++ trunk/engines/clearlooks/src/clearlooks_style.c	Sun Mar  2 15:52:57 2008
@@ -163,12 +163,12 @@
 	{
 		WidgetParameters params;
 
-		clearlooks_set_widget_parameters (widget, style, state_type, &params);
-
 		/* Override the entries state type, because we are too lame to handle this via
 		 * the focus ring, and GtkEntry doesn't even set the INSENSITIVE state ... */
 		if (state_type == GTK_STATE_NORMAL && widget && GE_IS_ENTRY (widget))
-			params.state_type = GTK_WIDGET_STATE (widget);
+			state_type = GTK_WIDGET_STATE (widget);
+
+		clearlooks_set_widget_parameters (widget, style, state_type, &params);
 
 		if (CHECK_HINT (GE_HINT_COMBOBOX_ENTRY) || CHECK_HINT (GE_HINT_SPINBUTTON))
 		{



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