Class: Gtk2AppLib::Widgets::CheckButton

Inherits:
Object
  • Object
show all
Defined in:
lib/gtk2applib/widgets/check_button.rb

Overview

I'm a button!

Instance Method Summary (collapse)

Instance Method Details

- (Object) label=(txt, font = self.options[:modify_font])

preserves font state



16
17
18
19
# File 'lib/gtk2applib/widgets/check_button.rb', line 16

def label=(txt, font=self.options[:modify_font])
  super(txt)
  modify_font(font) if !font.nil?
end

- (Object) modify_font(font)

Note that method modify_font is implemented to work as expected.



9
10
11
# File 'lib/gtk2applib/widgets/check_button.rb', line 9

def modify_font(font)
  self.child.modify_font(font)
end