seed r525 - trunk/examples



Author: hortont
Date: Sat Dec 20 21:31:06 2008
New Revision: 525
URL: http://svn.gnome.org/viewvc/seed?rev=525&view=rev

Log:
Don't just connect to main_quit. Need a return value (or default).


Modified:
   trunk/examples/actions.js
   trunk/examples/json-packing.js
   trunk/examples/poppler.js

Modified: trunk/examples/actions.js
==============================================================================
--- trunk/examples/actions.js	(original)
+++ trunk/examples/actions.js	Sat Dec 20 21:31:06 2008
@@ -5,7 +5,7 @@
 with(Gtk)
 {
 	window = new Window();
-	window.signal.hide.connect(main_quit);
+	window.signal.hide.connect(function () { main_quit() });
 	toolbar = new Toolbar();
 	vbox = new VBox();
 	window.add(vbox);

Modified: trunk/examples/json-packing.js
==============================================================================
--- trunk/examples/json-packing.js	(original)
+++ trunk/examples/json-packing.js	Sat Dec 20 21:31:06 2008
@@ -19,7 +19,7 @@
 	];
 
 window = new Gtk.Window();
-window.signal.hide.connect(Gtk.main_quit);
+window.signal.hide.connect(function () {Gtk.main_quit()});
 vbox = new Gtk.VBox();
 
 vbox.pack(packing);

Modified: trunk/examples/poppler.js
==============================================================================
--- trunk/examples/poppler.js	(original)
+++ trunk/examples/poppler.js	Sat Dec 20 21:31:06 2008
@@ -138,7 +138,7 @@
 main_vbox.pack_start(toolbar);
 main_vbox.pack_start(drawing_area, true, true);
 
-window.signal.hide.connect(Gtk.main_quit);
+window.signal.hide.connect(function () {Gtk.main_quit()});
 
 window.show_all();
 window.resize(600,800);



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