From: Charles Kerr Date: Tue, 6 May 2008 19:20:19 +0000 (+0000) Subject: (gtk) link to the online manual from the Help menu X-Git-Tag: 1.20~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e257e7c2440349d9743e0b98dee26b9367b2a7b;p=transmission (gtk) link to the online manual from the Help menu --- diff --git a/gtk/actions.c b/gtk/actions.c index 57ade1310..55af91f10 100644 --- a/gtk/actions.c +++ b/gtk/actions.c @@ -128,6 +128,7 @@ static GtkActionEntry entries[] = { "open-torrent-folder", GTK_STOCK_OPEN, N_("_Open Folder"), NULL, NULL, G_CALLBACK(action_cb) }, { "show-about-dialog", GTK_STOCK_ABOUT, NULL, NULL, NULL, G_CALLBACK(action_cb) }, + { "help", GTK_STOCK_HELP, NULL, NULL, NULL, G_CALLBACK(action_cb) }, { "update-tracker", GTK_STOCK_NETWORK, N_("Ask Tracker for _More Peers"), NULL, NULL, G_CALLBACK(action_cb) } }; diff --git a/gtk/main.c b/gtk/main.c index 8754233af..211dd0810 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -1183,6 +1183,10 @@ doAction ( const char * action_name, gpointer user_data ) { about( data->wind ); } + else if (!strcmp (action_name, "help")) + { + gtr_open_file( "http://www.transmissionbt.com/help/gtk" ); + } else if (!strcmp (action_name, "toggle-main-window")) { toggleMainWindow( data ); diff --git a/gtk/ui.h b/gtk/ui.h index 9c1ffdade..00f7d93a8 100644 --- a/gtk/ui.h +++ b/gtk/ui.h @@ -44,6 +44,7 @@ const char * fallback_ui_file = " \n" " \n" " \n" +" \n" " \n" " \n" " \n"