class ClipboardManager::NoYes

Public Class Methods

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

Public Instance Methods

label(key) click to toggle source
# File lib/clipboard_manager/clipboard_manager.rb, line 19
def label(key)
  Such::Label.new child, key
end
ok?() click to toggle source
# File lib/clipboard_manager/clipboard_manager.rb, line 23
def ok?
  show_all
  response = run
  destroy
  response == Gtk::ResponseType::OK
end