class Alexandria::UI::SkipEntryDialog
Public Class Methods
new(parent, message)
click to toggle source
Calls superclass method
Alexandria::UI::AlertDialog::new
# File lib/alexandria/ui/skip_entry_dialog.rb, line 16 def initialize(parent, message) super(parent, _("Error while importing"), Gtk::Stock::DIALOG_QUESTION, [[Gtk::Stock::CANCEL, Gtk::ResponseType::CANCEL], [_("_Continue"), Gtk::ResponseType::OK]], message) log.debug { "Opened SkipEntryDialog #{inspect}" } dialog.default_response = Gtk::ResponseType::CANCEL end
Public Instance Methods
continue?()
click to toggle source
# File lib/alexandria/ui/skip_entry_dialog.rb, line 26 def continue? show_all && (@response = run) destroy @response == Gtk::ResponseType::OK end