class Gtk2ToDoApp::EditTaskDialog
Public Class Methods
new(parent, text='')
click to toggle source
Calls superclass method
# File lib/gtk2todoapp/gui.rb, line 51 def initialize(parent, text='') super([parent: parent], :edit_task_dialog) @entry = Such::Entry.new(child, {set_text: text}, :edit_task_entry) add_button(Gtk::Stock::CANCEL, Gtk::ResponseType::CANCEL) add_button(Gtk::Stock::OK, Gtk::ResponseType::OK) end
Public Instance Methods
runs()
click to toggle source
# File lib/gtk2todoapp/gui.rb, line 58 def runs self.show_all response = (run==Gtk::ResponseType::OK)? @entry.text : nil destroy return response end