From 3a42bb51dbbe50879f8a4470851284f2b1d988ef Mon Sep 17 00:00:00 2001 From: bulia byak Date: Tue, 21 Aug 2007 01:37:25 +0000 Subject: gobble more of motion events; make statusbar messages immediate for better visual feedback (bzr r3561) --- src/rect-context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rect-context.cpp') diff --git a/src/rect-context.cpp b/src/rect-context.cpp index 71683ec8e..9c25f91c0 100644 --- a/src/rect-context.cpp +++ b/src/rect-context.cpp @@ -333,7 +333,7 @@ static gint sp_rect_context_root_handler(SPEventContext *event_context, GdkEvent motion_dt = m.freeSnap(Inkscape::Snapper::SNAPPOINT_NODE, motion_dt, rc->item).getPoint(); sp_rect_drag(*rc, motion_dt, event->motion.state); - + gobble_motion_events(GDK_BUTTON1_MASK); ret = TRUE; } break; @@ -489,7 +489,7 @@ static void sp_rect_drag(SPRectContext &rc, NR::Point const pt, guint state) // status text GString *xs = SP_PX_TO_METRIC_STRING(r.dimensions()[NR::X], desktop->namedview->getDefaultMetric()); GString *ys = SP_PX_TO_METRIC_STRING(r.dimensions()[NR::Y], desktop->namedview->getDefaultMetric()); - rc._message_context->setF(Inkscape::NORMAL_MESSAGE, _("Rectangle: %s × %s; with Ctrl to make square or integer-ratio rectangle; with Shift to draw around the starting point"), xs->str, ys->str); + rc._message_context->setF(Inkscape::IMMEDIATE_MESSAGE, _("Rectangle: %s × %s; with Ctrl to make square or integer-ratio rectangle; with Shift to draw around the starting point"), xs->str, ys->str); g_string_free(xs, FALSE); g_string_free(ys, FALSE); } -- cgit v1.2.3