Code

While moving or transforming a selected object, the statusbartext with transformation...
authorjohanengelen <johanengelen@users.sourceforge.net>
Sun, 1 Oct 2006 14:39:18 +0000 (14:39 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sun, 1 Oct 2006 14:39:18 +0000 (14:39 +0000)
src/select-context.cpp
src/seltrans.h

index c527471f5a22c093da8c24bce6f9cbb5b95a1a2c..8f971149e079588efabf006d3760075f6232f900 100644 (file)
@@ -637,6 +637,10 @@ sp_select_context_root_handler(SPEventContext *event_context, GdkEvent *event)
 
             if (!key_is_a_modifier (get_group0_keyval (&event->key))) {
                     event_context->defaultMessageContext()->clear();
+            } else if (sc->grabbed || seltrans->isGrabbed()) {
+                // do not change the statusbar text when mousekey is down to move or transform the object,
+                // because the statusbar text is already updated somewhere else.
+                   break;
             } else {
                     sp_event_show_modifier_tip (event_context->defaultMessageContext(), event,
                                                 _("<b>Ctrl</b>: select in groups, move hor/vert"),
index 5326c7b87b1db1ebf0bae610a14dfac51ed3cc8a..80bbbcf350b3f4d5220f31b5a78c6e7673f5d93f 100644 (file)
@@ -80,6 +80,9 @@ public:
     bool isEmpty() {
         return _empty;
     }
+    bool isGrabbed() {
+        return _grabbed;    
+    }
     
 private:
     void _updateHandles();