After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 623932 - The default value of the property 'name' in GtkWidget section should be NULL, but it is empty string ('').
The default value of the property 'name' in GtkWidget section should be NULL,...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.21.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-07-09 10:37 UTC by tigran
Modified: 2014-03-28 14:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The default of GtkWidget::name should be "", not NULL (799 bytes, patch)
2010-07-23 14:26 UTC, Christian Dywan
none Details | Review

Description tigran 2010-07-09 10:37:09 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
Comment 1 Christian Dywan 2010-07-23 14:25:28 UTC
The link above is not public, how did you find the problem?

Do you have unit tests for GTK+?
Comment 2 Christian Dywan 2010-07-23 14:26:22 UTC
Created attachment 166451 [details] [review]
The default of GtkWidget::name should be "", not NULL
Comment 3 Eugene Shatokhin 2010-08-24 08:15:00 UTC
(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.
Comment 4 Javier Jardón (IRC: jjardon) 2014-03-28 14:06:13 UTC
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.