Class: GloudApp::ErrorDialog

Inherits:
Gtk::MessageDialog
  • Object
show all
Defined in:
lib/gloudapp.rb

Class Method Summary collapse

Instance Method Summary collapse

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, message)
	super(nil,
		Gtk::Dialog::MODAL, 
		Gtk::MessageDialog::ERROR,
		Gtk::MessageDialog::BUTTONS_CLOSE, 
		message)
	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, message)
	instance = self.new(title, message)
	instance.run
	instance.destroy
end