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 722946 - [JS] Image Viewer Example Demo Code fault
[JS] Image Viewer Example Demo Code fault
Status: RESOLVED FIXED
Product: gnome-devel-docs
Classification: Applications
Component: platform-demos
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-devel-docs maintainers
gnome-devel-docs maintainers
Depends on:
Blocks:
 
 
Reported: 2014-01-25 01:14 UTC by Peter E
Modified: 2014-01-26 11:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Peter E 2014-01-25 01:14:22 UTC
Hey as I don't know whether I categorized this correctly, I'm talking about this site:
https://developer.gnome.org/gnome-devel-demos/unstable/image-viewer.js.html.en

The example code in the "Adding classes" section on line 14 is
"Gtk.init (0, null);"
However this, at least for me, causes a crash with following error:
(gjs:29482): Gjs-WARNING **: JS ERROR: Error: Expected type utf8 for Argument 'argv' but got type 'number'
I am only just taking the tutorial, however I'm pretty sure it should be
"Gtk.init (null, null);"
Just like the code snippet in the previous section.
Whoever does, thanks for fixing.
Comment 1 David King 2014-01-26 11:58:29 UTC
Thanks for the bug report. I fixed this in master as commit 3b8820383c285e581bd7ed967089ae3e0c4b7f42. It will be fixed on the website when a new release of gnome-devel-docs is made, which should happen within the next week.