remove old paypal cruft from about dialog source, and delete config info window if/when about dialog is deleted

git-svn-id: svn://localhost/ardour2/branches/3.0@6440 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-01-04 02:38:37 +00:00
parent 6ddcd8f0b9
commit 14c363f0bc
2 changed files with 1 additions and 50 deletions

View File

@ -228,20 +228,11 @@ About::About ()
Gtk::Button* config_button = manage (new Button (_("Config")));
get_action_area()->pack_start (*config_button, false, false);
config_button->signal_clicked().connect (mem_fun (*this, &About::show_config_info));
#ifdef WITH_PAYMENT_OPTIONS
paypal_button.add (paypal_pixmap);
HBox *payment_box = manage (new HBox);
payment_box->pack_start (paypal_button, true, false);
subvbox.pack_start (*payment_box, false, false);
#endif
}
About::~About ()
{
delete config_info;
}
void
@ -254,37 +245,3 @@ About::show_config_info ()
config_info->present ();
}
#ifdef WITH_PAYMENT_OPTIONS
void
About::goto_paypal ()
{
char buf[PATH_MAX+16];
char *argv[4];
char *docfile = "foo";
int grandchild;
if (fork() == 0) {
/* child */
if ((grandchild = fork()) == 0) {
/* grandchild */
argv[0] = "mozilla";
argv[1] = "-remote";
snprintf (buf, sizeof(buf), "openurl(%s)", docfile);
argv[2] = buf;
argv[3] = 0;
execvp ("mozilla", argv);
error << "could not start mozilla" << endmsg;
} else {
int status;
waitpid (grandchild, &status, 0);
}
}
}
#endif

View File

@ -33,12 +33,6 @@ class About : public Gtk::AboutDialog
private:
ConfigInfoDialog* config_info;
void show_config_info ();
#ifdef WITH_PAYMENT_OPTIONS
Gtk::Image paypal_pixmap;
Gtk::Button paypal_button;
void goto_paypal ();
#endif
};
#endif /* __ardour_gtk_about_h__ */