save-as: default to current session name.
[ardour.git] / gtk2_ardour / nag.cc
index 5d93d132677dc5048f831c0b8b36aac6be46fb78..4502c3c8a2289f25df0a0120187ea2e6017f4ca6 100644 (file)
@@ -1,3 +1,22 @@
+/*
+    Copyright (C) 2012 Paul Davis 
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
 #ifdef WAF_BUILD
 #include "gtk2ardour-config.h"
 #endif
@@ -8,6 +27,7 @@
 #include "pbd/openuri.h"
 
 #include "ardour/filesystem_paths.h"
+#include "ardour/rc_configuration.h"
 
 #include "nag.h"
 #include "i18n.h"
@@ -18,7 +38,7 @@ using namespace Glib;
 using namespace Gtk;
 
 NagScreen::NagScreen (std::string /*context*/, bool maybe_sub)
-       : ArdourDialog (_("Support Ardour Development"), true)
+       : ArdourDialog (string_compose (_("Support %1 Development"), PROGRAM_NAME), true)
        , donate_button (button_group, _("I'd like to make a one-time donation"))
        , subscribe_button (button_group, _("Tell me more about becoming a subscriber"))
        , existing_button (button_group, _("I'm already a subscriber!"))
@@ -173,11 +193,9 @@ NagScreen::is_subscribed (bool& really)
 void
 NagScreen::offer_to_donate ()
 {
-       const char* uri = "http://ardour.org/donate";
-
        /* we don't care if it fails */
 
-        PBD::open_uri (uri);
+        PBD::open_uri (Config->get_donate_url());
 }
 
 void