def initialize
super(true, "testGNOME", "HRef test")
vbox = Gtk::VBox.new(false, 5)
vbox.border_width = 5
set_contents(vbox)
@href = Gnome::HRef.new("http://www.gnome.org/", "Gnome Website")
vbox.pack_start(@href, false, false, 0)
wid = Gtk::HSeparator.new
vbox.pack_start(wid, true, false, 0)
wid = Gtk::Label.new(
"The launch behaviour of the\nconfigured with the control center");
vbox.pack_start(wid, true, false, 0)
@url_ent = Gtk::Entry.new()
@url_ent.set_text("http://www.gnome.org/")
vbox.pack_start(@url_ent, true, true, 0)
@label_ent = Gtk::Entry.new()
@label_ent.set_text("Gnome Website")
vbox.pack_start(@label_ent, true, true, 0)
wid = Gtk::Button.new("set href props");
wid.signal_connect("clicked") { href_cb }
vbox.pack_start(wid, true, true, 0)
show_all
end