[gimp/gimp-2-8] Bug 680132 - Unable to 'Save As' over smb share



commit 835933efd7af212fe22d52dce502ef1f2167cbd8
Author: Michael Natterer <mitch gimp org>
Date:   Wed Feb 13 23:44:36 2013 +0100

    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...
    (cherry picked from commit 1ba0cfbf384d5f5785b586ff4f310ff226792690)

 app/file/file-procedure.c            |    3 ++-
 app/plug-in/gimppluginmanager-file.c |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/app/file/file-procedure.c b/app/file/file-procedure.c
index 375339a..1d16bb1 100644
--- a/app/file/file-procedure.c
+++ b/app/file/file-procedure.c
@@ -227,7 +227,8 @@ file_procedure_in_group (GimpPlugInProcedure *file_proc,
   is_xcf_save = (strcmp (name, "gimp-xcf-save") == 0);
 
   is_filter   = (strcmp (name, "file-gz-save")  == 0 ||
-                 strcmp (name, "file-bz2-save") == 0);
+                 strcmp (name, "file-bz2-save") == 0 ||
+                 strcmp (name, "file-uri-save") == 0);
 
   switch (group)
     {
diff --git a/app/plug-in/gimppluginmanager-file.c b/app/plug-in/gimppluginmanager-file.c
index 15d6aa3..37b59b8 100644
--- a/app/plug-in/gimppluginmanager-file.c
+++ b/app/plug-in/gimppluginmanager-file.c
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]