i am using ruby-gtk. There is a notebook in my application. I added
textView to scrolledWindow. I want to get textView buffer. My some code
editor = Textview.new
swin = Gtk::ScrolledWindow.new
tab = Gtk::Notebook.new
swin.add(editor)
tab.append_page(swin, Gtk::Label.new("Tab")
tab.get_nth_page(current_page).buffer # wrong because its contain is a
scrolledWindow
How can i get editor buffer?
on 2013-02-17 11:11
on 2013-02-17 13:10
Change tab.get_nth_page(current_page).buffer to tab.get_nth_page(current_tab).child.buffer And that should work. On Sun, Feb 17, 2013 at 5:11 AM, Ebru Akagunduz < ruby-forum-incoming@andreas-s.net> wrote: > > leadership blogs to news, videos, case studies, tutorials, tech docs, > whitepapers, evaluation guides, and opinion stories. Check out the most > recent posts - join the conversation now. > http://goparallel.sourceforge.net/ > _______________________________________________ > ruby-gnome2-devel-en mailing list > ruby-gnome2-devel-en@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ruby-... > -- Mario Steele Fleet Captain CO - Geo 99 CO - USS T'hy'la XO - Diplomatic Corps - Second Life http://www.iftcommand.com/chapters/thyla/ http://www.trekfederation.com
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.