[maemo-developers] sapwood big
From: Xan xan.lopez at gmail.comDate: Fri Aug 17 23:11:59 EEST 2007
- Previous message: sapwood big
- Next message: sapwood bug
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 8/7/07, Li, Frank <frank.li at intel.com> wrote: > Tommi: > > I found a problem at draw_shadow function of sapwood-draw.c > file. > gtk_clist_expose will call gtk_draw_shadow (); Then > gtk_draw_shadow will call style->draw_shadow, which is point to > draw_shadow function of sapwood-draw. > This will pass widget = NULL to draw_shadow function. At > draw_simple_image function, line 249: widget->parent. Segment fault will > happen because widget is zero at that time. > I suggest add > g_return_if_fail(widget != NULL) at begin of draw_shadow > function. Hey, I'm not really Tommi, he will be back from holidays on monday, but anyway: Seems all the (deprecated) gtk_draw_* functions pass NULL for widget, area and detail, but considering the gtk_paint_* functions warn that those parameters might be NULL it wouldn't be too far fetched to check for it. Thanks for your report! Cheers, Xan > > Best regards > Frank Li > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers >
- Previous message: sapwood big
- Next message: sapwood bug
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]