From 6829d1593fad2fa3edb7ee2744def2aad198d087 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Thu, 17 Sep 2015 11:55:22 +1000 Subject: [PATCH] Use PBD::open_uri in about dialog to open website, should fix #6463 --- gtk2_ardour/about.cc | 7 +++++++ gtk2_ardour/about.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/gtk2_ardour/about.cc b/gtk2_ardour/about.cc index c80f3cd973..1288fc599c 100644 --- a/gtk2_ardour/about.cc +++ b/gtk2_ardour/about.cc @@ -26,6 +26,7 @@ #include "pbd/error.h" #include "pbd/file_utils.h" +#include "pbd/openuri.h" #include "ardour/profile.h" #include "ardour/revision.h" @@ -628,6 +629,7 @@ About::About () if (btn) { btn->signal_clicked().connect(sigc::mem_fun(static_cast(this), &Gtk::Window::hide)); } + set_url_hook (sigc::ptr_fun(&About::launch_homepage)); } About::~About () @@ -646,3 +648,8 @@ About::show_config_info () config_info->hide (); } +void +About::launch_homepage (AboutDialog& /* about */, const Glib::ustring& website_url) +{ + PBD::open_uri (website_url); +} diff --git a/gtk2_ardour/about.h b/gtk2_ardour/about.h index 689a92d8e9..83e9c4b69d 100644 --- a/gtk2_ardour/about.h +++ b/gtk2_ardour/about.h @@ -35,6 +35,8 @@ class About : public Gtk::AboutDialog, public ARDOUR::SessionHandlePtr private: ConfigInfoDialog* config_info; void show_config_info (); + + static void launch_homepage (AboutDialog& about, const Glib::ustring& website_url); }; #endif /* __ardour_gtk_about_h__ */