2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
1997-11-25 06:05:25 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
1997-11-25 06:05:25 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
1997-11-25 06: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
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
1997-11-25 06:05:25 +08:00
|
|
|
*/
|
2000-12-17 05:37:03 +08:00
|
|
|
|
2000-04-28 01:27:28 +08:00
|
|
|
#include "config.h"
|
|
|
|
|
2000-12-29 23:22:01 +08:00
|
|
|
#include <gtk/gtk.h>
|
2000-12-17 05:37:03 +08:00
|
|
|
|
2001-01-25 06:36:18 +08:00
|
|
|
#include "libgimpwidgets/gimpwidgets.h"
|
2001-01-24 02:49:44 +08:00
|
|
|
|
2004-04-20 21:25:55 +08:00
|
|
|
#include "actions-types.h"
|
2001-02-21 20:18:09 +08:00
|
|
|
|
2008-06-10 17:54:54 +08:00
|
|
|
#include "core/gimpprogress.h"
|
|
|
|
|
|
|
|
#include "widgets/gimphelp.h"
|
|
|
|
|
2004-05-03 22:03:51 +08:00
|
|
|
#include "actions.h"
|
2002-03-21 04:08:19 +08:00
|
|
|
#include "help-commands.h"
|
1999-06-21 07:29:34 +08:00
|
|
|
|
1997-11-25 06:05:25 +08:00
|
|
|
|
1999-09-28 01:58:10 +08:00
|
|
|
void
|
2004-04-29 20:52:29 +08:00
|
|
|
help_help_cmd_callback (GtkAction *action,
|
2006-04-12 20:49:29 +08:00
|
|
|
gpointer data)
|
1999-09-28 01:58:10 +08:00
|
|
|
{
|
2008-06-10 17:54:54 +08: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-28 01:58:10 +08:00
|
|
|
}
|
|
|
|
|
1997-11-25 06:05:25 +08:00
|
|
|
void
|
2004-04-29 20:52:29 +08:00
|
|
|
help_context_help_cmd_callback (GtkAction *action,
|
2006-04-12 20:49:29 +08:00
|
|
|
gpointer data)
|
1997-11-25 06:05:25 +08:00
|
|
|
{
|
2005-02-04 03:27:56 +08:00
|
|
|
GtkWidget *widget;
|
|
|
|
return_if_no_widget (widget, data);
|
2004-04-29 20:52:29 +08:00
|
|
|
|
2005-02-04 03:27:56 +08:00
|
|
|
gimp_context_help (widget);
|
1997-11-25 06:05:25 +08:00
|
|
|
}
|