[gnome-devel-docs] tutorials <javascript>: Removes application_id from chapter two



commit 2b5a25512c532ff6a9eac92fe9651b4bd9bfaed2
Author: Taryn Fox <jewelfox fursona net>
Date:   Tue Aug 14 10:38:26 2012 -0400

    tutorials <javascript>: Removes application_id from chapter two

 platform-demos/C/02_welcome_to_the_grid.js.page    |    6 ++----
 platform-demos/C/samples/02_welcome_to_the_grid.js |    4 +---
 2 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/platform-demos/C/02_welcome_to_the_grid.js.page b/platform-demos/C/02_welcome_to_the_grid.js.page
index 1a291cd..c30ac57 100644
--- a/platform-demos/C/02_welcome_to_the_grid.js.page
+++ b/platform-demos/C/02_welcome_to_the_grid.js.page
@@ -53,9 +53,7 @@ const WelcomeToTheGrid = new Lang.Class({
 
     // Create the application itself
     _init: function() {
-        this.application = new Gtk.Application({
-            application_id: 'org.example.jswelcometothegrid'
-        });
+        this.application = new Gtk.Application();
 
         // Connect 'activate' and 'startup' signals to the callback functions
         this.application.connect('activate', Lang.bind(this, this._onActivate));
@@ -73,7 +71,7 @@ const WelcomeToTheGrid = new Lang.Class({
     },
 ]]></code>
     <p>This is the start of the application itself, and the _init function which creates it. It tells _buildUI to create an ApplicationWindow, which we're going to call _window, and it tells our window to present itself whenever needed.</p>
-    <p>This part, again, is pretty much copy-and-paste, but you always want to choose a new application_id each time. Don't be afraid to make it long and descriptive; every GNOME application in the entire world needs a unique one.</p>
+    <p>This part, again, is pretty much copy-and-paste, but you always want to give your application a unique name.</p>
 
     <code mime="text/javascript"><![CDATA[
     // Build the application's UI
diff --git a/platform-demos/C/samples/02_welcome_to_the_grid.js b/platform-demos/C/samples/02_welcome_to_the_grid.js
index c282d66..6d9bd73 100644
--- a/platform-demos/C/samples/02_welcome_to_the_grid.js
+++ b/platform-demos/C/samples/02_welcome_to_the_grid.js
@@ -8,9 +8,7 @@ const WelcomeToTheGrid = new Lang.Class({
 
     // Create the application itself
     _init: function() {
-        this.application = new Gtk.Application({
-            application_id: 'org.example.jswelcometothegrid'
-        });
+        this.application = new Gtk.Application();
 
     // Connect 'activate' and 'startup' signals to the callback functions
     this.application.connect('activate', Lang.bind(this, this._onActivate));



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