Commit 5f211479 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

ref all registered procedures.

2006-04-07  Michael Natterer  <mitch@gimp.org>

	* app/pdb/gimp-pdb.c (gimp_pdb_register)
	(gimp_pdb_unregister): ref all registered procedures.

	* app/xcf/xcf.c
	* tools/pdbgen/app.pl: unref newly created procedures after
	registering them.

	* app/core/gimp.[ch]: renamed member "plug_in_proc_defs" to
	"plug_in_procedures". Renamed "proc_def" variables to "procedure".

	* app/actions/plug-in-actions.c
	* app/menus/plug-in-menus.c: changed accordingly.

	* app/plug-in/plug-ins.[ch]: keep a reference to all procs which
	are in gimp->plug_in_procedures.

	(plug_ins_exit): unref them all and free the list. Apparently we
	were leaking them before on exit.

	* app/plug-in/plug-in-def.[ch]: s/proc_defs/procedures/. Ref
	procedures added with plug_in_def_add_procedure(). Added
	plug_in_def_remove_procedure() which unrefs them again. Removed
	"free_proc_defs" parameter from plug_in_def_free() and always
	unref the procedures.

	* app/plug-in/plug-in.[ch]: added plug_in_add_temp_proc() and
	plug_in_remove_temp() proc. Ref the added procedures.

	* app/plug-in/plug-in-message.c: use the new APIs instead of
	adding/removing procs and temp procs from their lists manually.
	Unref the newly created procedure after adding then to the
	plug_in_def or plug_in.

	* app/plug-in/plug-in-rc.[ch]
	* app/plug-in/plug-ins-query.c
	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly.

	* app/pdb/*_cmds.c: regenerated.
parent e43b8ea0
2006-04-07 Michael Natterer <mitch@gimp.org>
* app/pdb/gimp-pdb.c (gimp_pdb_register)
(gimp_pdb_unregister): ref all registered procedures.
* app/xcf/xcf.c
* tools/pdbgen/app.pl: unref newly created procedures after
registering them.
* app/core/gimp.[ch]: renamed member "plug_in_proc_defs" to
"plug_in_procedures". Renamed "proc_def" variables to "procedure".
* app/actions/plug-in-actions.c
* app/menus/plug-in-menus.c: changed accordingly.
* app/plug-in/plug-ins.[ch]: keep a reference to all procs which
are in gimp->plug_in_procedures.
(plug_ins_exit): unref them all and free the list. Apparently we
were leaking them before on exit.
* app/plug-in/plug-in-def.[ch]: s/proc_defs/procedures/. Ref
procedures added with plug_in_def_add_procedure(). Added
plug_in_def_remove_procedure() which unrefs them again. Removed
"free_proc_defs" parameter from plug_in_def_free() and always
unref the procedures.
* app/plug-in/plug-in.[ch]: added plug_in_add_temp_proc() and
plug_in_remove_temp() proc. Ref the added procedures.
* app/plug-in/plug-in-message.c: use the new APIs instead of
adding/removing procs and temp procs from their lists manually.
Unref the newly created procedure after adding then to the
plug_in_def or plug_in.
* app/plug-in/plug-in-rc.[ch]
* app/plug-in/plug-ins-query.c
* tools/pdbgen/pdb/plug_in.pdb: changed accordingly.
* app/pdb/*_cmds.c: regenerated.
2006-04-07 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-merge.[ch] (gimp_image_merge_visible_layers):
......
......@@ -135,7 +135,7 @@ plug_in_actions_setup (GimpActionGroup *group)
branch->menu_label);
}
for (list = group->gimp->plug_in_proc_defs;
for (list = group->gimp->plug_in_procedures;
list;
list = g_slist_next (list))
{
......@@ -203,7 +203,7 @@ plug_in_actions_update (GimpActionGroup *group,
type = gimp_drawable_type (drawable);
}
for (list = group->gimp->plug_in_proc_defs;
for (list = group->gimp->plug_in_procedures;
list;
list = g_slist_next (list))
{
......
......@@ -918,7 +918,7 @@ gimp_set_global_buffer (Gimp *gimp,
void
gimp_set_last_plug_in (Gimp *gimp,
GimpPlugInProcedure *proc)
GimpPlugInProcedure *procedure)
{
GSList *list;
gint history_size;
......@@ -927,8 +927,8 @@ gimp_set_last_plug_in (Gimp *gimp,
history_size = MAX (1, gimp->config->plug_in_history_size);
gimp->last_plug_ins = g_slist_remove (gimp->last_plug_ins, proc);
gimp->last_plug_ins = g_slist_prepend (gimp->last_plug_ins, proc);
gimp->last_plug_ins = g_slist_remove (gimp->last_plug_ins, procedure);
gimp->last_plug_ins = g_slist_prepend (gimp->last_plug_ins, procedure);
list = g_slist_nth (gimp->last_plug_ins, history_size);
......
......@@ -72,7 +72,7 @@ struct _Gimp
GSList *plug_in_defs;
gboolean write_pluginrc;
GSList *plug_in_proc_defs;
GSList *plug_in_procedures;
GSList *plug_in_menu_branches;
GSList *plug_in_locale_domains;
GSList *plug_in_help_domains;
......@@ -179,7 +179,7 @@ void gimp_exit (Gimp *gimp,
void gimp_set_global_buffer (Gimp *gimp,
GimpBuffer *buffer);
void gimp_set_last_plug_in (Gimp *gimp,
GimpPlugInProcedure *proc_def);
GimpPlugInProcedure *procedure);
GimpImage * gimp_create_image (Gimp *gimp,
gint width,
......
......@@ -84,32 +84,31 @@ plug_in_menus_init (Gimp *gimp,
for (tmp = plug_in_defs; tmp; tmp = g_slist_next (tmp))
{
PlugInDef *plug_in_def;
const gchar *locale_domain;
const gchar *locale_path;
GSList *list;
PlugInDef *plug_in_def = tmp->data;
plug_in_def = (PlugInDef *) tmp->data;
if (! plug_in_def->proc_defs)
continue;
if (plug_in_def->procedures)
{
const gchar *locale_domain;
const gchar *locale_path;
GSList *list;
locale_domain = plug_ins_locale_domain (gimp,
plug_in_def->prog,
&locale_path);
locale_domain = plug_ins_locale_domain (gimp,
plug_in_def->prog,
&locale_path);
for (list = domains; list; list = list->next)
if (! strcmp (locale_domain, (const gchar *) list->data))
break;
for (list = domains; list; list = list->next)
if (! strcmp (locale_domain, (const gchar *) list->data))
break;
if (! list)
{
domains = g_slist_append (domains, (gpointer) locale_domain);
if (! list)
{
domains = g_slist_append (domains, (gpointer) locale_domain);
bindtextdomain (locale_domain, locale_path);
bindtextdomain (locale_domain, locale_path);
#ifdef HAVE_BIND_TEXTDOMAIN_CODESET
bind_textdomain_codeset (locale_domain, "UTF-8");
bind_textdomain_codeset (locale_domain, "UTF-8");
#endif
}
}
}
......@@ -154,7 +153,7 @@ plug_in_menus_setup (GimpUIManager *manager,
menu_entries = g_tree_new_full ((GCompareDataFunc) strcmp, NULL,
g_free, g_free);
for (list = manager->gimp->plug_in_proc_defs;
for (list = manager->gimp->plug_in_procedures;
list;
list = g_slist_next (list))
{
......
......@@ -895,6 +895,7 @@ register_brush_procs (Gimp *gimp)
NULL,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-duplicate
......@@ -925,6 +926,7 @@ register_brush_procs (Gimp *gimp)
NULL,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-is-generated
......@@ -954,6 +956,7 @@ register_brush_procs (Gimp *gimp)
FALSE,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-rename
......@@ -991,6 +994,7 @@ register_brush_procs (Gimp *gimp)
NULL,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-delete
......@@ -1014,6 +1018,7 @@ register_brush_procs (Gimp *gimp)
NULL,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-is-editable
......@@ -1043,6 +1048,7 @@ register_brush_procs (Gimp *gimp)
FALSE,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-get-info
......@@ -1090,6 +1096,7 @@ register_brush_procs (Gimp *gimp)
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-get-pixels
......@@ -1159,6 +1166,7 @@ register_brush_procs (Gimp *gimp)
"The brush color data",
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-get-spacing
......@@ -1188,6 +1196,7 @@ register_brush_procs (Gimp *gimp)
0, 1000, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-set-spacing
......@@ -1217,6 +1226,7 @@ register_brush_procs (Gimp *gimp)
0, 1000, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-get-shape
......@@ -1247,6 +1257,7 @@ register_brush_procs (Gimp *gimp)
GIMP_BRUSH_GENERATED_CIRCLE,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-get-radius
......@@ -1276,6 +1287,7 @@ register_brush_procs (Gimp *gimp)
-G_MAXDOUBLE, G_MAXDOUBLE, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-get-spikes
......@@ -1305,6 +1317,7 @@ register_brush_procs (Gimp *gimp)
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-get-hardness
......@@ -1334,6 +1347,7 @@ register_brush_procs (Gimp *gimp)
-G_MAXDOUBLE, G_MAXDOUBLE, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-get-aspect-ratio
......@@ -1363,6 +1377,7 @@ register_brush_procs (Gimp *gimp)
-G_MAXDOUBLE, G_MAXDOUBLE, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-get-angle
......@@ -1392,6 +1407,7 @@ register_brush_procs (Gimp *gimp)
-G_MAXDOUBLE, G_MAXDOUBLE, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-set-shape
......@@ -1429,6 +1445,7 @@ register_brush_procs (Gimp *gimp)
GIMP_BRUSH_GENERATED_CIRCLE,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-set-radius
......@@ -1464,6 +1481,7 @@ register_brush_procs (Gimp *gimp)
-G_MAXDOUBLE, G_MAXDOUBLE, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-set-spikes
......@@ -1499,6 +1517,7 @@ register_brush_procs (Gimp *gimp)
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-set-hardness
......@@ -1534,6 +1553,7 @@ register_brush_procs (Gimp *gimp)
-G_MAXDOUBLE, G_MAXDOUBLE, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-set-aspect-ratio
......@@ -1569,6 +1589,7 @@ register_brush_procs (Gimp *gimp)
-G_MAXDOUBLE, G_MAXDOUBLE, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brush-set-angle
......@@ -1604,5 +1625,6 @@ register_brush_procs (Gimp *gimp)
-G_MAXDOUBLE, G_MAXDOUBLE, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
}
......@@ -190,6 +190,7 @@ register_brush_select_procs (Gimp *gimp)
GIMP_NORMAL_MODE,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brushes-close-popup
......@@ -213,6 +214,7 @@ register_brush_select_procs (Gimp *gimp)
NULL,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brushes-set-popup
......@@ -262,5 +264,6 @@ register_brush_select_procs (Gimp *gimp)
GIMP_NORMAL_MODE,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
}
......@@ -253,6 +253,7 @@ register_brushes_procs (Gimp *gimp)
NULL);
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brushes-get-list
......@@ -287,6 +288,7 @@ register_brushes_procs (Gimp *gimp)
"The list of brush names",
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brushes-get-brush
......@@ -328,6 +330,7 @@ register_brushes_procs (Gimp *gimp)
0, 1000, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brushes-get-spacing
......@@ -350,6 +353,7 @@ register_brushes_procs (Gimp *gimp)
0, 1000, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brushes-set-spacing
......@@ -372,6 +376,7 @@ register_brushes_procs (Gimp *gimp)
0, 1000, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-brushes-get-brush-data
......@@ -444,5 +449,6 @@ register_brushes_procs (Gimp *gimp)
"The brush mask data",
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
}
......@@ -302,6 +302,7 @@ register_buffer_procs (Gimp *gimp)
"The list of buffer names",
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-buffer-rename
......@@ -339,6 +340,7 @@ register_buffer_procs (Gimp *gimp)
NULL,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-buffer-delete
......@@ -362,6 +364,7 @@ register_buffer_procs (Gimp *gimp)
NULL,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-buffer-get-width
......@@ -391,6 +394,7 @@ register_buffer_procs (Gimp *gimp)
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-buffer-get-height
......@@ -420,6 +424,7 @@ register_buffer_procs (Gimp *gimp)
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-buffer-get-bytes
......@@ -449,6 +454,7 @@ register_buffer_procs (Gimp *gimp)
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-buffer-get-image-type
......@@ -479,5 +485,6 @@ register_buffer_procs (Gimp *gimp)
GIMP_RGB,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
}
......@@ -388,6 +388,7 @@ register_channel_procs (Gimp *gimp)
gimp,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-channel-new-from-component
......@@ -430,6 +431,7 @@ register_channel_procs (Gimp *gimp)
gimp,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-channel-copy
......@@ -458,6 +460,7 @@ register_channel_procs (Gimp *gimp)
gimp,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-channel-combine-masks
......@@ -505,6 +508,7 @@ register_channel_procs (Gimp *gimp)
G_MININT32, G_MAXINT32, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-channel-get-show-masked
......@@ -533,6 +537,7 @@ register_channel_procs (Gimp *gimp)
FALSE,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-channel-set-show-masked
......@@ -561,6 +566,7 @@ register_channel_procs (Gimp *gimp)
FALSE,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-channel-get-opacity
......@@ -589,6 +595,7 @@ register_channel_procs (Gimp *gimp)
0, 100, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-channel-set-opacity
......@@ -617,6 +624,7 @@ register_channel_procs (Gimp *gimp)
0, 100, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-channel-get-color
......@@ -645,6 +653,7 @@ register_channel_procs (Gimp *gimp)
NULL,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-channel-set-color
......@@ -673,5 +682,6 @@ register_channel_procs (Gimp *gimp)
NULL,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
}
......@@ -869,6 +869,7 @@ register_color_procs (Gimp *gimp)
-127, 127, -127,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-levels
......@@ -928,6 +929,7 @@ register_color_procs (Gimp *gimp)
0, 255, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-levels-auto
......@@ -950,6 +952,7 @@ register_color_procs (Gimp *gimp)
gimp,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-levels-stretch
......@@ -972,6 +975,7 @@ register_color_procs (Gimp *gimp)
gimp,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-posterize
......@@ -1000,6 +1004,7 @@ register_color_procs (Gimp *gimp)
2, 255, 2,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-desaturate
......@@ -1022,6 +1027,7 @@ register_color_procs (Gimp *gimp)
gimp,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-desaturate-full
......@@ -1051,6 +1057,7 @@ register_color_procs (Gimp *gimp)
GIMP_DESATURATE_LIGHTNESS,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-equalize
......@@ -1079,6 +1086,7 @@ register_color_procs (Gimp *gimp)
FALSE,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-invert
......@@ -1101,6 +1109,7 @@ register_color_procs (Gimp *gimp)
gimp,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-curves-spline
......@@ -1141,6 +1150,7 @@ register_color_procs (Gimp *gimp)
"The spline control points: { cp1.x, cp1.y, cp2.x, cp2.y, ... }",
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-curves-explicit
......@@ -1181,6 +1191,7 @@ register_color_procs (Gimp *gimp)
"The explicit curve",
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-color-balance
......@@ -1234,6 +1245,7 @@ register_color_procs (Gimp *gimp)
-100, 100, -100,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-colorize
......@@ -1274,6 +1286,7 @@ register_color_procs (Gimp *gimp)
-100, 100, -100,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-histogram
......@@ -1351,6 +1364,7 @@ register_color_procs (Gimp *gimp)
-G_MAXDOUBLE, G_MAXDOUBLE, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-hue-saturation
......@@ -1398,6 +1412,7 @@ register_color_procs (Gimp *gimp)
-100, 100, -100,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-threshold
......@@ -1432,5 +1447,6 @@ register_color_procs (Gimp *gimp)
0, 255, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
}
......@@ -576,6 +576,7 @@ register_context_procs (Gimp *gimp)
NULL);
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-context-pop
......@@ -592,6 +593,7 @@ register_context_procs (Gimp *gimp)
NULL);
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-context-get-paint-method
......@@ -615,6 +617,7 @@ register_context_procs (Gimp *gimp)
NULL,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-context-set-paint-method
......@@ -638,6 +641,7 @@ register_context_procs (Gimp *gimp)
NULL,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-context-get-foreground
......@@ -660,6 +664,7 @@ register_context_procs (Gimp *gimp)
NULL,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-context-set-foreground
......@@ -682,6 +687,7 @@ register_context_procs (Gimp *gimp)
NULL,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-context-get-background
......@@ -704,6 +710,7 @@ register_context_procs (Gimp *gimp)
NULL,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-context-set-background
......@@ -726,6 +733,7 @@ register_context_procs (Gimp *gimp)
NULL,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-context-set-default-colors
......@@ -742,6 +750,7 @@ register_context_procs (Gimp *gimp)
NULL);
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-context-swap-colors
......@@ -758,6 +767,7 @@ register_context_procs (Gimp *gimp)
NULL);
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-context-get-opacity
......@@ -780,6 +790,7 @@ register_context_procs (Gimp *gimp)
0, 100, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-context-set-opacity
......@@ -802,6 +813,7 @@ register_context_procs (Gimp *gimp)
0, 100, 0,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-context-get-paint-mode
......@@ -825,6 +837,7 @@ register_context_procs (Gimp *gimp)
GIMP_NORMAL_MODE,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-context-set-paint-mode
......@@ -848,6 +861,7 @@ register_context_procs (Gimp *gimp)
GIMP_NORMAL_MODE,
GIMP_PARAM_READWRITE));
gimp_pdb_register (gimp, procedure);
g_object_unref (procedure);
/*
* gimp-context-get-brush
......@@ -871,6 +885,7 @@ register_context_procs (Gimp *gimp)
NULL,