class Alexandria::UI::ErrorDialog
Public Class Methods
new(parent, title, message = nil)
click to toggle source
Calls superclass method
Alexandria::UI::AlertDialog::new
# File lib/alexandria/ui/error_dialog.rb, line 12 def initialize(parent, title, message = nil) super(parent, title, Gtk::Stock::DIALOG_ERROR, [[Gtk::Stock::OK, :ok]], message) # FIXME: Should accept just :ok dialog.default_response = Gtk::ResponseType::OK end
Public Instance Methods
display()
click to toggle source
# File lib/alexandria/ui/error_dialog.rb, line 19 def display show_all && run destroy end