[dia] Bug 568075 - Hide connection points for imported SVG



commit 0ae2f83d1c901a5ac9c3be62bfdfb86279ee78b9
Author: Hans Breuer <hans breuer org>
Date:   Sun Oct 17 20:30:30 2010 +0200

    Bug 568075 - Hide connection points for imported SVG
    
    Use recently added facility to (re-)store some view settings from
    diagrams to switch off connection point visibility for imported SVGs.
    It can easily be enabled again with View/Show Connection Points

 plug-ins/svg/svg-import.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/svg/svg-import.c b/plug-ins/svg/svg-import.c
index 7707fcf..953167e 100644
--- a/plug-ins/svg/svg-import.c
+++ b/plug-ins/svg/svg-import.c
@@ -994,6 +994,9 @@ import_svg(const gchar *filename, DiagramData *dia, void* user_data)
   }
   g_list_free (items);
   xmlFreeDoc(doc);
+  /* set 'display' setting */
+  g_object_set_data (G_OBJECT(dia), "show-connection-points", GINT_TO_POINTER(-1));
+
   return TRUE;
 }
 



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