summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1999-02-04 16:12:35 +0000
committerOwen Taylor <otaylor@src.gnome.org>1999-02-04 16:12:35 +0000
commit674b23e434415d3f407fcc55debfc47223c97cca (patch)
treed151631572f7db74f34bd810725aa4c806bf7d53
parent189ee727810bc817902ebc22fc55498691fe5f87 (diff)
downloadgdk-pixbuf-674b23e434415d3f407fcc55debfc47223c97cca.tar.gz
Fixes to account for the changed structure of the windows of range
Tue Feb 2 11:06:02 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkrange.c (gtk_range_style_set): Fixes to account for the changed structure of the windows of range widgets.
-rw-r--r--gtk/gtkrange.c29
1 files changed, 9 insertions, 20 deletions
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index b81d213ed..f9dae9536 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -1553,29 +1553,18 @@ gtk_range_style_set (GtkWidget *widget,
range = GTK_RANGE (widget);
- if (GTK_WIDGET_REALIZED (widget) &&
- !GTK_WIDGET_NO_WINDOW (widget))
+ if (GTK_WIDGET_REALIZED (widget))
{
- if (range->trough)
- {
- gtk_style_set_background (widget->style, range->trough, GTK_STATE_ACTIVE);
- if (GTK_WIDGET_DRAWABLE (widget))
- gdk_window_clear (range->trough);
- }
- /* The draw will take care of the slider */
+ if (range->trough)
+ gtk_style_set_background (widget->style, range->trough, GTK_STATE_ACTIVE);
+ if (range->slider)
+ gtk_style_set_background (widget->style, range->slider, GTK_STATE_NORMAL);
+
if (range->step_forw)
- {
- gtk_style_set_background (widget->style, range->step_forw, GTK_STATE_ACTIVE);
- if (GTK_WIDGET_DRAWABLE (widget))
- gdk_window_clear (range->step_forw);
- }
+ gtk_style_set_background (widget->style, range->step_forw, GTK_STATE_ACTIVE);
+
if (range->step_back)
- {
- gtk_style_set_background (widget->style, range->step_back, GTK_STATE_ACTIVE);
- if (GTK_WIDGET_DRAWABLE (widget))
- gdk_window_clear (range->step_back);
- }
- gtk_style_set_background (widget->style, widget->window, GTK_STATE_NORMAL);
+ gtk_style_set_background (widget->style, range->step_back, GTK_STATE_ACTIVE);
}
}