[dia] Bug 683393 follow-up: more matching of register/unregister calls



commit df51190086bf137aff26d46d9eab89dcfedb4930
Author: Hans Breuer <hans breuer org>
Date:   Sun Sep 9 13:04:17 2012 +0200

    Bug 683393 follow-up: more matching of register/unregister calls
    
    All this has no effect because it is/was either commented out or
    the plug-in does not support unload at all.

 plug-ins/cairo/diacairo.c        |    4 +---
 plug-ins/postscript/postscript.c |   11 +++++++++++
 2 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/cairo/diacairo.c b/plug-ins/cairo/diacairo.c
index acd0f62..685e7bd 100644
--- a/plug-ins/cairo/diacairo.c
+++ b/plug-ins/cairo/diacairo.c
@@ -523,6 +523,7 @@ _plugin_unload (PluginInfo *info)
   filter_unregister_export(&wmf_export_filter);
   /* filter_unregister_callback (&cb_clipboard); */
 #endif
+  /* filter_unregister_callback (&cb_gtk_print); */
 }
 
 /* --- dia plug-in interface --- */
@@ -562,9 +563,6 @@ dia_plugin_init(PluginInfo *info)
   filter_register_export(&wmf_export_filter);
   filter_register_callback (&cb_clipboard);
 #endif
-#ifdef CAIRO_HAS_WIN32X_SURFACE
-  filter_register_export(&cb_export_filter);
-#endif
 
   filter_register_callback (&cb_gtk_print);
   
diff --git a/plug-ins/postscript/postscript.c b/plug-ins/postscript/postscript.c
index 26b2223..1859c4b 100644
--- a/plug-ins/postscript/postscript.c
+++ b/plug-ins/postscript/postscript.c
@@ -60,6 +60,17 @@ _plugin_can_unload (PluginInfo *info)
 static void
 _plugin_unload (PluginInfo *info)
 {
+  /* EPS with PS fonts */
+  filter_unregister_export(&eps_export_filter);
+#ifdef HAVE_FREETYPE
+  /* EPS with Pango rendering */
+  filter_unregister_export(&eps_ft2_export_filter);
+#endif
+
+#ifndef G_OS_WIN32
+  /* on win32 this is too uncommon, can only print to postscript printers */
+  filter_unregister_callback (&cb_ps_print);
+#endif
 }
 
 DIA_PLUGIN_CHECK_INIT



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