remove old paypal cruft from about dialog source, and delete config info window if...
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 4 Jan 2010 02:38:37 +0000 (02:38 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 4 Jan 2010 02:38:37 +0000 (02:38 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@6440 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/about.cc
gtk2_ardour/about.h

index d384daae32aedc11e32ffccdd6ba4f1b8732848f..322f81f8da67f129db4bf7b0e50cc17cbdf8d45d 100644 (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
index 80e4618d226d2c13e0fd5cc6933994d57ba83c41..dfd7213aa79b99d5d7fc2c090081cf784383e8a3 100644 (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__ */