Commit 6e41b136 authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

tools/pdbgen/pdb/channel.pdb use gimp_item_rename for set_name.

2003-03-17  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/pdb/channel.pdb
        * tools/pdbgen/pdb/layer.pdb: use gimp_item_rename for set_name.

        * app/pdb/channel_cmds.c
        * app/pdb/layer_cmds.c: regenerated

        * libgimpproxy/Makefile.am: use $(top_srcdir)
parent 418c5997
2003-03-17 Manish Singh <yosh@gimp.org>
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/layer.pdb: use gimp_item_rename for set_name.
* app/pdb/channel_cmds.c
* app/pdb/layer_cmds.c: regenerated
* libgimpproxy/Makefile.am: use $(top_srcdir)
2003-03-17 Michael Natterer <mitch@gimp.org>
* app/core/gimpitem.[ch]: added virtual function rename() which
......@@ -442,7 +442,7 @@ channel_set_name_invoker (Gimp *gimp,
success = FALSE;
if (success)
gimp_object_set_name (GIMP_OBJECT (channel), name);
gimp_item_rename (GIMP_ITEM (channel), name);
return procedural_db_return_args (&channel_set_name_proc, success);
}
......
......@@ -1082,7 +1082,7 @@ layer_set_name_invoker (Gimp *gimp,
success = FALSE;
if (success)
gimp_object_set_name (GIMP_OBJECT (layer), name);
gimp_item_rename (GIMP_ITEM (layer), name);
return procedural_db_return_args (&layer_set_name_proc, success);
}
......
......@@ -79,21 +79,21 @@ libgimpproxy_1_3_la_DEPENDENCIES = $(gimpproxy_def)
gen_sources = xgen-goh xgen-goc xgen-gch xgen-gph
CLEANFILES = $(gen_sources)
$(srcdir)/gimpobject.h: $(srcdir)/../app/core/gimpobject.h $(GIMP_MKPROXY)
$(srcdir)/gimpobject.h: $(top_srcdir)/app/core/gimpobject.h $(GIMP_MKPROXY)
$(GIMP_MKPROXY) \
--fprod "\n/* autogenerated from \"@filename@\" */" \
$(srcdir)/../app/core/gimpobject.h > xgen-goh \
&& cp xgen-goh $(@F) \
&& rm -f xgen-goh
$(srcdir)/gimpobject.c: $(srcdir)/../app/core/gimpobject.c $(GIMP_MKPROXY)
$(srcdir)/gimpobject.c: $(top_srcdir)/app/core/gimpobject.c $(GIMP_MKPROXY)
$(GIMP_MKPROXY) \
--fprod "\n/* autogenerated from \"@filename@\" */" \
$(srcdir)/../app/core/gimpobject.c > xgen-goc \
&& cp xgen-goc $(@F) \
&& rm -f xgen-goc
$(srcdir)/gimpchannel.h: $(srcdir)/../app/core/gimpchannel.h $(GIMP_MKPROXY)
$(srcdir)/gimpchannel.h: $(top_srcdir)/app/core/gimpchannel.h $(GIMP_MKPROXY)
$(GIMP_MKPROXY) \
--fprod "\n/* autogenerated from \"@filename@\" */" \
$(srcdir)/../app/core/gimpchannel.h > xgen-gch \
......@@ -101,7 +101,7 @@ $(srcdir)/gimpchannel.h: $(srcdir)/../app/core/gimpchannel.h $(GIMP_MKPROXY)
&& rm -f xgen-gch
$(srcdir)/gimpproxytypes.h: $(srcdir)/../app/core/core-types.h $(srcdir)/../app/core/core-enums.h $(srcdir)/../app/widgets/widgets-enums.h $(srcdir)/../app/display/display-types.h $(GIMP_MKPROXY)
$(srcdir)/gimpproxytypes.h: $(top_srcdir)/app/core/core-types.h $(top_srcdir)/app/core/core-enums.h $(top_srcdir)/app/widgets/widgets-enums.h $(top_srcdir)/app/display/display-types.h $(GIMP_MKPROXY)
$(GIMP_MKPROXY) \
--fprod "\n/* autogenerated from \"@filename@\" */" \
--fhead "#ifndef __GIMP_PROXY_TYPES_H__\n#define __GIMP_PROXY_TYPES_H__\n" \
......
......@@ -264,7 +264,10 @@ HELP
CODE
}
&channel_accessors('name', 'string', 'name', 1, undef,
&channel_accessors('name', 'string', 'name', 1, [ undef, <<'CODE' ],
$invoke{code} =~ s/gimp_object_set_name/gimp_item_rename/;
$invoke{code} =~ s/GIMP_OBJECT/GIMP_ITEM/;
CODE
'object', 'GIMP_OBJECT (channel)');
&channel_accessors('visible', 'boolean', 'visibility', 1, undef,
......
......@@ -525,7 +525,10 @@ HELP
}
&layer_accessors('name', 'string', 'name', 1, 0, undef,
&layer_accessors('name', 'string', 'name', 1, 0, [ undef, <<'CODE' ],
$invoke{code} =~ s/gimp_object_set_name/gimp_item_rename/;
$invoke{code} =~ s/GIMP_OBJECT/GIMP_ITEM/;
CODE
'object', 'GIMP_OBJECT (layer)');
&layer_accessors('visible', 'boolean', 'visibility', 1, 0, undef,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment