summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dd26c96)
raw | patch | inline | side by side (parent: dd26c96)
author | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Sun, 22 Feb 2009 21:46:54 +0000 (21:46 +0000) | ||
committer | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Sun, 22 Feb 2009 21:46:54 +0000 (21:46 +0000) |
index 4d16f9ffbff33285f8196dc3336404aa62729264..0ba4d7786f8dd65fc105c1b9695cc1540a888ad2 100644 (file)
target_name = _("bounding box side");
break;
case SNAPTARGET_GRADIENT:
- target_name = _("gradient");
+ target_name = _("gradient level");
break;
case SNAPTARGET_PAGE_BORDER:
target_name = _("page border");
index e8c9e06412b75e6fac0b96b19ec850e5fd7a6d9f..3e396a216c17a8ec1f5da444c77f99c98c566e25 100644 (file)
--- a/src/snap-preferences.cpp
+++ b/src/snap-preferences.cpp
_snap_to_page_border(false),
_strict_snapping(true)
{
- setSnapFrom(SNAPPOINT_BBOX | SNAPPOINT_NODE, true); //Snap any point. In v0.45 and earlier, this was controlled in the preferences tab
+ setSnapFrom(SNAPPOINT_BBOX | SNAPPOINT_NODE | SNAPPOINT_GUIDE, true); //Snap any point. In v0.45 and earlier, this was controlled in the preferences tab
}
/*
diff --git a/src/sp-namedview.cpp b/src/sp-namedview.cpp
index 793dff561580d3e01480c455bfa32ca0ffa2872a..159ebc31dd073f103d2bb664c9f6a5791c7787b5 100644 (file)
--- a/src/sp-namedview.cpp
+++ b/src/sp-namedview.cpp
@@ -252,7 +252,6 @@ static void sp_namedview_build(SPObject *object, SPDocument *document, Inkscape:
sp_object_read_attr(object, "inkscape:snap-object-midpoints");
sp_object_read_attr(object, "inkscape:snap-bbox-edge-midpoints");
sp_object_read_attr(object, "inkscape:snap-bbox-midpoints");
- //sp_object_read_attr(object, "inkscape:snap-intersection-grid-guide");
sp_object_read_attr(object, "inkscape:snap-to-guides");
sp_object_read_attr(object, "inkscape:snap-grids");
sp_object_read_attr(object, "inkscape:snap-intersection-paths");
@@ -489,13 +488,9 @@ static void sp_namedview_set(SPObject *object, unsigned int key, const gchar *va
object->requestModified(SP_OBJECT_MODIFIED_FLAG);
break;
case SP_ATTR_INKSCAPE_SNAP_FROM_GUIDE:
- nv->snap_manager.snapprefs.setSnapModeGuide(value ? sp_str_to_bool(value) : FALSE);
+ nv->snap_manager.snapprefs.setSnapModeGuide(value ? sp_str_to_bool(value) : TRUE);
object->requestModified(SP_OBJECT_MODIFIED_FLAG);
break;
- /*case SP_ATTR_INKSCAPE_SNAP_INTERS_GRIDGUIDE:
- nv->snap_manager.snapprefs.setSnapIntersectionGG(value ? sp_str_to_bool(value) : TRUE);
- object->requestModified(SP_OBJECT_MODIFIED_FLAG);
- break;*/
case SP_ATTR_INKSCAPE_SNAP_INTERS_PATHS:
nv->snap_manager.snapprefs.setSnapIntersectionCS(value ? sp_str_to_bool(value) : FALSE);
object->requestModified(SP_OBJECT_MODIFIED_FLAG);
index ae95244cda8504b4a43dc359f7879101210c9511..6b3e2357938115c69e81dfaedf2d17b717c52c59 100644 (file)
//---------------------------------------------------------------
//General snap options
_rcb_sgui(_("Show _guides"), _("Show or hide guides"), "showguides", _wr),
- _rcbsng(_("_Snap guides while dragging"), _("While dragging a guide, snap to object nodes or bounding box corners ('Snap to nodes' or 'snap to bounding box corners' must be enabled in the 'Snap' tab; only a small part of the guide near the cursor will snap)"),
+ _rcbsng(_("_Snap guides while dragging"), _("While dragging a guide, snap to object nodes or bounding box corners ('Snap to nodes' or 'snap to bounding box corners' must be enabled; only a small part of the guide near the cursor will snap)"),
"inkscape:snap-from-guide", _wr),
_rcp_gui(_("Guide co_lor:"), _("Guideline color"), _("Color of guidelines"), "guidecolor", "guideopacity", _wr),
_rcp_hgui(_("_Highlight color:"), _("Highlighted guideline color"), _("Color of a guideline when it is under mouse"), "guidehicolor", "guidehiopacity", _wr),
_rcb_sgui.setActive (nv->showguides);
_rcp_gui.setRgba32 (nv->guidecolor);
_rcp_hgui.setRgba32 (nv->guidehicolor);
+ _rcbsng.setActive(nv->snap_manager.snapprefs.getSnapModeGuide());
//-----------------------------------------------------------snap page