don't check for file_proc->menu_paths. Our load and save procedure don't

2004-11-01  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_add_filters):
	don't check for file_proc->menu_paths. Our load and save procedure
	don't necessarily register a menu path any longer.

	* app/plug-in/plug-ins.c: minor cleanup.

	* app/xcf/xcf.c (xcf_init): no need for adding menu paths for the
	XCF load and save procedures.

	* tools/pdbgen/pdb/fileops.pdb: fixed outdated documentation.

	* app/pdb/fileops_cmds.c
	* libgimp/gimpfileops_pdb.c: regenerated.
This commit is contained in:
Sven Neumann 2004-11-01 15:44:57 +00:00 committed by Sven Neumann
parent a99e25b6ad
commit caac418cb2
8 changed files with 30 additions and 31 deletions

View file

@ -1,3 +1,19 @@
2004-11-01 Sven Neumann <sven@gimp.org>
* app/widgets/gimpfiledialog.c (gimp_file_dialog_add_filters):
don't check for file_proc->menu_paths. Our load and save procedure
don't necessarily register a menu path any longer.
* app/plug-in/plug-ins.c: minor cleanup.
* app/xcf/xcf.c (xcf_init): no need for adding menu paths for the
XCF load and save procedures.
* tools/pdbgen/pdb/fileops.pdb: fixed outdated documentation.
* app/pdb/fileops_cmds.c
* libgimp/gimpfileops_pdb.c: regenerated.
2004-11-01 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/drawable_transform.pdb: added "clip_result" to

View file

@ -642,7 +642,7 @@ static ProcRecord register_magic_load_handler_proc =
{
"gimp_register_magic_load_handler",
"Registers a file load handler procedure.",
"Registers a procedural database procedure to be called to load files of a particular file format using magic file information. The procedure you use must have a <Load> menu path associated with it.",
"Registers a procedural database procedure to be called to load files of a particular file format using magic file information.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
@ -696,7 +696,7 @@ static ProcRecord register_load_handler_proc =
{
"gimp_register_load_handler",
"Registers a file load handler procedure.",
"Registers a procedural database procedure to be called to load files of a particular file format. The procedure you use must have a <Load> menu path associated with it.",
"Registers a procedural database procedure to be called to load files of a particular file format.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
@ -792,7 +792,7 @@ static ProcRecord register_save_handler_proc =
{
"gimp_register_save_handler",
"Registers a file save handler procedure.",
"Registers a procedural database procedure to be called to save files in a particular file format. The procedure you use must have a <Save> menu path associated with it.",
"Registers a procedural database procedure to be called to save files in a particular file format.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",

View file

@ -543,9 +543,7 @@ plug_ins_def_add_from_rc (Gimp *gimp,
*/
for (list = plug_in_def->proc_defs; list; list = list->next)
{
PlugInProcDef *proc_def;
proc_def = (PlugInProcDef *) list->data;
PlugInProcDef *proc_def = list->data;
if (! proc_def->extensions &&
! proc_def->prefixes &&
@ -563,11 +561,9 @@ plug_ins_def_add_from_rc (Gimp *gimp,
*/
for (list = gimp->plug_in_defs; list; list = list->next)
{
PlugInDef *ondisk_plug_in_def;
PlugInDef *ondisk_plug_in_def = list->data;
gchar *basename2;
ondisk_plug_in_def = (PlugInDef *) list->data;
basename2 = g_path_get_basename (ondisk_plug_in_def->prog);
if (! strcmp (basename1, basename2))

View file

@ -543,9 +543,7 @@ plug_ins_def_add_from_rc (Gimp *gimp,
*/
for (list = plug_in_def->proc_defs; list; list = list->next)
{
PlugInProcDef *proc_def;
proc_def = (PlugInProcDef *) list->data;
PlugInProcDef *proc_def = list->data;
if (! proc_def->extensions &&
! proc_def->prefixes &&
@ -563,11 +561,9 @@ plug_ins_def_add_from_rc (Gimp *gimp,
*/
for (list = gimp->plug_in_defs; list; list = list->next)
{
PlugInDef *ondisk_plug_in_def;
PlugInDef *ondisk_plug_in_def = list->data;
gchar *basename2;
ondisk_plug_in_def = (PlugInDef *) list->data;
basename2 = g_path_get_basename (ondisk_plug_in_def->prog);
if (! strcmp (basename1, basename2))

View file

@ -500,7 +500,7 @@ gimp_file_dialog_add_filters (GimpFileDialog *dialog,
{
PlugInProcDef *file_proc = list->data;
if (file_proc->menu_paths && file_proc->extensions_list)
if (file_proc->extensions_list)
{
const gchar *domain;
GString *label;

View file

@ -198,13 +198,11 @@ xcf_init (Gimp *gimp)
* PlugInProcDef struct. -josh
*/
procedural_db_register (gimp, &xcf_plug_in_save_proc.db_info);
xcf_plug_in_save_proc.menu_paths = g_list_append (NULL, "<Save>");
xcf_plug_in_save_proc.image_types_val =
plug_ins_image_types_parse (xcf_plug_in_save_proc.image_types);
plug_ins_add_internal (gimp, &xcf_plug_in_save_proc);
procedural_db_register (gimp, &xcf_plug_in_load_proc.db_info);
xcf_plug_in_load_proc.menu_paths = g_list_append (NULL, "<Load>");
xcf_plug_in_load_proc.image_types_val =
plug_ins_image_types_parse (xcf_plug_in_load_proc.image_types);
plug_ins_add_internal (gimp, &xcf_plug_in_load_proc);

View file

@ -154,9 +154,7 @@ gimp_temp_name (const gchar *extension)
* Registers a file load handler procedure.
*
* Registers a procedural database procedure to be called to load files
* of a particular file format using magic file information. The
* procedure you use must have a &lt;Load&gt; menu path associated with
* it.
* of a particular file format using magic file information.
*
* Returns: TRUE on success.
*/
@ -194,8 +192,7 @@ gimp_register_magic_load_handler (const gchar *procedure_name,
* Registers a file load handler procedure.
*
* Registers a procedural database procedure to be called to load files
* of a particular file format. The procedure you use must have a
* &lt;Load&gt; menu path associated with it.
* of a particular file format.
*
* Returns: TRUE on success.
*/
@ -231,8 +228,7 @@ gimp_register_load_handler (const gchar *procedure_name,
* Registers a file save handler procedure.
*
* Registers a procedural database procedure to be called to save files
* in a particular file format. The procedure you use must have a
* &lt;Save&gt; menu path associated with it.
* in a particular file format.
*
* Returns: TRUE on success.
*/

View file

@ -378,8 +378,7 @@ sub register_magic_load_handler {
$help = <<'HELP';
Registers a procedural database procedure to be called to load files of a
particular file format using magic file information. The procedure you use
must have a <Load> menu path associated with it.
particular file format using magic file information.
HELP
&std_pdb_misc;
@ -433,8 +432,7 @@ sub register_load_handler {
$help = <<'HELP';
Registers a procedural database procedure to be called to load files of a
particular file format. The procedure you use must have a <Load> menu path
associated with it.
particular file format.
HELP
&std_pdb_misc;
@ -453,8 +451,7 @@ sub register_save_handler {
$help = <<'HELP';
Registers a procedural database procedure to be called to save files in a
particular file format. The procedure you use must have a <Save> menu path
associated with it.
particular file format.
HELP
&std_pdb_misc;