]> granicus.if.org Git - transmission/commitdiff
(gtk) #970: The help dialog's link to transmissionbt.com should be clickable
authorCharles Kerr <charles@transmissionbt.com>
Sun, 25 May 2008 13:22:14 +0000 (13:22 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Sun, 25 May 2008 13:22:14 +0000 (13:22 +0000)
gtk/main.c

index 560fa4951649db72b9bd7f0c5e71d1496128ed3a..7f689c4189db655174e01dcec141bd49c20ff236 100644 (file)
@@ -964,6 +964,14 @@ updatemodel(gpointer gdata) {
   return TRUE;
 }
 
+static void
+aboutDialogActivateLink( GtkAboutDialog * dialog UNUSED,
+                         const gchar    * link_,
+                         gpointer         user_data UNUSED )
+{
+    gtr_open_file( link_ );
+}
+
 static void
 about ( GtkWindow * parent )
 {
@@ -977,6 +985,8 @@ about ( GtkWindow * parent )
         NULL
     };
 
+    gtk_about_dialog_set_url_hook( aboutDialogActivateLink, NULL, NULL );
+
     gtk_show_about_dialog( parent,
         "name", g_get_application_name(),
         "comments", _("A fast and easy BitTorrent client"),