summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-03-23 00:23:06 +0100
committerRobin Gareus <robin@gareus.org>2015-03-23 00:23:06 +0100
commitec86ca2a4d917846f4879f3b1ae4b5db4f37c845 (patch)
tree896388acd33e2044ea11b2cf7c928efb22b95298 /gtk2_ardour/ardour_ui.cc
parent91405a1b2fb0329bc79ea30be27c3e4241927637 (diff)
replace LinkButton
make link work on OSX and Windows: Gtk-WARNING **: Unable to show ‘…’: Operation not supported
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r--gtk2_ardour/ardour_ui.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index cf4b7a0687..0c73609f3c 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -899,7 +899,7 @@ ARDOUR_UI::starting ()
ArdourDialog d (_("Free/Demo Version Warning"), true);
Label l;
- LinkButton b (string_compose (_("Subscribe and support development of %1"), PROGRAM_NAME));
+ Button b (string_compose (_("Subscribe and support development of %1"), PROGRAM_NAME));
CheckButton c (_("Don't warn me about this again"));
l.set_markup (string_compose (_("<span weight=\"bold\" size=\"large\">%1</span>\n\n<b>%2</b>\n\n<i>%3</i>\n\n%4"),
@@ -911,7 +911,7 @@ ARDOUR_UI::starting ()
"consider becoming a subscriber for a low cost every month.")));
l.set_justify (JUSTIFY_CENTER);
- b.set_uri (X_("https://community.ardour.org/s/subscribe "));
+ b.signal_clicked().connect (mem_fun(*this, &ARDOUR_UI::launch_subscribe));
d.get_vbox()->pack_start (l, true, true);
d.get_vbox()->pack_start (b, false, false, 12);
@@ -3201,6 +3201,12 @@ ARDOUR_UI::launch_tracker ()
}
void
+ARDOUR_UI::launch_subscribe ()
+{
+ PBD::open_uri ("https://community.ardour.org/s/subscribe");
+}
+
+void
ARDOUR_UI::launch_cheat_sheet ()
{
#ifdef __APPLE__