From: pabs Date: Fri, 29 Feb 2008 11:27:22 +0000 (+0000) Subject: Make the website in the about dialog a clickable link. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=aae59bda315ba78f17bc9e9d35226c3c77c75a02;p=synfig.git Make the website in the about dialog a clickable link. git-svn-id: http://svn.voria.com/code@1821 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/about.cpp b/synfig-studio/trunk/src/gtkmm/about.cpp index 312125c..4c363e8 100644 --- a/synfig-studio/trunk/src/gtkmm/about.cpp +++ b/synfig-studio/trunk/src/gtkmm/about.cpp @@ -102,6 +102,8 @@ About::About() #endif set_version(VERSION); set_comments(_("2D vector animation studio")); + + set_url_hook(sigc::mem_fun(*this, &About::on_link_clicked)); set_website("http://www.synfig.org/"); set_website_label(_("Visit the Synfig website")); @@ -222,3 +224,8 @@ About::About() void About::close(int){ hide(); } + +void About::on_link_clicked(Gtk::AboutDialog&, const Glib::ustring &url) +{ + App::open_url(url); +} diff --git a/synfig-studio/trunk/src/gtkmm/about.h b/synfig-studio/trunk/src/gtkmm/about.h index f88c3e5..3be68be 100644 --- a/synfig-studio/trunk/src/gtkmm/about.h +++ b/synfig-studio/trunk/src/gtkmm/about.h @@ -45,6 +45,7 @@ public: About(); void close(int); + void on_link_clicked(Gtk::AboutDialog&, const Glib::ustring &url); }; }; // END of namespace studio