mirror of https://github.com/GNOME/gimp.git
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:
parent
d1cd90c170
commit
1ba0cfbf38
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue