class Gtk2ToDoApp::DeleteTaskDialog
Public Class Methods
new(parent, text)
click to toggle source
Calls superclass method
# File lib/gtk2todoapp/gui.rb, line 35 def initialize(parent, text) super([parent: parent], :delete_task_dialog) Such::Label.new(child, [text], :delete_task_label) 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 42 def runs self.show_all response = (run==Gtk::ResponseType::OK) destroy return response end