~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to libgimp/gimpplugin_pdb.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 * Boston, MA 02111-1307, USA.
20
20
 */
21
21
 
22
 
/* NOTE: This file is autogenerated by pdbgen.pl */
 
22
/* NOTE: This file is auto-generated by pdbgen.pl */
23
23
 
24
24
#include "config.h"
25
25
 
45
45
 */
46
46
gboolean
47
47
gimp_plugin_domain_register (const gchar *domain_name,
48
 
                             const gchar *domain_path)
 
48
                             const gchar *domain_path)
49
49
{
50
50
  GimpParam *return_vals;
51
51
  gint nreturn_vals;
52
52
  gboolean success = TRUE;
53
53
 
54
 
  return_vals = gimp_run_procedure ("gimp_plugin_domain_register",
55
 
                                    &nreturn_vals,
56
 
                                    GIMP_PDB_STRING, domain_name,
57
 
                                    GIMP_PDB_STRING, domain_path,
58
 
                                    GIMP_PDB_END);
 
54
  return_vals = gimp_run_procedure ("gimp-plugin-domain-register",
 
55
                                    &nreturn_vals,
 
56
                                    GIMP_PDB_STRING, domain_name,
 
57
                                    GIMP_PDB_STRING, domain_path,
 
58
                                    GIMP_PDB_END);
59
59
 
60
60
  success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
61
61
 
72
72
 * Register a help path for a plug-in.
73
73
 *
74
74
 * This procedure changes the help rootdir for the plug-in which calls
75
 
 * it. All subsequent calls of gimp_help from this plug-in will be
 
75
 * it. All subsequent calls of gimp_help() from this plug-in will be
76
76
 * interpreted relative to this rootdir.
77
77
 *
78
78
 * Returns: TRUE on success.
79
79
 */
80
80
gboolean
81
81
gimp_plugin_help_register (const gchar *domain_name,
82
 
                           const gchar *domain_uri)
 
82
                           const gchar *domain_uri)
83
83
{
84
84
  GimpParam *return_vals;
85
85
  gint nreturn_vals;
86
86
  gboolean success = TRUE;
87
87
 
88
 
  return_vals = gimp_run_procedure ("gimp_plugin_help_register",
89
 
                                    &nreturn_vals,
90
 
                                    GIMP_PDB_STRING, domain_name,
91
 
                                    GIMP_PDB_STRING, domain_uri,
92
 
                                    GIMP_PDB_END);
 
88
  return_vals = gimp_run_procedure ("gimp-plugin-help-register",
 
89
                                    &nreturn_vals,
 
90
                                    GIMP_PDB_STRING, domain_name,
 
91
                                    GIMP_PDB_STRING, domain_uri,
 
92
                                    GIMP_PDB_END);
93
93
 
94
94
  success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
95
95
 
114
114
 */
115
115
gboolean
116
116
gimp_plugin_menu_register (const gchar *procedure_name,
117
 
                           const gchar *menu_path)
118
 
{
119
 
  GimpParam *return_vals;
120
 
  gint nreturn_vals;
121
 
  gboolean success = TRUE;
122
 
 
123
 
  return_vals = gimp_run_procedure ("gimp_plugin_menu_register",
124
 
                                    &nreturn_vals,
125
 
                                    GIMP_PDB_STRING, procedure_name,
126
 
                                    GIMP_PDB_STRING, menu_path,
127
 
                                    GIMP_PDB_END);
 
117
                           const gchar *menu_path)
 
118
{
 
119
  GimpParam *return_vals;
 
120
  gint nreturn_vals;
 
121
  gboolean success = TRUE;
 
122
 
 
123
  return_vals = gimp_run_procedure ("gimp-plugin-menu-register",
 
124
                                    &nreturn_vals,
 
125
                                    GIMP_PDB_STRING, procedure_name,
 
126
                                    GIMP_PDB_STRING, menu_path,
 
127
                                    GIMP_PDB_END);
 
128
 
 
129
  success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
 
130
 
 
131
  gimp_destroy_params (return_vals, nreturn_vals);
 
132
 
 
133
  return success;
 
134
}
 
135
 
 
136
/**
 
137
 * gimp_plugin_menu_branch_register:
 
138
 * @menu_path: The sub-menu's menu path.
 
139
 * @menu_name: The name of the sub-menu.
 
140
 *
 
141
 * Register a sub-menu.
 
142
 *
 
143
 * This procedure installs an sub-menu which does not belong to any
 
144
 * procedure.
 
145
 *
 
146
 * Returns: TRUE on success.
 
147
 *
 
148
 * Since: GIMP 2.4
 
149
 */
 
150
gboolean
 
151
gimp_plugin_menu_branch_register (const gchar *menu_path,
 
152
                                  const gchar *menu_name)
 
153
{
 
154
  GimpParam *return_vals;
 
155
  gint nreturn_vals;
 
156
  gboolean success = TRUE;
 
157
 
 
158
  return_vals = gimp_run_procedure ("gimp-plugin-menu-branch-register",
 
159
                                    &nreturn_vals,
 
160
                                    GIMP_PDB_STRING, menu_path,
 
161
                                    GIMP_PDB_STRING, menu_name,
 
162
                                    GIMP_PDB_END);
128
163
 
129
164
  success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
130
165
 
137
172
 * _gimp_plugin_icon_register:
138
173
 * @procedure_name: The procedure for which to install the icon.
139
174
 * @icon_type: The type of the icon.
140
 
 * @icon_data_length: The length of 'icon_data'.
 
175
 * @icon_data_length: The length of 'icon-data'.
141
176
 * @icon_data: The procedure's icon. The format depends on the 'icon_type' parameter.
142
177
 *
143
178
 * Register an icon for a plug-in procedure.
150
185
 */
151
186
gboolean
152
187
_gimp_plugin_icon_register (const gchar  *procedure_name,
153
 
                            GimpIconType  icon_type,
154
 
                            gint          icon_data_length,
155
 
                            const guint8 *icon_data)
 
188
                            GimpIconType  icon_type,
 
189
                            gint          icon_data_length,
 
190
                            const guint8 *icon_data)
156
191
{
157
192
  GimpParam *return_vals;
158
193
  gint nreturn_vals;
159
194
  gboolean success = TRUE;
160
195
 
161
 
  return_vals = gimp_run_procedure ("gimp_plugin_icon_register",
162
 
                                    &nreturn_vals,
163
 
                                    GIMP_PDB_STRING, procedure_name,
164
 
                                    GIMP_PDB_INT32, icon_type,
165
 
                                    GIMP_PDB_INT32, icon_data_length,
166
 
                                    GIMP_PDB_INT8ARRAY, icon_data,
167
 
                                    GIMP_PDB_END);
 
196
  return_vals = gimp_run_procedure ("gimp-plugin-icon-register",
 
197
                                    &nreturn_vals,
 
198
                                    GIMP_PDB_STRING, procedure_name,
 
199
                                    GIMP_PDB_INT32, icon_type,
 
200
                                    GIMP_PDB_INT32, icon_data_length,
 
201
                                    GIMP_PDB_INT8ARRAY, icon_data,
 
202
                                    GIMP_PDB_END);
168
203
 
169
204
  success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
170
205