2006-12-09 13:33:38 -08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2004-04-19 07:54:24 -07:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
|
*
|
2009-01-17 14:28:01 -08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2004-04-19 07:54:24 -07:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-17 14:28:01 -08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2004-04-19 07:54:24 -07:00
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2018-07-11 14:47:19 -07:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2004-04-19 07:54:24 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
2013-11-01 14:28:18 -07:00
|
|
|
#include <gegl.h>
|
2004-04-19 07:54:24 -07:00
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
|
|
#include "libgimpwidgets/gimpwidgets.h"
|
|
|
|
|
|
|
|
|
|
#include "actions-types.h"
|
|
|
|
|
|
|
|
|
|
#include "widgets/gimpactiongroup.h"
|
|
|
|
|
#include "widgets/gimphelp-ids.h"
|
|
|
|
|
|
|
|
|
|
#include "help-actions.h"
|
2004-04-20 06:25:55 -07:00
|
|
|
#include "help-commands.h"
|
2004-04-19 07:54:24 -07:00
|
|
|
|
|
|
|
|
#include "gimp-intl.h"
|
|
|
|
|
|
|
|
|
|
|
2006-04-10 01:06:18 -07:00
|
|
|
static const GimpActionEntry help_actions[] =
|
2004-04-19 07:54:24 -07:00
|
|
|
{
|
2008-12-03 07:27:42 -08:00
|
|
|
{ "help-menu", NULL, NC_("help-action", "_Help") },
|
2004-04-19 07:54:24 -07:00
|
|
|
|
2018-01-04 17:33:16 -08:00
|
|
|
{ "help-help", "gimp-prefs-help-system",
|
2008-12-03 07:27:42 -08:00
|
|
|
NC_("help-action", "_Help"), "F1",
|
2008-12-04 02:32:20 -08:00
|
|
|
NC_("help-action", "Open the GIMP user manual"),
|
2004-04-19 07:54:24 -07:00
|
|
|
G_CALLBACK (help_help_cmd_callback),
|
|
|
|
|
GIMP_HELP_HELP },
|
|
|
|
|
|
2018-01-04 17:33:16 -08:00
|
|
|
{ "help-context-help", "gimp-prefs-help-system",
|
2008-12-03 07:27:42 -08:00
|
|
|
NC_("help-action", "_Context Help"), "<shift>F1",
|
2008-12-04 02:32:20 -08:00
|
|
|
NC_("help-action", "Show the help for a specific user interface item"),
|
2004-04-19 07:54:24 -07:00
|
|
|
G_CALLBACK (help_context_help_cmd_callback),
|
2014-02-18 11:10:24 -08:00
|
|
|
GIMP_HELP_HELP_CONTEXT }
|
2004-04-19 07:54:24 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
2004-04-27 06:55:26 -07:00
|
|
|
help_actions_setup (GimpActionGroup *group)
|
2004-04-19 07:54:24 -07:00
|
|
|
{
|
2008-12-03 07:27:42 -08:00
|
|
|
gimp_action_group_add_actions (group, "help-action",
|
2004-04-19 07:54:24 -07:00
|
|
|
help_actions,
|
2004-04-27 06:55:26 -07:00
|
|
|
G_N_ELEMENTS (help_actions));
|
2004-04-19 07:54:24 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
help_actions_update (GimpActionGroup *group,
|
|
|
|
|
gpointer data)
|
|
|
|
|
{
|
|
|
|
|
}
|