Added a menu entry to access the online help

This commit is contained in:
Pierre Pronchery 2013-03-02 00:03:36 +01:00
parent 3a5fa818ab
commit 1ad8840ff5

View File

@ -111,6 +111,7 @@ static void _camera_on_file_properties(gpointer data);
static void _camera_on_file_snapshot(gpointer data);
static void _camera_on_edit_preferences(gpointer data);
static void _camera_on_help_about(gpointer data);
static void _camera_on_help_contents(gpointer data);
#endif
@ -155,6 +156,8 @@ static const DesktopMenu _camera_menu_edit[] =
static const DesktopMenu _camera_menu_help[] =
{
{ "_Contents", G_CALLBACK(_camera_on_help_contents), "help-contents", 0,
GDK_KEY_F1 },
{ "_About", G_CALLBACK(_camera_on_help_about), GTK_STOCK_ABOUT, 0, 0 },
{ NULL, NULL, NULL, 0, 0 }
};
@ -645,6 +648,13 @@ static void _camera_on_help_about(gpointer data)
gtk_dialog_run(GTK_DIALOG(widget));
gtk_widget_destroy(widget);
}
/* camera_on_help_contents */
static void _camera_on_help_contents(gpointer data)
{
desktop_help_contents(PACKAGE, "camera");
}
#endif