seed r557 - trunk/doc/tutorial-standalone
- From: hortont svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r557 - trunk/doc/tutorial-standalone
- Date: Wed, 24 Dec 2008 01:47:27 +0000 (UTC)
Author: hortont
Date: Wed Dec 24 01:47:27 2008
New Revision: 557
URL: http://svn.gnome.org/viewvc/seed?rev=557&view=rev
Log:
Standardize on underscores, not camelCase
Modified:
trunk/doc/tutorial-standalone/1.js
trunk/doc/tutorial-standalone/2.js
Modified: trunk/doc/tutorial-standalone/1.js
==============================================================================
--- trunk/doc/tutorial-standalone/1.js (original)
+++ trunk/doc/tutorial-standalone/1.js Wed Dec 24 01:47:27 2008
@@ -8,11 +8,11 @@
name: "BrowserToolbar",
instance_init: function(klass)
{
- var urlBar = new Gtk.Entry();
+ var url_bar = new Gtk.Entry();
- var backButton = new Gtk.ToolButton({stock_id:"gtk-go-back"});
- var forwardButton = new Gtk.ToolButton({stock_id:"gtk-go-forward"});
- var refreshButton = new Gtk.ToolButton({stock_id:"gtk-refresh"});
+ var back_button = new Gtk.ToolButton({stock_id:"gtk-go-back"});
+ var forward_button = new Gtk.ToolButton({stock_id:"gtk-go-forward"});
+ var refresh_button = new Gtk.ToolButton({stock_id:"gtk-refresh"});
var back = function ()
{
@@ -34,16 +34,16 @@
Seed.print("browse");
}
- backButton.signal.clicked.connect(back);
- forwardButton.signal.clicked.connect(forward);
- refreshButton.signal.clicked.connect(refresh);
- urlBar.signal.activate.connect(browse);
-
- this.pack_start(backButton);
- this.pack_start(forwardButton);
- this.pack_start(refreshButton);
+ back_button.signal.clicked.connect(back);
+ forward_button.signal.clicked.connect(forward);
+ refresh_button.signal.clicked.connect(refresh);
+ url_bar.signal.activate.connect(browse);
+
+ this.pack_start(back_button);
+ this.pack_start(forward_button);
+ this.pack_start(refresh_button);
- this.pack_start(urlBar, true, true);
+ this.pack_start(url_bar, true, true);
}
});
Modified: trunk/doc/tutorial-standalone/2.js
==============================================================================
--- trunk/doc/tutorial-standalone/2.js (original)
+++ trunk/doc/tutorial-standalone/2.js Wed Dec 24 01:47:27 2008
@@ -10,10 +10,10 @@
instance_init: function(klass)
{
var toolbar = new BrowserToolbar();
- var webView = new BrowserView();
+ var web_view = new BrowserView();
this.pack_start(toolbar);
- this.pack_start(webView, true, true);
+ this.pack_start(web_view, true, true);
}
});
@@ -31,11 +31,11 @@
name: "BrowserToolbar",
instance_init: function(klass)
{
- var urlBar = new Gtk.Entry();
+ var url_bar = new Gtk.Entry();
- var backButton = new Gtk.ToolButton({stock_id:"gtk-go-back"});
- var forwardButton = new Gtk.ToolButton({stock_id:"gtk-go-forward"});
- var refreshButton = new Gtk.ToolButton({stock_id:"gtk-refresh"});
+ var back_button = new Gtk.ToolButton({stock_id:"gtk-go-back"});
+ var forward_button = new Gtk.ToolButton({stock_id:"gtk-go-forward"});
+ var refresh_button = new Gtk.ToolButton({stock_id:"gtk-refresh"});
var back = function ()
{
@@ -57,16 +57,16 @@
Seed.print("browse");
}
- backButton.signal.clicked.connect(back);
- forwardButton.signal.clicked.connect(forward);
- refreshButton.signal.clicked.connect(refresh);
- urlBar.signal.activate.connect(browse);
-
- this.pack_start(backButton);
- this.pack_start(forwardButton);
- this.pack_start(refreshButton);
+ back_button.signal.clicked.connect(back);
+ forward_button.signal.clicked.connect(forward);
+ refresh_button.signal.clicked.connect(refresh);
+ url_bar.signal.activate.connect(browse);
+
+ this.pack_start(back_button);
+ this.pack_start(forward_button);
+ this.pack_start(refresh_button);
- this.pack_start(urlBar, true, true);
+ this.pack_start(url_bar, true, true);
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]