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 772683 - Usage of FALSE instead of gint in glarea demo
Usage of FALSE instead of gint in glarea demo
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
3.22.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-10-10 10:19 UTC by cedlemo
Modified: 2016-10-14 15:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description cedlemo 2016-10-10 10:19:18 UTC
in the gtk-demo file gtk-demo/glarea.c, at the line 336 :

 box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, FALSE);

the documentation says : 
  GtkWidget * gtk_box_new (GtkOrientation orientation, gint spacing);

I do know that FALSE is 0, but :

1.  this code is a demo and it will be read by new users, I think that it can be misleading.
2.  It seems that its the only demo that use FALSE instead of 0 (pb of consistency).


Regards