Dont write to stdout, it kills rubyw

git-svn-id: file:///home/svn/framework3/trunk@5267 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2008-01-02 06:31:14 +00:00
parent 039d9f6c6a
commit a14b47fa06
2 changed files with 4 additions and 4 deletions

View File

@ -23,15 +23,15 @@ module Msf
rebuild = Gtk::Button.new(Gtk::Stock::EXECUTE)
test.signal_connect('clicked') do
p "perform a test database connection"
MsfDialog::Error.new($gtk2driver.main, "Not available")
end
modify.signal_connect('clicked') do
p 'launch a wizard for database configuration'
MsfDialog::Error.new($gtk2driver.main, "Not available")
end
rebuild.signal_connect('clicked') do
p 'rebuild database'
MsfDialog::Error.new($gtk2driver.main, "Not available")
end
bb.pack_start(test, false, false)

View File

@ -16,7 +16,7 @@ module Msf
buttons = [ Gtk::Stock::OK, Gtk::Dialog::RESPONSE_OK ], [ Gtk::Stock::CLOSE, Gtk::Dialog::RESPONSE_NONE ]
# call the parent
super("", $gtk2driver.main, Gtk::Dialog::DESTROY_WITH_PARENT, *buttons)
super("Preferences", $gtk2driver.main, Gtk::Dialog::DESTROY_WITH_PARENT, *buttons)
self.default_response = Gtk::Dialog::RESPONSE_OK
# Define the size and border