Gtk::Text is deprecated (apparently) so now how does this tutorial work?

Some great tutorials out there that are a bit difficult to learn from if these things keep getting deprecated. Ugh. Can anyone offer some guidance on what the current way to do the following is in Gtk2?

Regards, Abe

require 'Gtk2'
Gtk.init

window = Gtk::Window.new

vadj = Gtk::Adjustment.new(0,0,0,0,0,0)
text = Gtk::Text.new(nil, vadj)
vs = Gtk::VScrollbar.new(vadj)

text.set_editable true

hbox = Gtk::HBox.new(false, 0)
hbox.pack_start text, true, true, 0
hbox.pack_start vs, false, false, 0

window.add hbox
text.show
vs.show
hbox.show
window.show
Gtk.main