class Gtk::KeyConfig

Attributes

change_hook[RW]
keycode[R]
title[RW]

Public Class Methods

new(title, default_key="", *args) click to toggle source
Calls superclass method
# File core/mui/gtk_keyconfig.rb, line 9
def initialize(title, default_key="", *args)
  mainthread_only
  @title = title
  if(default_key.respond_to?(:to_s))
    self.keycode = default_key.to_s
  else
    self.keycode = '' end
  @change_hook = nil
  super(*args)
  self.add(buttonlabel)
  self.signal_connect('clicked', &method(:clicked_event))
end

Public Instance Methods

buttonlabel() click to toggle source
# File core/mui/gtk_keyconfig.rb, line 22
def buttonlabel
  @buttonlabel ||= Gtk::Label.new(keycode) end
keycode=(other) click to toggle source
# File core/mui/gtk_keyconfig.rb, line 26
def keycode=(other)
  type_strict other => String
  @keycode = other
end