Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernie Innocenti <bernie@codewiz.org>2010-07-01 11:47:23 (GMT)
committer Bernie Innocenti <bernie@codewiz.org>2010-07-03 19:55:07 (GMT)
commit16a263c5ee34e95991b4e49f8e865c424d2d3b8c (patch)
treef9cec47519346cb85f0bd21a46ba13d74e3e29b7
parentc8628994f48252746400ca6837faafdf7633badc (diff)
Revert to GTK_WIDGET_IS_SENSITIVE() macro
This is needed to build sugar-artwork on the older versions of GTK. When OLPC moves away from Fedora 11, we can drop backwards compatibility. Signed-off-by: Bernie Innocenti <bernie@codewiz.org> Acked-by: Benjamin Berg <benzea@sugarlabs.org>
-rw-r--r--gtk/engine/sugar-style.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/engine/sugar-style.c b/gtk/engine/sugar-style.c
index 5e5dbfc..b81fe69 100644
--- a/gtk/engine/sugar-style.c
+++ b/gtk/engine/sugar-style.c
@@ -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)) {
@@ -641,7 +641,7 @@ sugar_style_draw_shadow (GtkStyle *style,
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;
}