Class: Alexandria::UI::ErrorDialog

Inherits:
AlertDialog
  • Object
show all
Defined in:
lib/alexandria/ui/dialogs/alert_dialog.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent, title, message = nil) ⇒ ErrorDialog

Returns a new instance of ErrorDialog.



62
63
64
65
66
67
68
69
# File 'lib/alexandria/ui/dialogs/alert_dialog.rb', line 62

def initialize(parent, title, message = nil)
  super(parent, title, Gtk::Stock::DIALOG_ERROR,
        [[Gtk::Stock::OK, :ok]], message)
  # FIXME: Should accept just :ok
  self.default_response = Gtk::ResponseType::OK
  show_all && run
  destroy
end