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



commit 1ba0cfbf384d5f5785b586ff4f310ff226792690
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...

 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 fe08332..5c6303a 100644
--- a/app/file/file-procedure.c
+++ b/app/file/file-procedure.c
@@ -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)
     {
diff --git a/app/plug-in/gimppluginmanager-file.c b/app/plug-in/gimppluginmanager-file.c
index 8e1495e..7d00a50 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]