2006-12-09 21:33:38 +00:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
1997-11-24 22:05:25 +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
|
1997-11-24 22:05:25 +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
|
1997-11-24 22:05:25 +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/>.
|
1997-11-24 22:05:25 +00:00
|
|
|
*/
|
2000-12-16 21:37:03 +00:00
|
|
|
|
2000-04-27 17:27:28 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
2013-11-01 22:28:18 +01:00
|
|
|
#include <gegl.h>
|
2000-12-29 15:22:01 +00:00
|
|
|
#include <gtk/gtk.h>
|
2000-12-16 21:37:03 +00:00
|
|
|
|
2001-01-24 22:36:18 +00:00
|
|
|
#include "libgimpwidgets/gimpwidgets.h"
|
2001-01-23 18:49:44 +00:00
|
|
|
|
2004-04-20 13:25:55 +00:00
|
|
|
#include "actions-types.h"
|
2001-02-21 12:18:09 +00:00
|
|
|
|
2008-06-10 09:54:54 +00:00
|
|
|
#include "core/gimpprogress.h"
|
|
|
|
|
|
|
|
#include "widgets/gimphelp.h"
|
|
|
|
|
2004-05-03 14:03:51 +00:00
|
|
|
#include "actions.h"
|
2002-03-20 20:08:19 +00:00
|
|
|
#include "help-commands.h"
|
1999-06-20 23:29:34 +00:00
|
|
|
|
1997-11-24 22:05:25 +00:00
|
|
|
|
1999-09-27 17:58:10 +00:00
|
|
|
void
|
2019-07-02 16:12:18 +02:00
|
|
|
help_help_cmd_callback (GimpAction *action,
|
2019-07-04 01:11:48 +02:00
|
|
|
GVariant *value,
|
2019-07-02 16:12:18 +02:00
|
|
|
gpointer data)
|
1999-09-27 17:58:10 +00:00
|
|
|
{
|
2008-06-10 09:54:54 +00:00
|
|
|
Gimp *gimp;
|
|
|
|
GimpDisplay *display;
|
|
|
|
return_if_no_gimp (gimp, data);
|
|
|
|
return_if_no_display (display, data);
|
|
|
|
|
|
|
|
gimp_help_show (gimp, GIMP_PROGRESS (display), NULL, NULL);
|
1999-09-27 17:58:10 +00:00
|
|
|
}
|
|
|
|
|
1997-11-24 22:05:25 +00:00
|
|
|
void
|
2019-07-02 16:12:18 +02:00
|
|
|
help_context_help_cmd_callback (GimpAction *action,
|
2019-07-04 01:11:48 +02:00
|
|
|
GVariant *value,
|
2019-07-02 16:12:18 +02:00
|
|
|
gpointer data)
|
1997-11-24 22:05:25 +00:00
|
|
|
{
|
2005-02-03 19:27:56 +00:00
|
|
|
GtkWidget *widget;
|
|
|
|
return_if_no_widget (widget, data);
|
2004-04-29 12:52:29 +00:00
|
|
|
|
2005-02-03 19:27:56 +00:00
|
|
|
gimp_context_help (widget);
|
1997-11-24 22:05:25 +00:00
|
|
|
}
|