class Gtk2CheckBoxes::EntryDialog

Public Class Methods

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

Public Instance Methods

entry(*par) click to toggle source
# File lib/gtk2checkboxes/gtk2checkboxes.rb, line 28
def entry(*par)
  @entry = Such::Entry.new child, *par
end
text() click to toggle source
# File lib/gtk2checkboxes/gtk2checkboxes.rb, line 32
def text
  show_all
  text = (run == Gtk::ResponseType::OK)? @entry.text : nil
  destroy
  text
end