[gimp] plug-ins: mark file-uri's procedures to handle URIs



commit 54207fbaf57962a471e6a08b80e1174f79701bf6
Author: Michael Natterer <mitch gimp org>
Date:   Wed Jul 9 02:49:40 2014 +0200

    plug-ins: mark file-uri's procedures to handle URIs
    
    Not that it would make any difference, since they only register
    prefixes and no extensions, but the fact that they got URIs passed was
    simply a side effect of how we pass filename or URI to plug-ins. With
    this change, getting an URI passed is a choice of the plug-in, which
    the core honors in an obvious code path.

 plug-ins/file-uri/uri.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/file-uri/uri.c b/plug-ins/file-uri/uri.c
index 8e56bbd..7ae964c 100644
--- a/plug-ins/file-uri/uri.c
+++ b/plug-ins/file-uri/uri.c
@@ -130,6 +130,7 @@ query (void)
                                  (const guint8 *) GIMP_STOCK_WEB);
       gimp_register_load_handler (LOAD_PROC,
                                   "", uri_backend_get_load_protocols ());
+      gimp_register_file_handler_uri (LOAD_PROC);
     }
 
   if (uri_backend_get_save_protocols ())
@@ -150,6 +151,7 @@ query (void)
                                  (const guint8 *) GIMP_STOCK_WEB);
       gimp_register_save_handler (SAVE_PROC,
                                   "", uri_backend_get_save_protocols ());
+      gimp_register_file_handler_uri (SAVE_PROC);
     }
 
   uri_backend_shutdown ();


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