Code

Always set coord entry fields inactive when switching to the node tool
authorcilix42 <cilix42@users.sourceforge.net>
Wed, 5 Dec 2007 22:00:27 +0000 (22:00 +0000)
committercilix42 <cilix42@users.sourceforge.net>
Wed, 5 Dec 2007 22:00:27 +0000 (22:00 +0000)
src/node-context.cpp
src/widgets/toolbox.cpp

index 1cac6f164651829e88a97815a351daf962d3ea99..3d11aefe4a39c303ba783e9e41aa1a11199ee04f 100644 (file)
@@ -153,6 +153,8 @@ sp_node_context_setup(SPEventContext *ec)
         ec->enableGrDrag();
     }
 
+    ec->desktop->emitToolSubselectionChanged(NULL); // sets the coord entry fields to inactive
+
     nc->_node_message_context = new Inkscape::MessageContext((ec->desktop)->messageStack());
 
     nc->shape_editor->update_statusbar();
index 43124a79e226084c8d922492a90f83900176d01b..c2c7ff8528566aeb7de8e569bc5c6923b5ee1c48 100644 (file)
@@ -904,6 +904,10 @@ sp_node_toolbox_coord_changed(gpointer /*shape_editor*/, GObject *tbl)
                 }
             }
         }
+    } else {
+        // no shape-editor or nodepath yet (when we just switched to the tool); coord entries must be inactive
+        gtk_action_set_sensitive(xact, FALSE);
+        gtk_action_set_sensitive(yact, FALSE);
     }
 
     g_object_set_data( tbl, "freeze", GINT_TO_POINTER(FALSE) );