Bug 680132 - Unable to 'Save As' over smb share

file_procedure_in_group(): consider "file-uri-save" to be in both the
SAVE and the EXPORT groups.

gimp_plug_in_manager_register_save_handler(): allow a procedure to be
in both "save_procs" and "export_procs".

The logic in the file save/export dialog checks uri prefixes and
extensions just fine, so nothing bad seems to happen from this change,
I hope...
This commit is contained in:
Michael Natterer 2013-02-13 23:44:36 +01:00
parent d1cd90c170
commit 1ba0cfbf38
2 changed files with 4 additions and 2 deletions

View File

@ -243,7 +243,8 @@ file_procedure_in_group (GimpPlugInProcedure *file_proc,
is_filter = (strcmp (name, "file-gz-save") == 0 ||
strcmp (name, "file-bz2-save") == 0 ||
strcmp (name, "file-xz-save") == 0);
strcmp (name, "file-xz-save") == 0 ||
strcmp (name, "file-uri-save") == 0);
switch (group)
{

View File

@ -141,7 +141,8 @@ gimp_plug_in_manager_register_save_handler (GimpPlugInManager *manager,
if (! g_slist_find (manager->save_procs, file_proc))
manager->save_procs = g_slist_prepend (manager->save_procs, file_proc);
}
else
if (file_procedure_in_group (file_proc, FILE_PROCEDURE_GROUP_EXPORT))
{
if (! g_slist_find (manager->export_procs, file_proc))
manager->export_procs = g_slist_prepend (manager->export_procs, file_proc);