From: Charles Kerr Date: Sun, 25 May 2008 13:22:14 +0000 (+0000) Subject: (gtk) #970: The help dialog's link to transmissionbt.com should be clickable X-Git-Tag: 1.22~247 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59bcac8fe1e3fe3209de33e9e9f131a9e6c3e152;p=transmission (gtk) #970: The help dialog's link to transmissionbt.com should be clickable --- diff --git a/gtk/main.c b/gtk/main.c index 560fa4951..7f689c418 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -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"),