Class: Alexandria::UI::ErrorDialog
- Inherits:
-
AlertDialog
- Object
- Gtk::Dialog
- AlertDialog
- Alexandria::UI::ErrorDialog
- Defined in:
- lib/alexandria/ui/dialogs/alert_dialog.rb
Instance Method Summary collapse
-
#initialize(parent, title, message = nil) ⇒ ErrorDialog
constructor
A new instance of ErrorDialog.
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, = nil) super(parent, title, Gtk::Stock::DIALOG_ERROR, [[Gtk::Stock::OK, :ok]], ) # FIXME: Should accept just :ok self.default_response = Gtk::ResponseType::OK show_all && run destroy end |