Class: GloudApp::ErrorDialog
- Inherits:
-
Gtk::MessageDialog
- Object
- Gtk::MessageDialog
- GloudApp::ErrorDialog
- Defined in:
- lib/gloudapp.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(title, message) ⇒ ErrorDialog
constructor
A new instance of ErrorDialog.
Constructor Details
#initialize(title, message) ⇒ ErrorDialog
Returns a new instance of ErrorDialog.
351 352 353 354 355 356 357 358 359 |
# File 'lib/gloudapp.rb', line 351 def initialize(title, ) super(nil, Gtk::Dialog::MODAL, Gtk::MessageDialog::ERROR, Gtk::MessageDialog::BUTTONS_CLOSE, ) self.icon = GloudApp::Icon.normal self.title = title end |
Class Method Details
.run!(title, message) ⇒ Object
361 362 363 364 365 |
# File 'lib/gloudapp.rb', line 361 def self.run!(title, ) instance = self.new(title, ) instance.run instance.destroy end |