[seed-examples] fix gtktreeview example so it works when we show it at gnome.asia...



commit 13cfc3d70f067940282293be5205b511dbdbf2d1
Author: Alan Knowles <alan akbkhome com>
Date:   Sat Jun 9 11:55:10 2012 +0800

    fix gtktreeview example so it works when we show it at gnome.asia...

 gtktextview.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtktextview.js b/gtktextview.js
index 5e80b11..3309978 100755
--- a/gtktextview.js
+++ b/gtktextview.js
@@ -8,10 +8,11 @@ var buffer = view.buffer;
 
 window.signal.hide.connect(Gtk.main_quit);
 
-var begin = new Gtk.TextIter();
-buffer.get_start_iter (begin);
+var ret_begin = {}
 
-buffer.insert(begin, "Hello GtkTextView world.", -1);
+buffer.get_start_iter (ret_begin);
+
+buffer.insert(ret_begin.iter, "Hello GtkTextView world.", -1);
 
 window.add(view);
 window.show_all();



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