[seed] Add a GtkTextView example
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] Add a GtkTextView example
- Date: Fri, 24 Apr 2009 03:03:29 -0400 (EDT)
commit 8e97448f5a04b235457541407f49ec5a7f5065aa
Author: Robert Carr <racarr svn gnome org>
Date: Fri Apr 24 03:02:52 2009 -0400
Add a GtkTextView example
---
examples/gtktextview.js | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/examples/gtktextview.js b/examples/gtktextview.js
new file mode 100755
index 0000000..c750a64
--- /dev/null
+++ b/examples/gtktextview.js
@@ -0,0 +1,19 @@
+#!/usr/local/bin/seed
+Gtk = imports.gi.Gtk;
+Gtk.init (null, null);
+
+var window = new Gtk.Window();
+var view = new Gtk.TextView();
+var buffer = view.buffer;
+
+var begin = new Gtk.TextIter();
+buffer.get_start_iter (begin);
+
+buffer.insert (begin, "Hello GtkTextView world.", -1);
+
+window.add(view);
+window.show_all();
+window.resize (300, 300);
+
+Gtk.main(0);
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]