[gnome-devel-docs] Missing Gtk import in Hello World javascript example
- From: Tiffany Antopolski <antopolski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] Missing Gtk import in Hello World javascript example
- Date: Thu, 19 Jul 2012 23:02:38 +0000 (UTC)
commit 9cb830f1151280428bf439046724d6769d87cad7
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date: Thu Jul 19 19:00:30 2012 -0400
Missing Gtk import in Hello World javascript example
This fixes bug #680246
platform-demos/C/helloWorld.js.page | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/platform-demos/C/helloWorld.js.page b/platform-demos/C/helloWorld.js.page
index 8bff7a6..316e17e 100644
--- a/platform-demos/C/helloWorld.js.page
+++ b/platform-demos/C/helloWorld.js.page
@@ -84,6 +84,9 @@ Gtk.main();]]></code>
//The previous line is a hash bang which tells how to run the script.
// Note that the script has to be executable (run in terminal in the right folder: chmod +x scriptname)
+// Import the GTK+ library
+var Gtk = imports.gi.Gtk;
+
// Initialize GTK+
Gtk.init(null, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]