mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <dirk@hohndel.org>
This commit is contained in:
parent
8de8d6733f
commit
f6673ab359
1 changed files with 7 additions and 0 deletions
|
@ -1083,6 +1083,11 @@ static void about_dialog(GtkWidget *w, gpointer data)
|
||||||
gtk_widget_destroy(dialog);
|
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)
|
static void view_list(GtkWidget *w, gpointer data)
|
||||||
{
|
{
|
||||||
gtk_paned_set_position(GTK_PANED(vpane), 0);
|
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) },
|
{ "SelectEvents", NULL, N_("Select Events..."), NULL, NULL, G_CALLBACK(selectevents_dialog) },
|
||||||
{ "Quit", GTK_STOCK_QUIT, N_("Quit"), CTRLCHAR "Q", NULL, G_CALLBACK(quit) },
|
{ "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) },
|
{ "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) },
|
{ "ViewList", NULL, N_("List"), CTRLCHAR "1", NULL, G_CALLBACK(view_list) },
|
||||||
{ "ViewProfile", NULL, N_("Profile"), CTRLCHAR "2", NULL, G_CALLBACK(view_profile) },
|
{ "ViewProfile", NULL, N_("Profile"), CTRLCHAR "2", NULL, G_CALLBACK(view_profile) },
|
||||||
{ "ViewInfo", NULL, N_("Info"), CTRLCHAR "3", NULL, G_CALLBACK(view_info) },
|
{ "ViewInfo", NULL, N_("Info"), CTRLCHAR "3", NULL, G_CALLBACK(view_info) },
|
||||||
|
@ -1458,6 +1464,7 @@ static const gchar* ui_string = " \
|
||||||
</menu> \
|
</menu> \
|
||||||
<menu name=\"Help\" action=\"HelpMenuAction\"> \
|
<menu name=\"Help\" action=\"HelpMenuAction\"> \
|
||||||
<menuitem name=\"About\" action=\"About\" /> \
|
<menuitem name=\"About\" action=\"About\" /> \
|
||||||
|
<menuitem name=\"UserManual\" action=\"UserManual\" /> \
|
||||||
</menu> \
|
</menu> \
|
||||||
</menubar> \
|
</menubar> \
|
||||||
</ui> \
|
</ui> \
|
||||||
|
|
Loading…
Add table
Reference in a new issue