(gtk) link to the online manual from the Help menu

This commit is contained in:
Charles Kerr 2008-05-06 19:20:19 +00:00
parent 0f9ca34848
commit 2e257e7c24
3 changed files with 6 additions and 0 deletions

View File

@ -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) }
};

View File

@ -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 );

View File

@ -44,6 +44,7 @@ const char * fallback_ui_file =
" <menuitem action='toggle-message-log'/>\n"
" <menuitem action='show-stats'/>\n"
" <separator/>\n"
" <menuitem action='help'/>\n"
" <menuitem action='show-about-dialog'/>\n"
" </menu>\n"
" </menubar>\n"