Class: GerminalTermChooser

Inherits:
Gtk::ScrolledWindow
  • Object
show all
Defined in:
lib/terminal_chooser.rb

Overview

Copyright 2015-2016 Cédric LE MOIGNE, [email protected] This file is part of Germinal.

Germinal is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

Germinal is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Germinal. If not, see <www.gnu.org/licenses/>.

Instance Method Summary collapse

Constructor Details

#initialize(window) ⇒ GerminalTermChooser

Returns a new instance of GerminalTermChooser.



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/terminal_chooser.rb', line 17

def initialize(window)
  super(nil, nil)
  @window = window
  set_size_request( 184, @window.notebook.current.allocation.to_a[3] - 8)
  set_halign(:end)
  set_valign(:center)
  set_name("terminal_chooser")
  
  generate_previews_pixbufs
  generate_grid
  fill_grid

  @box = Gtk::Box.new(:vertical, 4)
  @box.pack_start(@grid, :expand => true, :fill => true, :padding => 4)
  add(@box)
end