[gimp] libgimp: remove the remining file procedure register API
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimp: remove the remining file procedure register API
- Date: Tue, 27 Aug 2019 13:30:23 +0000 (UTC)
commit 96ac0d0802a62d2f02aaf3e80ed3f8aa6a4ca322
Author: Michael Natterer <mitch gimp org>
Date: Tue Aug 27 15:29:56 2019 +0200
libgimp: remove the remining file procedure register API
libgimp/gimp.def | 2 --
libgimp/gimplegacy.c | 51 ---------------------------------------------------
libgimp/gimplegacy.h | 10 ----------
3 files changed, 63 deletions(-)
---
diff --git a/libgimp/gimp.def b/libgimp/gimp.def
index d5e6140ac2..947e97bef4 100644
--- a/libgimp/gimp.def
+++ b/libgimp/gimp.def
@@ -748,8 +748,6 @@ EXPORTS
gimp_progress_uninstall
gimp_progress_update
gimp_quit
- gimp_register_file_handler_mime
- gimp_register_save_handler
gimp_run_procedure_array
gimp_save_procedure_get_type
gimp_save_procedure_new
diff --git a/libgimp/gimplegacy.c b/libgimp/gimplegacy.c
index f1344d6cbf..ad4a5aec5d 100644
--- a/libgimp/gimplegacy.c
+++ b/libgimp/gimplegacy.c
@@ -392,57 +392,6 @@ gimp_plugin_menu_register (const gchar *procedure_name,
return _gimp_plugin_menu_register (procedure_name, menu_path);
}
-/**
- * gimp_register_save_handler:
- * @procedure_name: The name of the procedure to be used for saving.
- * @extensions: comma separated list of extensions this handler can save (i.e. "jpg,jpeg").
- * @prefixes: comma separated list of prefixes this handler can save (i.e. "http:,ftp:").
- *
- * Registers a file save handler procedure.
- *
- * Registers a procedural database procedure to be called to save files
- * in a particular file format.
- *
- * Returns: TRUE on success.
- **/
-gboolean
-gimp_register_save_handler (const gchar *procedure_name,
- const gchar *extensions,
- const gchar *prefixes)
-{
- ASSERT_NO_PLUG_IN_EXISTS (G_STRFUNC);
-
- return _gimp_register_save_handler (procedure_name,
- extensions, prefixes);
-}
-
-/**
- * gimp_register_file_handler_mime:
- * @procedure_name: The name of the procedure to associate a MIME type with.
- * @mime_types: A comma-separated list of MIME types, such as \"image/jpeg\".
- *
- * Associates MIME types with a file handler procedure.
- *
- * Registers MIME types for a file handler procedure. This allows GIMP
- * to determine the MIME type of the file opened or saved using this
- * procedure. It is recommended that only one MIME type is registered
- * per file procedure; when registering more than one MIME type, GIMP
- * will associate the first one with files opened or saved with this
- * procedure.
- *
- * Returns: TRUE on success.
- *
- * Since: 2.2
- **/
-gboolean
-gimp_register_file_handler_mime (const gchar *procedure_name,
- const gchar *mime_types)
-{
- ASSERT_NO_PLUG_IN_EXISTS (G_STRFUNC);
-
- return _gimp_register_file_handler_mime (procedure_name, mime_types);
-}
-
/* private functions */
diff --git a/libgimp/gimplegacy.h b/libgimp/gimplegacy.h
index 01ab108e23..e6a6af276a 100644
--- a/libgimp/gimplegacy.h
+++ b/libgimp/gimplegacy.h
@@ -265,16 +265,6 @@ GimpValueArray * gimp_run_procedure_array (const gchar *name,
gboolean gimp_plugin_menu_register (const gchar *procedure_name,
const gchar *menu_path);
-/* gimp_fileops API that should now be done by using GimpFileProcedure
- */
-
-gboolean gimp_register_save_handler (const gchar *procedure_name,
- const gchar *extensions,
- const gchar *prefixes);
-gboolean gimp_register_file_handler_mime (const gchar *procedure_name,
- const gchar *mime_types);
-
-
#endif /* GIMP_DISABLE_COMPAT_CRUFT */
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]