Class: Smartdict::Gui::WordList::ListColumn
- Inherits:
-
Gtk::TreeViewColumn
- Object
- Gtk::TreeViewColumn
- Smartdict::Gui::WordList::ListColumn
- Defined in:
- lib/smartdict/gui/word_list.rb
Class Attribute Summary collapse
-
.column_counter ⇒ Object
Returns the value of attribute column_counter.
Instance Method Summary collapse
-
#initialize(title) ⇒ ListColumn
constructor
A new instance of ListColumn.
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_counter ⇒ Object
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 |