app: s/sprintf/g_snprintf/ in xcf_save_image()
[gimp.git] / libgimp / gimphelp_pdb.c
blob38e2be5c1bfa784c5a35383563c435e9da4a7153
1 /* LIBGIMP - The GIMP Library
2 * Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
4 * gimphelp_pdb.c
6 * This library is free software: you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 3 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library. If not, see
18 * <https://www.gnu.org/licenses/>.
21 /* NOTE: This file is auto-generated by pdbgen.pl */
23 #include "config.h"
25 #include "gimp.h"
28 /**
29 * SECTION: gimphelp
30 * @title: gimphelp
31 * @short_description: Loading help pages using gimp_help.
33 * Loading help pages using gimp_help.
34 **/
37 /**
38 * gimp_help:
39 * @help_domain: The help domain in which help_id is registered.
40 * @help_id: The help page's ID.
42 * Load a help page.
44 * This procedure loads the specified help page into the helpbrowser or
45 * what ever is configured as help viewer. The help page is identified
46 * by its domain and ID: if help_domain is NULL, we use the help_domain
47 * which was registered using the gimp_plugin_help_register()
48 * procedure. If help_domain is NULL and no help domain was registered,
49 * the help domain of the main GIMP installation is used.
51 * Returns: TRUE on success.
52 **/
53 gboolean
54 gimp_help (const gchar *help_domain,
55 const gchar *help_id)
57 GimpParam *return_vals;
58 gint nreturn_vals;
59 gboolean success = TRUE;
61 return_vals = gimp_run_procedure ("gimp-help",
62 &nreturn_vals,
63 GIMP_PDB_STRING, help_domain,
64 GIMP_PDB_STRING, help_id,
65 GIMP_PDB_END);
67 success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
69 gimp_destroy_params (return_vals, nreturn_vals);
71 return success;