check if column[i].button is valid before calling gtk_widget_intersect on

* gtk/gtkclist.c: check if column[i].button is valid before calling
gtk_widget_intersect on it in gtk_clist_draw

* gtk/gtkdnd.c: removed unused variable empty_bits

* gtk/gtkrc.c: we should use gslist_* functions with GSLists...

* gtk/gtktypeutils.[ch]: makes more send for gtk_type_is_a to return
a boolean (thanks to Elrond for noticing this)

-Yosh
This commit is contained in:
Manish Singh
1998-11-08 05:58:41 +00:00
parent a77c4da512
commit 3c07b7ebbd
14 changed files with 89 additions and 11 deletions

View File

@ -4429,7 +4429,8 @@ gtk_clist_draw (GtkWidget *widget,
{
if (!clist->column[i].visible)
continue;
if (gtk_widget_intersect(clist->column[i].button, area, &child_area))
if (clist->column[i].button &&
gtk_widget_intersect(clist->column[i].button, area, &child_area))
gtk_widget_draw (clist->column[i].button, &child_area);
}
}