Class: Scratchpad::MainWindow

Inherits:
Gtk::Window
  • Object
show all
Defined in:
lib/scratchpad.rb

Instance Method Summary collapse

Constructor Details

#initializeMainWindow

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_colormapObject



452
453
454
# File 'lib/scratchpad.rb', line 452

def set_rgba_colormap
  self.colormap = screen.rgba_colormap || screen.rgb_colormap
end