summaryrefslogtreecommitdiffstats
path: root/src/widgets/toolbox.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2011-08-23 19:17:19 +0000
committerDiederik van Lierop <mail@diedenrezi.nl>2011-08-23 19:17:19 +0000
commitbc41980c93b8627b286daeb51bc29806a6c2b0f0 (patch)
treeea9d915ced405201cea4a8ac2a68de4a60bd6610 /src/widgets/toolbox.cpp
parentFilters. Filters clean-up again. (diff)
downloadinkscape-bc41980c93b8627b286daeb51bc29806a6c2b0f0.tar.gz
inkscape-bc41980c93b8627b286daeb51bc29806a6c2b0f0.zip
1) Use the "snap guides" button both for guides being snap sources, as well as for guides being snap targets
2) Remove some redundant guide-snapping code from the object snapper, (bzr r10576)
Diffstat (limited to 'src/widgets/toolbox.cpp')
-rw-r--r--src/widgets/toolbox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp
index 780495819..26947979d 100644
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
@@ -2188,7 +2188,7 @@ static void toggle_snap_callback(GtkToggleAction *act, gpointer data) //data poi
v = nv->snap_manager.snapprefs.isSnapButtonEnabled(Inkscape::SNAPTARGET_GRID);
sp_repr_set_boolean(repr, "inkscape:snap-grids", !v);
break;
- case SP_ATTR_INKSCAPE_SNAP_TO_GUIDE:
+ case SP_ATTR_INKSCAPE_SNAP_GUIDE:
v = nv->snap_manager.snapprefs.isSnapButtonEnabled(Inkscape::SNAPTARGET_GUIDE);
sp_repr_set_boolean(repr, "inkscape:snap-to-guides", !v);
break;
@@ -2432,8 +2432,8 @@ void setup_snap_toolbox(GtkWidget *toolbox, SPDesktop *desktop)
{
InkToggleAction* act = ink_toggle_action_new("ToggleSnapToGuides",
- _("Guides"), _("Snap to guides"), INKSCAPE_ICON("guides"), secondarySize,
- SP_ATTR_INKSCAPE_SNAP_TO_GUIDE);
+ _("Guides"), _("Snap guides"), INKSCAPE_ICON("guides"), secondarySize,
+ SP_ATTR_INKSCAPE_SNAP_GUIDE);
gtk_action_group_add_action( mainActions->gobj(), GTK_ACTION( act ) );
g_signal_connect_after( G_OBJECT(act), "toggled", G_CALLBACK(toggle_snap_callback), toolbox );