diff options
author | Benjamin Berg <benjamin@sipsolutions.net> | 2010-05-06 17:13:51 (GMT) |
---|---|---|
committer | Benjamin Berg <benjamin@sipsolutions.net> | 2010-05-06 17:13:51 (GMT) |
commit | ac029997d30ed0e76b319d0ccadb058e21f4d054 (patch) | |
tree | 8365cbc1ffe589690f06e9c02e1f2b560ffed6cd /gtk/engine/sugar-style.c | |
parent | 5d88c8943e14a0ca31af1dea86e743f869383567 (diff) |
Revert 5d88c89 and instead disable the just remove time flags. #1899
Diffstat (limited to 'gtk/engine/sugar-style.c')
-rw-r--r-- | gtk/engine/sugar-style.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/engine/sugar-style.c b/gtk/engine/sugar-style.c index 88a80a4..5e5dbfc 100644 --- a/gtk/engine/sugar-style.c +++ b/gtk/engine/sugar-style.c @@ -415,7 +415,7 @@ sugar_style_draw_box (GtkStyle *style, sugar_draw_button (cr, &info); /* Spinbutton focus hack. */ - if (widget && gtk_widget_has_focus (widget)) { + if (widget && GTK_WIDGET_HAS_FOCUS (widget)) { /* Draw a focus for the spinbutton */ sugar_style_draw_focus (style, window, GTK_STATE_NORMAL, area, widget, detail, x, y, width, height); } @@ -585,7 +585,7 @@ sugar_style_draw_flat_box (GtkStyle *style, { /* Hack to change the entries background when it has the focus. */ if (DETAIL ("entry_bg")) { - if (widget && gtk_widget_has_focus (widget)) { + if (widget && GTK_WIDGET_HAS_FOCUS (widget)) { state_type = GTK_STATE_ACTIVE; } } else if (DETAIL ("radiobutton") || DETAIL ("checkbutton")) { @@ -638,7 +638,7 @@ sugar_style_draw_shadow (GtkStyle *style, /* XXX: This fakes an ACTIVE state for the focused entry. * Getting this changed in GTK+ with a style property would be cleaner * as that also works for the font colors. (see also draw_flat_box) */ - if (widget && gtk_widget_has_focus (widget)) { + if (widget && GTK_WIDGET_HAS_FOCUS (widget)) { info.state = GTK_STATE_ACTIVE; } if (widget && !gtk_widget_is_sensitive (widget)) { |