Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gtk/engine/sugar-style.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/engine/sugar-style.c')
-rw-r--r--gtk/engine/sugar-style.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/engine/sugar-style.c b/gtk/engine/sugar-style.c
index b81fe69..88a80a4 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);
}
@@ -444,7 +444,7 @@ sugar_style_draw_box (GtkStyle *style,
sugar_fill_generic_info (&info, style, state_type, shadow_type, widget, detail, x, y, width, height);
- if (widget && !GTK_WIDGET_IS_SENSITIVE (widget))
+ if (widget && !gtk_widget_is_sensitive (widget))
info.state = GTK_STATE_INSENSITIVE;
/* Needed because the trough and bar are cached in a buffer inside GtkProgress. */
@@ -458,7 +458,7 @@ sugar_style_draw_box (GtkStyle *style,
sugar_fill_generic_info (&info, style, state_type, shadow_type, widget, detail, x, y, width, height);
- if (widget && !GTK_WIDGET_IS_SENSITIVE (widget))
+ if (widget && !gtk_widget_is_sensitive (widget))
info.state = GTK_STATE_INSENSITIVE;
if (widget && GTK_IS_PROGRESS_BAR (widget)) {
@@ -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,10 +638,10 @@ 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)) {
+ if (widget && !gtk_widget_is_sensitive (widget)) {
info.state = GTK_STATE_INSENSITIVE;
}