forked from AuroraMiddleware/gtk
Account for the possibility of detail == NULL (#89561, Hongli Lai)
Fri Sep 6 20:32:45 2002 Owen Taylor <otaylor@redhat.com> * pixbuf-draw.c: Account for the possibility of detail == NULL (#89561, Hongli Lai)
This commit is contained in:
parent
b413cff130
commit
11c6627174
@ -1,3 +1,8 @@
|
||||
Fri Sep 6 20:32:45 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* pixbuf-draw.c: Account for the possibility of detail == NULL
|
||||
(#89561, Hongli Lai)
|
||||
|
||||
Sun Apr 21 14:10:04 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* pixbuf-rc-style.c pixbuf.h pixbuf-draw.c: Add a fake STEPPER
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user