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