Added a menu entry for online help
This commit is contained in:
parent
138c44a4e7
commit
648f79f5ad
|
@ -17,6 +17,7 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <libintl.h>
|
||||
#include <Desktop.h>
|
||||
#include "editor.h"
|
||||
#include "callbacks.h"
|
||||
#include "../config.h"
|
||||
|
@ -159,6 +160,13 @@ void on_help_about(gpointer data)
|
|||
}
|
||||
|
||||
|
||||
/* on_help_contents */
|
||||
void on_help_contents(gpointer data)
|
||||
{
|
||||
desktop_help_contents(PACKAGE, "editor");
|
||||
}
|
||||
|
||||
|
||||
/* on_insert_file */
|
||||
void on_insert_file(gpointer data)
|
||||
{
|
||||
|
|
|
@ -37,6 +37,7 @@ void on_file_properties(gpointer data);
|
|||
void on_file_save(gpointer data);
|
||||
void on_file_save_as(gpointer data);
|
||||
void on_help_about(gpointer data);
|
||||
void on_help_contents(gpointer data);
|
||||
void on_insert_file(gpointer data);
|
||||
|
||||
/* toolbar */
|
||||
|
|
|
@ -158,6 +158,8 @@ static const DesktopMenu _editor_menu_insert[] =
|
|||
|
||||
static const DesktopMenu _editor_menu_help[] =
|
||||
{
|
||||
{ N_("_Contents"), G_CALLBACK(on_help_contents), "help-contents",
|
||||
0, GDK_KEY_F1 },
|
||||
{ N_("_About"), G_CALLBACK(on_help_about),
|
||||
#if GTK_CHECK_VERSION(2, 6, 0)
|
||||
GTK_STOCK_ABOUT, 0, 0 },
|
||||
|
|
Loading…
Reference in New Issue
Block a user