47
47
gimp_plugin_domain_register (const gchar *domain_name,
48
const gchar *domain_path)
48
const gchar *domain_path)
50
50
GimpParam *return_vals;
52
52
gboolean success = TRUE;
54
return_vals = gimp_run_procedure ("gimp_plugin_domain_register",
56
GIMP_PDB_STRING, domain_name,
57
GIMP_PDB_STRING, domain_path,
54
return_vals = gimp_run_procedure ("gimp-plugin-domain-register",
56
GIMP_PDB_STRING, domain_name,
57
GIMP_PDB_STRING, domain_path,
60
60
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
72
72
* Register a help path for a plug-in.
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.
78
78
* Returns: TRUE on success.
81
81
gimp_plugin_help_register (const gchar *domain_name,
82
const gchar *domain_uri)
82
const gchar *domain_uri)
84
84
GimpParam *return_vals;
86
86
gboolean success = TRUE;
88
return_vals = gimp_run_procedure ("gimp_plugin_help_register",
90
GIMP_PDB_STRING, domain_name,
91
GIMP_PDB_STRING, domain_uri,
88
return_vals = gimp_run_procedure ("gimp-plugin-help-register",
90
GIMP_PDB_STRING, domain_name,
91
GIMP_PDB_STRING, domain_uri,
94
94
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
116
116
gimp_plugin_menu_register (const gchar *procedure_name,
117
const gchar *menu_path)
119
GimpParam *return_vals;
121
gboolean success = TRUE;
123
return_vals = gimp_run_procedure ("gimp_plugin_menu_register",
125
GIMP_PDB_STRING, procedure_name,
126
GIMP_PDB_STRING, menu_path,
117
const gchar *menu_path)
119
GimpParam *return_vals;
121
gboolean success = TRUE;
123
return_vals = gimp_run_procedure ("gimp-plugin-menu-register",
125
GIMP_PDB_STRING, procedure_name,
126
GIMP_PDB_STRING, menu_path,
129
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
131
gimp_destroy_params (return_vals, nreturn_vals);
137
* gimp_plugin_menu_branch_register:
138
* @menu_path: The sub-menu's menu path.
139
* @menu_name: The name of the sub-menu.
141
* Register a sub-menu.
143
* This procedure installs an sub-menu which does not belong to any
146
* Returns: TRUE on success.
151
gimp_plugin_menu_branch_register (const gchar *menu_path,
152
const gchar *menu_name)
154
GimpParam *return_vals;
156
gboolean success = TRUE;
158
return_vals = gimp_run_procedure ("gimp-plugin-menu-branch-register",
160
GIMP_PDB_STRING, menu_path,
161
GIMP_PDB_STRING, menu_name,
129
164
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;
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.
143
178
* Register an icon for a plug-in procedure.
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)
157
192
GimpParam *return_vals;
158
193
gint nreturn_vals;
159
194
gboolean success = TRUE;
161
return_vals = gimp_run_procedure ("gimp_plugin_icon_register",
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,
196
return_vals = gimp_run_procedure ("gimp-plugin-icon-register",
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,
169
204
success = return_vals[0].data.d_status == GIMP_PDB_SUCCESS;