Files
metasploit-gs/lib/msf/ui/gtk2/dialog/error.rb
T
Ramon de C Valle f124597a56 Code cleanups
git-svn-id: file:///home/svn/framework3/trunk@5773 4d416f70-5f16-0410-b530-b9f4589650da
2008-10-19 21:03:39 +00:00

27 lines
630 B
Ruby

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
end
end
end
end