Class: Smartdict::Gui::WordList::ListColumn

Inherits:
Gtk::TreeViewColumn
  • Object
show all
Defined in:
lib/smartdict/gui/word_list.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title) ⇒ ListColumn

Returns a new instance of ListColumn.



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/smartdict/gui/word_list.rb', line 9

def initialize(title)
  column_id = self.class.column_counter
  self.class.column_counter += 1

  super(title, Gtk::CellRendererText.new, :text => column_id)       # call to base class

  # set options of column
  self.resizable      = true
  self.clickable      = true
  self.reorderable    = false
end

Class Attribute Details

.column_counterObject

Returns the value of attribute column_counter.



5
6
7
# File 'lib/smartdict/gui/word_list.rb', line 5

def column_counter
  @column_counter
end