[gnome-devel-docs] Removed 'app' parameter from BuildUI and Startup functions.



commit 6d538ad5fd22c3bcf8a446e92ee934be221ea34d
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date:   Wed May 2 14:56:44 2012 -0400

    Removed 'app' parameter from BuildUI and Startup functions.

 platform-demos/C/samples/GtkApplicationWindow.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/platform-demos/C/samples/GtkApplicationWindow.js b/platform-demos/C/samples/GtkApplicationWindow.js
index 24d69f1..aa2eaaf 100644
--- a/platform-demos/C/samples/GtkApplicationWindow.js
+++ b/platform-demos/C/samples/GtkApplicationWindow.js
@@ -21,8 +21,8 @@ const Application = new Lang.Class ({
     },
 
     //create the UI (in this case it's just the ApplicationWindow
-    _buildUI: function (app) {
-        this._window = new Gtk.ApplicationWindow  ({ application: app,
+    _buildUI: function () {
+        this._window = new Gtk.ApplicationWindow  ({ application: this.application,
                                                    window_position: Gtk.WindowPosition.CENTER,
                                                    title: "Welcome to GNOME" });
 
@@ -39,8 +39,8 @@ const Application = new Lang.Class ({
     },
 
     //callback function for 'startup' signal
-    _onStartup: function (app) {
-        this._buildUI (app);
+    _onStartup: function () {
+        this._buildUI ();
     }
 });
 



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