GNOME Bugzilla – Bug 607661
The 0 value should be excluded from allowed values range of the function gtk_table_new()
Last modified: 2010-07-10 01:42:20 UTC
According to the documentation the first two arguments of the function gtk_table_new() must be in the range 0 ..65535. But the 0 value for both arguments doesn't have any meaning. Also reported at http://linuxtesting.org/results/report?num=D0147
> But the 0 value for both arguments doesn't have any meaning. google codesearch reveals there are in fact many instances of passing 0 for one or both of these args out there. (The code in gtk_table_new() just uses 1 if passed 0.) So for API compat, passing 0 needs to continue to be accepted here. [BTW: the link doesn't work.]
There is no need to change the source code because of compatibality reason, but it would be better to change the documentation to not confuse the programmers.
Created attachment 152567 [details] [review] Update table documentation to say "in the range of 1...65535"
Would be good to add something like "For historical reasons, 0 is accepted as well and is silently interpreted as 1.".