summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: afa1e71)
raw | patch | inline | side by side (parent: afa1e71)
author | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Sun, 12 Apr 2009 20:00:42 +0000 (20:00 +0000) | ||
committer | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Sun, 12 Apr 2009 20:00:42 +0000 (20:00 +0000) |
src/gradient-context.cpp | patch | blob | history | |
src/select-context.cpp | patch | blob | history | |
src/snap.cpp | patch | blob | history |
index 03c3c947cb418a9579e9cc5a512bdfe8ea29f698..643b63f794dcf90f5ca7603bc97fd04a6b440269 100644 (file)
--- a/src/gradient-context.cpp
+++ b/src/gradient-context.cpp
rc->selcon = new sigc::connection (selection->connectChanged( sigc::bind (sigc::ptr_fun(&gradient_selection_changed), rc)));
rc->subselcon = new sigc::connection (ec->desktop->connectToolSubselectionChanged(sigc::bind (sigc::ptr_fun(&gradient_subselection_changed), rc)));
gradient_selection_changed(selection, rc);
-
- sp_event_context_snap_window_open(ec);
}
void
@@ -555,7 +553,7 @@ sp_gradient_context_root_handler(SPEventContext *event_context, GdkEvent *event)
if (!(event->button.state & GDK_CONTROL_MASK))
event_context->item_to_select = sp_event_context_find_item (desktop, button_w, event->button.state & GDK_MOD1_MASK, TRUE);
- /* Snap center to nearest magnetic point */
+ sp_event_context_snap_window_open(event_context, false);
SnapManager &m = desktop->namedview->snap_manager;
m.setup(desktop);
m.freeSnapReturnByRef(Inkscape::SnapPreferences::SNAPPOINT_NODE, button_dt, Inkscape::SNAPSOURCE_HANDLE);
diff --git a/src/select-context.cpp b/src/select-context.cpp
index e30ef53d2a65e2b2c2b8f5cf8d3e67d1fdb43c08..aedd3babc9f372e7abd41f7323c75f220c5eab66 100644 (file)
--- a/src/select-context.cpp
+++ b/src/select-context.cpp
if (sc->button_press_ctrl || (sc->button_press_alt && !sc->button_press_shift && !selection->isEmpty())) {
// if it's not click and ctrl or alt was pressed (the latter with some selection
// but not with shift) we want to drag rather than rubberband
- sc->dragging = TRUE;
- sp_event_context_snap_window_open(event_context);
+ if (sc->dragging == FALSE) {
+ sp_event_context_snap_window_open(event_context);
+ }
+ sc->dragging = TRUE;
sp_canvas_force_full_redraw_after_interruptions(desktop->canvas, 5);
}
diff --git a/src/snap.cpp b/src/snap.cpp
index 392e1c075726b9523cfe7591c22fdc12b726410e..9ca9b78382ec5b68d8fc9bcdc325c3a2c16d11e1 100644 (file)
--- a/src/snap.cpp
+++ b/src/snap.cpp
@@ -162,7 +162,7 @@ Inkscape::SnappedPoint SnapManager::freeSnap(Inkscape::SnapPreferences::PointTyp
Geom::OptRect const &bbox_to_snap) const
{
if (_desktop->event_context && _desktop->event_context->_snap_window_open == false) {
- g_warning("context_snap_window_open has not been set to true by the current context. Please report this!");
+ g_warning("The current tool tries to snap, but it hasn't yet opened the snap window. Please report this!");
// When the context goes into dragging-mode, then Inkscape should call this: sp_event_context_snap_window_open(event_context);
}
@@ -297,7 +297,7 @@ Inkscape::SnappedPoint SnapManager::constrainedSnap(Inkscape::SnapPreferences::P
Geom::OptRect const &bbox_to_snap) const
{
if (_desktop->event_context && _desktop->event_context->_snap_window_open == false) {
- g_warning("context_snap_window_open has not been set to true by the current context. Please report this!");
+ g_warning("The current tool tries to snap, but it hasn't yet opened the snap window. Please report this!");
// When the context goes into dragging-mode, then Inkscape should call this: sp_event_context_snap_window_open(event_context);
}
@@ -335,7 +335,7 @@ void SnapManager::guideSnap(Geom::Point &p, Geom::Point const &guide_normal) con
// This method is used to snap a guide to nodes or to other guides, while dragging the guide around. Will not snap to grids!
if (_desktop->event_context && _desktop->event_context->_snap_window_open == false) {
- g_warning("context_snap_window_open has not been set to true by the current context. Please report this!");
+ g_warning("The current tool tries to snap, but it hasn't yet opened the snap window. Please report this!");
// When the context goes into dragging-mode, then Inkscape should call this: sp_event_context_snap_window_open(event_context);
}