From f6673ab359c6249c800187ea6f2d65e3c596bc82 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 25 Feb 2013 17:31:02 -0800 Subject: Add link to user manual to Help menu Yes, we could try and bundle the user manual with the executables and open a local copy of it - but this seemed much easier and safer to do. It does, of course, add another string... Signed-off-by: Dirk Hohndel --- gtk-gui.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gtk-gui.c b/gtk-gui.c index bb30dcddb..8f912b5bc 100644 --- a/gtk-gui.c +++ b/gtk-gui.c @@ -1083,6 +1083,11 @@ static void about_dialog(GtkWidget *w, gpointer data) gtk_widget_destroy(dialog); } +static void show_user_manual(GtkWidget *w, gpointer data) +{ + subsurface_launch_for_uri("http://subsurface.hohndel.org/documentation/user-manual/"); +} + static void view_list(GtkWidget *w, gpointer data) { gtk_paned_set_position(GTK_PANED(vpane), 0); @@ -1392,6 +1397,7 @@ static GtkActionEntry menu_items[] = { { "SelectEvents", NULL, N_("Select Events..."), NULL, NULL, G_CALLBACK(selectevents_dialog) }, { "Quit", GTK_STOCK_QUIT, N_("Quit"), CTRLCHAR "Q", NULL, G_CALLBACK(quit) }, { "About", GTK_STOCK_ABOUT, N_("About Subsurface"), NULL, NULL, G_CALLBACK(about_dialog) }, + { "UserManual", GTK_STOCK_HELP, N_("User Manual"), NULL, NULL, G_CALLBACK(show_user_manual) }, { "ViewList", NULL, N_("List"), CTRLCHAR "1", NULL, G_CALLBACK(view_list) }, { "ViewProfile", NULL, N_("Profile"), CTRLCHAR "2", NULL, G_CALLBACK(view_profile) }, { "ViewInfo", NULL, N_("Info"), CTRLCHAR "3", NULL, G_CALLBACK(view_info) }, @@ -1458,6 +1464,7 @@ static const gchar* ui_string = " \ \ \ \ + \ \ \ \ -- cgit v1.2.3-70-g09d2