[gnome-devel-docs] platform-demos: Fix dialog.js example



commit 167b4ed6880ca3dc5c09f6180298acac63453c5a
Author: David King <amigadave amigadave com>
Date:   Thu Dec 18 22:11:02 2014 +0000

    platform-demos: Fix dialog.js example
    
    https://mail.gnome.org/archives/docs-feedback/2014-December/msg00014.html

 platform-demos/C/samples/dialog.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/platform-demos/C/samples/dialog.js b/platform-demos/C/samples/dialog.js
index 83bd381..2867b23 100644
--- a/platform-demos/C/samples/dialog.js
+++ b/platform-demos/C/samples/dialog.js
@@ -65,7 +65,7 @@ const DialogExample = new Lang.Class ({
 
         // Create the dialog's action area, which contains a stock OK button
         this._actionArea = this._dialog.get_action_area();
-        this._OKButton = new Gtk.Button.new_from_stock (Gtk.STOCK_OK);
+        this._OKButton = Gtk.Button.new_from_stock (Gtk.STOCK_OK);
         this._actionArea.add (this._OKButton);
 
         // Connect the button to the function that handles what it does


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