diff --git a/modules/engines/pixbuf/ChangeLog b/modules/engines/pixbuf/ChangeLog index d6b717ba8a..d864854f92 100644 --- a/modules/engines/pixbuf/ChangeLog +++ b/modules/engines/pixbuf/ChangeLog @@ -1,3 +1,8 @@ +Fri Sep 6 20:32:45 2002 Owen Taylor + + * pixbuf-draw.c: Account for the possibility of detail == NULL + (#89561, Hongli Lai) + Sun Apr 21 14:10:04 2002 Owen Taylor * pixbuf-rc-style.c pixbuf.h pixbuf-draw.c: Add a fake STEPPER diff --git a/modules/engines/pixbuf/pixbuf-draw.c b/modules/engines/pixbuf/pixbuf-draw.c index 9aef0ea787..3796816b4b 100644 --- a/modules/engines/pixbuf/pixbuf-draw.c +++ b/modules/engines/pixbuf/pixbuf-draw.c @@ -485,7 +485,8 @@ draw_arrow (GtkStyle *style, g_return_if_fail(style != NULL); g_return_if_fail(window != NULL); - if (strcmp (detail, "hscrollbar") == 0 || strcmp (detail, "vscrollbar") == 0) + if (detail && + (strcmp (detail, "hscrollbar") == 0 || strcmp (detail, "vscrollbar") == 0)) { /* This is a hack to work around the fact that scrollbar steppers are drawn * as a box + arrow, so we never have @@ -637,7 +638,8 @@ draw_box (GtkStyle *style, g_return_if_fail(style != NULL); g_return_if_fail(window != NULL); - if (strcmp (detail, "hscrollbar") == 0 || strcmp (detail, "vscrollbar") == 0) + if (detail && + (strcmp (detail, "hscrollbar") == 0 || strcmp (detail, "vscrollbar") == 0)) { /* We handle this in draw_arrow */ return;