Make the website in the about dialog a clickable link.
authorpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 29 Feb 2008 11:27:22 +0000 (11:27 +0000)
committerpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 29 Feb 2008 11:27:22 +0000 (11:27 +0000)
git-svn-id: http://svn.voria.com/code@1821 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/about.cpp
synfig-studio/trunk/src/gtkmm/about.h

index 312125c..4c363e8 100644 (file)
@@ -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);
+}
index f88c3e5..3be68be 100644 (file)
@@ -45,6 +45,7 @@ public:
 
        About();
        void close(int);
+       void on_link_clicked(Gtk::AboutDialog&, const Glib::ustring &url);
 };
        
 }; // END of namespace studio