seed r553 - trunk/doc/tutorial-standalone
- From: hortont svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r553 - trunk/doc/tutorial-standalone
- Date: Tue, 23 Dec 2008 09:40:05 +0000 (UTC)
Author: hortont
Date: Tue Dec 23 09:40:05 2008
New Revision: 553
URL: http://svn.gnome.org/viewvc/seed?rev=553&view=rev
Log:
Robb and I are trying to come up with a consistent and pretty ... style to follow from now on.
Modified:
trunk/doc/tutorial-standalone/1.js
Modified: trunk/doc/tutorial-standalone/1.js
==============================================================================
--- trunk/doc/tutorial-standalone/1.js (original)
+++ trunk/doc/tutorial-standalone/1.js Tue Dec 23 09:40:05 2008
@@ -10,33 +10,38 @@
{
var urlBar = new Gtk.Entry();
- var back = new Gtk.ToolButton({stock_id:"gtk-go-back"});
- var forward = new Gtk.ToolButton({stock_id:"gtk-go-forward"});
- var refresh = new Gtk.ToolButton({stock_id:"gtk-refresh"});
-
- back.signal.clicked.connect(function ()
+ 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 = function ()
{
Seed.print("back");
- });
+ }
- forward.signal.clicked.connect(function ()
+ var forward = function ()
{
Seed.print("forward");
- });
+ }
- refresh.signal.clicked.connect(function ()
+ var refresh = function ()
{
Seed.print("refresh");
- });
+ }
- urlBar.signal.activate.connect(function ()
+ var browse = function ()
{
Seed.print("browse");
- });
+ }
- this.pack_start(back);
- this.pack_start(forward);
- this.pack_start(refresh);
+ 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);
this.pack_start(urlBar, true, true);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]