summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ee526a3)
raw | patch | inline | side by side (parent: ee526a3)
author | joncruz <joncruz@users.sourceforge.net> | |
Sun, 22 Apr 2007 05:25:43 +0000 (05:25 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sun, 22 Apr 2007 05:25:43 +0000 (05:25 +0000) |
src/widgets/toolbox.cpp | patch | blob | history |
index b0ff7064b3ded429ff35a0c6944b54e1a83034a6..6d486b9021efbdbe6e6fe6ebc29e6678ade75e97 100644 (file)
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
return;
}
+ Inkscape::XML::Node *repr = SP_OBJECT_REPR(desktop->namedview);
+
+ if ( repr->attribute("inkscape:connector-spacing") ) {
+ gdouble priorValue = gtk_adjustment_get_value(adj);
+ sp_repr_get_double( repr, "inkscape:connector-spacing", &priorValue );
+ if ( priorValue == gtk_adjustment_get_value(adj) ) {
+ return;
+ }
+ } else if ( adj->value == defaultConnSpacing ) {
+ return;
+ }
+
// in turn, prevent callbacks from responding
g_object_set_data( tbl, "freeze", GINT_TO_POINTER(TRUE) );
- Inkscape::XML::Node *repr = SP_OBJECT_REPR(desktop->namedview);
-
sp_repr_set_css_double(repr, "inkscape:connector-spacing", adj->value);
SP_OBJECT(desktop->namedview)->updateRepr();
@@ -4174,7 +4184,7 @@ static void sp_connector_toolbox_prep( SPDesktop *desktop, GtkActionGroup* mainA
// Spacing spinbox
eact = create_adjustment_action( "ConnectorSpacingAction",
_("Spacing:"), _("The amount of space left around objects by auto-routing connectors"),
- "tools.connector", "spacing", 10,
+ "tools.connector", "spacing", defaultConnSpacing,
GTK_WIDGET(desktop->canvas), NULL, holder, TRUE, "inkscape:connector-spacing",
0, 100, 1.0, 10.0,
0, 0, 0,