Feedback on gnome-devel-demos/3.14/dialog.js.page



Hello,

I was using the sample code and I got the following error

(gjs:10575): Gjs-WARNING **: JS ERROR: TypeError: Gtk.Button.new_from_stock is not a constructor
DialogExample< _createDialog /dialog.js:68
wrapper resource:///org/gnome/gjs/modules/lang.js:169
@./dialog.js:87

the offending line         this._OKButton = new Gtk.Button.new_from_stock (Gtk.STOCK_OK);
should not have the  "new" keyword

Jose G.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]