gjs r20 - trunk/examples
- From: hp svn gnome org
- To: svn-commits-list gnome org
- Subject: gjs r20 - trunk/examples
- Date: Sun, 12 Oct 2008 19:49:26 +0000 (UTC)
Author: hp
Date: Sun Oct 12 19:49:26 2008
New Revision: 20
URL: http://svn.gnome.org/viewvc/gjs?rev=20&view=rev
Log:
add missing semicolons
Modified:
trunk/examples/gtk.js
Modified: trunk/examples/gtk.js
==============================================================================
--- trunk/examples/gtk.js (original)
+++ trunk/examples/gtk.js Sun Oct 12 19:49:26 2008
@@ -41,7 +41,7 @@
win.connect("destroy", onDestroy);
// Sets the border width of the window.
-win.set_border_width(10)
+win.set_border_width(10);
// Creates a new button with the label "Hello World".
let button = new Gtk.Button({ label: "Hello World" });
@@ -58,14 +58,15 @@
});
// This packs the button into the window (a GTK container).
-win.add(button)
+win.add(button);
// The final step is to display this newly created widget.
-button.show()
+button.show();
// and the window
-win.show()
+win.show();
// All gtk applications must have a Gtk.main(). Control ends here
// and waits for an event to occur (like a key press or mouse event).
Gtk.main();
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]