Added a menu entry to access the online help
This commit is contained in:
parent
3a5fa818ab
commit
1ad8840ff5
10
src/camera.c
10
src/camera.c
|
@ -111,6 +111,7 @@ static void _camera_on_file_properties(gpointer data);
|
||||||
static void _camera_on_file_snapshot(gpointer data);
|
static void _camera_on_file_snapshot(gpointer data);
|
||||||
static void _camera_on_edit_preferences(gpointer data);
|
static void _camera_on_edit_preferences(gpointer data);
|
||||||
static void _camera_on_help_about(gpointer data);
|
static void _camera_on_help_about(gpointer data);
|
||||||
|
static void _camera_on_help_contents(gpointer data);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -155,6 +156,8 @@ static const DesktopMenu _camera_menu_edit[] =
|
||||||
|
|
||||||
static const DesktopMenu _camera_menu_help[] =
|
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 },
|
{ "_About", G_CALLBACK(_camera_on_help_about), GTK_STOCK_ABOUT, 0, 0 },
|
||||||
{ NULL, NULL, NULL, 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_dialog_run(GTK_DIALOG(widget));
|
||||||
gtk_widget_destroy(widget);
|
gtk_widget_destroy(widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* camera_on_help_contents */
|
||||||
|
static void _camera_on_help_contents(gpointer data)
|
||||||
|
{
|
||||||
|
desktop_help_contents(PACKAGE, "camera");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user