Class: GtkApp::Drawer

Inherits:
Gtk::Window
  • Object
show all
Defined in:
lib/gtk_app/drawer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent, view) ⇒ Drawer

, builder_file)



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/gtk_app/drawer.rb', line 5

def initialize(parent, view)#, builder_file)
  @parent = parent
  # super(controller, builder_file)
  super(Gtk::Window::POPUP)
  p view.objects
  add_child(view, view.vboxMain)

  # TODO: normalize the following setup
  decorated = false
  # app_paintable = true
  resizable = true
  visible = true
  
  setup_signals
  show_all # TODO: replace with slide out/in methods
end

Instance Attribute Details

#parentObject (readonly)

Returns the value of attribute parent.



3
4
5
# File 'lib/gtk_app/drawer.rb', line 3

def parent
  @parent
end