Class: Kikeru::Window
- Inherits:
-
Gtk::Window
- Object
- Gtk::Window
- Kikeru::Window
- Defined in:
- lib/kikeru/window.rb
Instance Method Summary collapse
- #add_container(container) ⇒ Object
-
#initialize ⇒ Window
constructor
A new instance of Window.
- #load ⇒ Object
Constructor Details
#initialize ⇒ Window
Returns a new instance of Window.
6 7 8 9 |
# File 'lib/kikeru/window.rb', line 6 def initialize super setup end |
Instance Method Details
#add_container(container) ⇒ Object
11 12 13 14 |
# File 'lib/kikeru/window.rb', line 11 def add_container(container) @container = container @file = @container.shift end |
#load ⇒ Object
16 17 18 19 20 21 |
# File 'lib/kikeru/window.rb', line 16 def load stop @playbin.uri = Gst.filename_to_uri(@file) self.title = File.basename(@file) play end |