summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1999-01-25 22:43:50 +0000
committerOwen Taylor <otaylor@src.gnome.org>1999-01-25 22:43:50 +0000
commit08f1e8098f088527be4539fd9ca49b72e80df99f (patch)
tree5d1e7ed4995737a8a04a0bcf0d345eeddd0e27e1 /gtk
parent7d5e1b0ccf48c3e5275affd6719dd3c28013aba6 (diff)
downloadgdk-pixbuf-08f1e8098f088527be4539fd9ca49b72e80df99f.tar.gz
Removed some GTK_WIDGET_DRAWABLE() tests - we need to update the value
Mon Jan 25 17:48:03 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkcolorsel.c: Removed some GTK_WIDGET_DRAWABLE() tests - we need to update the value bar's contents even when the widget is unmapped.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkcolorsel.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/gtk/gtkcolorsel.c b/gtk/gtkcolorsel.c
index 5c031d1eb..540aafa4d 100644
--- a/gtk/gtkcolorsel.c
+++ b/gtk/gtkcolorsel.c
@@ -490,12 +490,11 @@ gtk_color_selection_set_color (GtkColorSelection *colorsel,
gtk_color_selection_update_inputs (colorsel, RGB_INPUTS | HSV_INPUTS | OPACITY_INPUTS, BOTH);
+ gtk_color_selection_draw_value_bar (colorsel, FALSE);
+ gtk_color_selection_draw_sample (colorsel, FALSE);
+
if (GTK_WIDGET_DRAWABLE (GTK_WIDGET (colorsel)))
- {
- gtk_color_selection_draw_value_bar (colorsel, FALSE);
- gtk_color_selection_draw_sample (colorsel, FALSE);
- gtk_color_selection_draw_wheel_marker (colorsel);
- }
+ gtk_color_selection_draw_wheel_marker (colorsel);
}
void
@@ -819,8 +818,7 @@ gtk_color_selection_set_opacity (GtkColorSelection *colorsel,
gtk_widget_show (colorsel->entries[OPACITY]);
}
- if (GTK_WIDGET_DRAWABLE (colorsel->sample_area))
- gtk_color_selection_draw_sample (colorsel, FALSE);
+ gtk_color_selection_draw_sample (colorsel, FALSE);
}
static void