[gtk-theme-engine-clearlooks/gtk-style-context] Use widget style properties when rendering focus.



commit 15cf282716672ffa8aa55c3a795b8ed7bfe74ec0
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Nov 30 03:11:58 2010 +0100

    Use widget style properties when rendering focus.

 src/clearlooks_engine.c |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/clearlooks_engine.c b/src/clearlooks_engine.c
index e1aab91..603176a 100644
--- a/src/clearlooks_engine.c
+++ b/src/clearlooks_engine.c
@@ -1296,20 +1296,16 @@ clearlooks_engine_render_focus (GtkThemingEngine *engine,
 	focus.padding = 1;
 	dash_list = NULL;
 
-#if 0
-	if (widget)
-	{
-		gtk_widget_style_get (widget,
+	gtk_theming_engine_get_style (engine,
 		                      "focus-line-width", &focus.line_width,
 		                      "focus-line-pattern", &dash_list,
 		                      "focus-padding", &focus.padding,
 		                      "interior-focus", &focus.interior,
-		                      NULL);
-	}
+				      NULL);
+
 	if (dash_list)
 		focus.dash_list = dash_list;
 	else
-#endif
 		focus.dash_list = (guint8*) g_strdup ("\1\1");
 
 	/* Focus type */



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