GNOME Bugzilla – Bug 623932
The default value of the property 'name' in GtkWidget section should be NULL, but it is empty string ('').
Last modified: 2014-03-28 14:06:13 UTC
The default value of the property 'name' in GtkWidget section should be NULL, but it is empty string (''). Also reported at http://linuxtesting.org/results/report?num=D0156
The link above is not public, how did you find the problem? Do you have unit tests for GTK+?
Created attachment 166451 [details] [review] The default of GtkWidget::name should be "", not NULL
(In reply to comment #1) > The link above is not public, how did you find the problem? > > Do you have unit tests for GTK+? The link to the report at linuxtesting.org should be public now. Yes, a part of our team including Tigran has been working on the tests for GTK+ for some time now. Technically, it is rather functional conformance tests than unit tests in pure sense but it probably does not really matter now. The goal is to have test suites that should check a Linux distro for compliance with the Linux Standard Base (which, in turn, refers to GTK+ reference manuals when GTK+ is concerned). So far, we have released the tests for several libraries including glib, gobject, gdk-pixbuf, atk and others. The tests are now included into the set of certification test suites for the LSB distributed by the Linux Foundation. The source code of the released tests is available in the Bazaar repository: http://bzr.linuxfoundation.org/loggerhead/lsb/devel/t2c-desktop-tests/files Unfortunately, we have not released the tests for gdk yet (due to stabilization and other issues). The tests for gtk are still work in progress. Note that our tests only check the parts of the libraries specified by the LSB and the requirements imposed on the functions from these libraries may be sometimes outdated. Still, the tests have proven useful, they have found inconsistencies in the libraries - the list of the problems found is maintained at http://linuxtesting.org/results/impl_reports If you have any questions concerning the tests we develop, feel free to contact me.
Thank you for the bug report. The default value of the property 'name' in GtkWidget section is NULL since: (''). commit aa209a95faa6374b241ba9d7590a70e554f773d3 Author: Alexander Larsson <alexl@redhat.com> Date: Fri Mar 30 15:46:17 2001 +0000 Remove leaks. 2001-03-30 Alexander Larsson <alexl@redhat.com> * gtk/gtkbutton.c (gtk_button_get_property): * gtk/gtklabel.c: Remove leaks. * gtk/gtkcontainer.c: * gtk/gtkhscale.c: * gtk/gtkhscrollbar.c: * gtk/gtklayout.c: * gtk/gtkmisc.c: * gtk/gtkprogress.c: * gtk/gtkprogressbar.c: * gtk/gtkrange.c: * gtk/gtktable.c: * gtk/gtkviewport.c: * gtk/gtkvscale.c: * gtk/gtkvscrollbar.c: * gtk/gtkwidget.c: Property patches, based on patches from John Margaglione and Lee Mallabone.