diff options
author | Jonathan Blandford <jrb@redhat.com> | 2001-08-19 23:46:59 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2001-08-19 23:46:59 +0000 |
commit | 9b14c046826ac88885fc7ad9bbd9deeecd06e142 (patch) | |
tree | e2a15e4dfbbc3e3ba4657708ef3772a6c949a1d1 /gtk/gtkstyle.c | |
parent | 9b71c44a75d453ea530787dea48c4a5d16259e4e (diff) | |
download | gtk+-9b14c046826ac88885fc7ad9bbd9deeecd06e142.tar.gz |
Fix up warnings, #58928.
Sun Aug 19 03:22:59 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkliststore.c: Fix up warnings, #58928.
* gtk/gtktreeselection.h: Change signal prototype, #58647
* gtk/gtktreeview.c (_gdk_tree_view_find_node): Make more robust,
#59221.
* gtk/gtkstyle.c: Actually prelight arrow, #50981
Diffstat (limited to 'gtk/gtkstyle.c')
-rw-r--r-- | gtk/gtkstyle.c | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index 31eb52c92f..d043663f85 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -4086,11 +4086,25 @@ gtk_default_draw_expander (GtkStyle *style, for (i = 0; i < 3; i++) apply_affine_on_point (affine, &points[i]); - gdk_draw_polygon (window, style->base_gc[GTK_STATE_NORMAL], - TRUE, points, 3); - gdk_draw_polygon (window, style->fg_gc[GTK_STATE_NORMAL], - FALSE, points, 3); - + if (state_type == GTK_STATE_PRELIGHT) + { + gdk_draw_polygon (window, style->base_gc[GTK_STATE_NORMAL], + TRUE, points, 3); + gdk_draw_polygon (window, style->fg_gc[GTK_STATE_NORMAL], + FALSE, points, 3); + } + else if (state_type == GTK_STATE_ACTIVE) + { + gdk_draw_polygon (window, style->light_gc[GTK_STATE_ACTIVE], + TRUE, points, 3); + gdk_draw_polygon (window, style->fg_gc[GTK_STATE_NORMAL], + FALSE, points, 3); + } + else + { + gdk_draw_polygon (window, style->fg_gc[GTK_STATE_NORMAL], + TRUE, points, 3); + } if (area) { gdk_gc_set_clip_rectangle (style->fg_gc[GTK_STATE_NORMAL], NULL); |