[maemo-developers] [maemo-developers] Bug in the maemo GTK+ patches

From: Johan Bilien jobi at via.ecp.fr
Date: Wed Aug 24 20:09:24 EEST 2005
Hi,

I post it here because there is no GTK+ component in the bugzilla. 

When playing with gtkmm for minisip, I've encountered a crash using
the maemo version of GTK+ which does not occur on upstream GTK+. 

The included test program results in a division by zero. This occurs
when a notebook has no more visible elements. 

In the patch applied to gtknotebook.c, an ideal_tab_width is computed
by dividing the width by the number of visible tabs, which can be zero.

Having

- ideal_tab_width = (total_width / n);
+ ideal_tab_width = n?0:(total_width / n);

or something similar is necessary.

Regards,
-- 
Johan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-csrc
Size: 409 bytes
Desc: not available
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20050824/95219260/attachment.c 
More information about the maemo-developers mailing list