class ClipboardManager::CancelOk

Public Class Methods

new(key) click to toggle source
Calls superclass method
# File lib/clipboard_manager/clipboard_manager.rb, line 32
def initialize(key)
  super
  add_button(Gtk::Stock::CANCEL, Gtk::ResponseType::CANCEL)
  add_button(Gtk::Stock::OK, Gtk::ResponseType::OK)
end

Public Instance Methods

combo(key) click to toggle source
# File lib/clipboard_manager/clipboard_manager.rb, line 38
def combo(key)
  Such::ComboBoxText.new child, key
end
runs() { || ... } click to toggle source
# File lib/clipboard_manager/clipboard_manager.rb, line 42
def runs
  show_all
  response = run
  yield if response == Gtk::ResponseType::OK
  destroy
end