From a14b47fa0693ded8ada0267da4868d1b6b0c52e0 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Wed, 2 Jan 2008 06:31:14 +0000 Subject: [PATCH] Dont write to stdout, it kills rubyw git-svn-id: file:///home/svn/framework3/trunk@5267 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/ui/gtk2/preferences/databases.rb | 6 +++--- lib/msf/ui/gtk2/preferences/main.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/msf/ui/gtk2/preferences/databases.rb b/lib/msf/ui/gtk2/preferences/databases.rb index beda7c7348..96d19efbb2 100644 --- a/lib/msf/ui/gtk2/preferences/databases.rb +++ b/lib/msf/ui/gtk2/preferences/databases.rb @@ -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) diff --git a/lib/msf/ui/gtk2/preferences/main.rb b/lib/msf/ui/gtk2/preferences/main.rb index e190f4fe8a..bbb0567494 100644 --- a/lib/msf/ui/gtk2/preferences/main.rb +++ b/lib/msf/ui/gtk2/preferences/main.rb @@ -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