90 |
90 |
w_wrap = ::Gtk::DrawingArea.new
|
91 |
91 |
w_toolbar = ::Gtk::Toolbar.new
|
92 |
92 |
w_browser = ::Gtk::ToolButton.new(Gtk::Image.new(Gdk::Pixbuf.new(Skin.get('forward.png'), 24, 24)))
|
|
93 |
w_close_button = ::Gtk::ToolButton.new(Gtk::Image.new(Gdk::Pixbuf.new(Skin.get('close.png'), 24, 24)))
|
93 |
94 |
|
94 |
95 |
window.ssc(:destroy, &:destroy)
|
95 |
96 |
last_size = nil
|
... | ... | |
104 |
105 |
w_browser.ssc(:clicked) do
|
105 |
106 |
Gtk.openurl(display_url)
|
106 |
107 |
false end
|
|
108 |
w_close_button.ssc(:clicked) do
|
|
109 |
window.destroy
|
|
110 |
false end
|
107 |
111 |
|
108 |
112 |
w_toolbar.insert(0, w_browser)
|
|
113 |
w_toolbar.insert(0, w_close_button)
|
109 |
114 |
window.add(Gtk::VBox.new.closeup(w_toolbar).add(w_wrap))
|
110 |
115 |
notice 'loading thread generate'
|
111 |
116 |
Thread.new {
|