Code

Other tools now also retain there specific statusbar text when pressing alt/shift...
authorjohanengelen <johanengelen@users.sourceforge.net>
Sun, 1 Oct 2006 17:26:35 +0000 (17:26 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sun, 1 Oct 2006 17:26:35 +0000 (17:26 +0000)
src/arc-context.cpp
src/rect-context.cpp
src/select-context.cpp
src/seltrans.h

index 934995b0a4fc6a0977dab22dafd2e7df102fd77d..7fb4b8fe49f12ed8a995823513782b7de34adf75 100644 (file)
@@ -8,9 +8,10 @@
  *   Lauris Kaplinski <lauris@kaplinski.com>
  *   bulia byak <buliabyak@users.sf.net>
  *
+ * Copyright (C) 2006      Johan Engelen <johan@shouraizou.nl>
+ * Copyright (C) 2002      Mitsuru Oka
  * Copyright (C) 2000-2002 Lauris Kaplinski
  * Copyright (C) 2000-2001 Ximian, Inc.
- * Copyright (C) 2002 Mitsuru Oka
  *
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
@@ -331,10 +332,12 @@ static gint sp_arc_context_root_handler(SPEventContext *event_context, GdkEvent
                 case GDK_Shift_R:
                 case GDK_Meta_L:  // Meta is when you press Shift+Alt (at least on my machine)
                 case GDK_Meta_R:
-                    sp_event_show_modifier_tip(event_context->defaultMessageContext(), event,
-                                               _("<b>Ctrl</b>: make circle or integer-ratio ellipse, snap arc/segment angle"),
-                                               _("<b>Shift</b>: draw around the starting point"),
-                                               NULL);
+                    if (!dragging) {
+                        sp_event_show_modifier_tip(event_context->defaultMessageContext(), event,
+                                                   _("<b>Ctrl</b>: make circle or integer-ratio ellipse, snap arc/segment angle"),
+                                                   _("<b>Shift</b>: draw around the starting point"),
+                                                   NULL);
+                    }
                     break;
                 case GDK_Up:
                 case GDK_Down:
index f1494646341f08b87dba252a36bb5bf943f7b77e..81161e7eac0cd0a0d5c61b604d15b8967ae8675c 100644 (file)
@@ -7,6 +7,7 @@
  *   Lauris Kaplinski <lauris@kaplinski.com>
  *   bulia byak <buliabyak@users.sf.net>
  *
+ * Copyright (C) 2006      Johan Engelen <johan@shouraizou.nl>
  * Copyright (C) 2000-2005 authors
  * Copyright (C) 2000-2001 Ximian, Inc.
  *
@@ -373,10 +374,12 @@ static gint sp_rect_context_root_handler(SPEventContext *event_context, GdkEvent
         case GDK_Shift_R:
         case GDK_Meta_L:  // Meta is when you press Shift+Alt (at least on my machine)
         case GDK_Meta_R:
-            sp_event_show_modifier_tip (event_context->defaultMessageContext(), event,
-                                        _("<b>Ctrl</b>: make square or integer-ratio rect, lock a rounded corner circular"),
-                                        _("<b>Shift</b>: draw around the starting point"),
-                                        NULL);
+            if (!dragging){
+                sp_event_show_modifier_tip (event_context->defaultMessageContext(), event,
+                                            _("<b>Ctrl</b>: make square or integer-ratio rect, lock a rounded corner circular"),
+                                            _("<b>Shift</b>: draw around the starting point"),
+                                            NULL);
+            }
             break;
         case GDK_Up:
         case GDK_Down:
index 8f971149e079588efabf006d3760075f6232f900..a2b6ae094b5ffa553ae5f35f8c221a5a85db2fe3 100644 (file)
@@ -3,11 +3,12 @@
 /*
  * Selection and transformation context
  *
- * Author:
+ * Authors:
  *   Lauris Kaplinski <lauris@kaplinski.com>
  *   bulia byak <buliabyak@users.sf.net>
-  *
- * Copyright (C) 1999-2005 authors
+ *
+ * Copyright (C) 2006      Johan Engelen <johan@shouraizou.nl>
+ * Copyright (C) 1999-2005 Authors
  *
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
index 80bbbcf350b3f4d5220f31b5a78c6e7673f5d93f..3ba56ffb4ce18223a5821073c7dacb71f6feab48 100644 (file)
@@ -8,6 +8,7 @@
  *   Lauris Kaplinski <lauris@kaplinski.com>
  *   Carl Hetherington <inkscape@carlh.net>
  *
+ * Copyright (C) 2006      Johan Engelen <johan@shouraizou.nl>
  * Copyright (C) 1999-2002 Lauris Kaplinski
  *
  * Released under GNU GPL, read the file 'COPYING' for more information