2006-12-09 21:33:38 +00:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2004-04-19 14:54:24 +00:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-17 22:28:01 +00:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2004-04-19 14:54:24 +00:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-17 22:28:01 +00:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2004-04-19 14:54:24 +00: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 23:27:07 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2004-04-19 14:54:24 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
2013-11-01 22:28:18 +01:00
|
|
|
#include <gegl.h>
|
2004-04-19 14:54:24 +00: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 13:25:55 +00:00
|
|
|
#include "help-commands.h"
|
2004-04-19 14:54:24 +00:00
|
|
|
|
|
|
|
#include "gimp-intl.h"
|
|
|
|
|
|
|
|
|
2006-04-10 08:06:18 +00:00
|
|
|
static const GimpActionEntry help_actions[] =
|
2004-04-19 14:54:24 +00:00
|
|
|
{
|
2008-12-03 15:27:42 +00:00
|
|
|
{ "help-menu", NULL, NC_("help-action", "_Help") },
|
2004-04-19 14:54:24 +00:00
|
|
|
|
2018-01-05 04:33:16 +03:00
|
|
|
{ "help-help", "gimp-prefs-help-system",
|
2008-12-03 15:27:42 +00:00
|
|
|
NC_("help-action", "_Help"), "F1",
|
2008-12-04 10:32:20 +00:00
|
|
|
NC_("help-action", "Open the GIMP user manual"),
|
2004-04-19 14:54:24 +00:00
|
|
|
G_CALLBACK (help_help_cmd_callback),
|
|
|
|
GIMP_HELP_HELP },
|
|
|
|
|
2018-01-05 04:33:16 +03:00
|
|
|
{ "help-context-help", "gimp-prefs-help-system",
|
2008-12-03 15:27:42 +00:00
|
|
|
NC_("help-action", "_Context Help"), "<shift>F1",
|
2008-12-04 10:32:20 +00:00
|
|
|
NC_("help-action", "Show the help for a specific user interface item"),
|
2004-04-19 14:54:24 +00:00
|
|
|
G_CALLBACK (help_context_help_cmd_callback),
|
2014-02-18 20:10:24 +01:00
|
|
|
GIMP_HELP_HELP_CONTEXT }
|
2004-04-19 14:54:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
void
|
2004-04-27 13:55:26 +00:00
|
|
|
help_actions_setup (GimpActionGroup *group)
|
2004-04-19 14:54:24 +00:00
|
|
|
{
|
2008-12-03 15:27:42 +00:00
|
|
|
gimp_action_group_add_actions (group, "help-action",
|
2004-04-19 14:54:24 +00:00
|
|
|
help_actions,
|
2004-04-27 13:55:26 +00:00
|
|
|
G_N_ELEMENTS (help_actions));
|
2004-04-19 14:54:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
help_actions_update (GimpActionGroup *group,
|
|
|
|
gpointer data)
|
|
|
|
{
|
|
|
|
}
|