2007-05-12 16:36:36 +00:00
|
|
|
module Msf
|
|
|
|
module Ui
|
|
|
|
module Gtk2
|
|
|
|
|
|
|
|
class MsfDialog
|
|
|
|
##
|
|
|
|
# Display an error Gtk style
|
|
|
|
# parent: the Gtk parent widget
|
|
|
|
# title: the error title
|
|
|
|
# message: the error
|
|
|
|
##
|
|
|
|
class Error < Msf::Ui::Gtk2::SkeletonAlert
|
|
|
|
def initialize(parent, title, message=nil)
|
|
|
|
super(parent, title, Gtk::Stock::DIALOG_ERROR,
|
|
|
|
[[Gtk::Stock::OK, Gtk::Dialog::RESPONSE_OK]],
|
|
|
|
message)
|
|
|
|
self.default_response = Gtk::Dialog::RESPONSE_OK
|
|
|
|
show_all and run
|
|
|
|
destroy
|
|
|
|
end
|
|
|
|
end
|
2007-05-19 23:34:52 +00:00
|
|
|
|
2007-05-12 16:36:36 +00:00
|
|
|
end
|
2007-05-19 23:34:52 +00:00
|
|
|
|
2007-05-12 16:36:36 +00:00
|
|
|
end
|
|
|
|
end
|
2008-10-19 21:03:39 +00:00
|
|
|
end
|