13
0

replace LinkButton

make link work on OSX and Windows:
Gtk-WARNING **: Unable to show ‘…’: Operation not supported
This commit is contained in:
Robin Gareus 2015-03-23 00:23:06 +01:00
parent 91405a1b2f
commit ec86ca2a4d
2 changed files with 9 additions and 2 deletions

View File

@ -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);
@ -3200,6 +3200,12 @@ ARDOUR_UI::launch_tracker ()
PBD::open_uri ("http://tracker.ardour.org/bug_report_page.php");
}
void
ARDOUR_UI::launch_subscribe ()
{
PBD::open_uri ("https://community.ardour.org/s/subscribe");
}
void
ARDOUR_UI::launch_cheat_sheet ()
{

View File

@ -147,6 +147,7 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
void launch_manual ();
void launch_reference ();
void launch_tracker ();
void launch_subscribe ();
void launch_cheat_sheet ();
void launch_website ();
void launch_website_dev ();