GNOME Bugzilla – Bug 722946
[JS] Image Viewer Example Demo Code fault
Last modified: 2014-01-26 11:58:29 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.
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.