[gimp: 8/27] app: Separate save procs from export procs
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp: 8/27] app: Separate save procs from export procs
- Date: Sat, 16 May 2009 07:25:02 -0400 (EDT)
commit acef48602ccc9cd7bc2165620d96761427453496
Author: Martin Nordholts <martinn src gnome org>
Date: Sun Apr 26 15:40:45 2009 +0200
app: Separate save procs from export procs
In gimp_plug_in_manager_register_save_handler(), separate save procs
from export procs.
---
app/plug-in/gimppluginmanager-file.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/app/plug-in/gimppluginmanager-file.c b/app/plug-in/gimppluginmanager-file.c
index 6237f31..1903783 100644
--- a/app/plug-in/gimppluginmanager-file.c
+++ b/app/plug-in/gimppluginmanager-file.c
@@ -26,6 +26,8 @@
#include "core/gimp.h"
#include "core/gimpparamspecs.h"
+#include "file/file-procedure.h"
+
#include "gimpplugin.h"
#include "gimpplugindef.h"
#include "gimppluginmanager.h"
@@ -134,8 +136,16 @@ gimp_plug_in_manager_register_save_handler (GimpPlugInManager *manager,
gimp_plug_in_procedure_set_file_proc (file_proc,
extensions, prefixes, NULL);
- if (! g_slist_find (manager->save_procs, file_proc))
- manager->save_procs = g_slist_prepend (manager->save_procs, file_proc);
+ if (file_procedure_in_group (file_proc, FILE_PROCEDURE_GROUP_SAVE))
+ {
+ if (! g_slist_find (manager->save_procs, file_proc))
+ manager->save_procs = g_slist_prepend (manager->save_procs, file_proc);
+ }
+ else
+ {
+ if (! g_slist_find (manager->export_procs, file_proc))
+ manager->export_procs = g_slist_prepend (manager->export_procs, file_proc);
+ }
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]