Class: Scratchpad::MainWindow
- Inherits:
-
Gtk::Window
- Object
- Gtk::Window
- Scratchpad::MainWindow
- Defined in:
- lib/scratchpad.rb
Instance Method Summary collapse
-
#initialize ⇒ MainWindow
constructor
A new instance of MainWindow.
- #set_rgba_colormap ⇒ Object
Constructor Details
#initialize ⇒ MainWindow
Returns a new instance of MainWindow.
441 442 443 444 445 446 447 448 449 450 |
# File 'lib/scratchpad.rb', line 441 def initialize super() self.title = "Scratchpad" set_rgba_colormap signal_connect('screen-changed') do set_rgba_colormap end end |
Instance Method Details
#set_rgba_colormap ⇒ Object
452 453 454 |
# File 'lib/scratchpad.rb', line 452 def set_rgba_colormap self.colormap = screen.rgba_colormap || screen.rgb_colormap end |