How can i get textView in the scrolledWindow?

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?

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 A. <
[email protected]> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en


Mario S.
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

Thank you :slight_smile: It works

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs