[gtk-theme-engine-clearlooks] Use widget style properties when rendering focus.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-theme-engine-clearlooks] Use widget style properties when rendering focus.
- Date: Mon, 6 Dec 2010 21:23:18 +0000 (UTC)
commit c0fe697bfc7410fde3479e845bcdbea1d7cb6337
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]