summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 04805e6)
raw | patch | inline | side by side (parent: 04805e6)
author | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Tue, 13 Jan 2009 20:02:33 +0000 (20:02 +0000) | ||
committer | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Tue, 13 Jan 2009 20:02:33 +0000 (20:02 +0000) |
- rewrite the tooltip
- disable the button when snapping to cusp nodes is off
- disable the button when snapping to cusp nodes is off
src/widgets/toolbox.cpp | patch | blob | history |
index 4b3ea042f08e9ee6f67297e0b36dfadca384c9d4..571e440f202930fff0b496113a8e27a29e2115b5 100644 (file)
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
{
InkToggleAction* act = ink_toggle_action_new("ToggleSnapToItemNode", // "name"
_("To nodes"), // "label"
- _("Toggle snapping to nodes"), // "tooltip"
+ _("Toggle snapping to cusp nodes"), // "tooltip"
"toggle_snap_to_nodes", // "iconId"
secondarySize,
SP_ATTR_INKSCAPE_OBJECT_NODES);
{
InkToggleAction* act = ink_toggle_action_new("ToggleSnapToSmoothNodes", // "name"
_("Smooth nodes"), // "label"
- _("Toggle snapping to smooth nodes"), // "tooltip"
+ _("Consider smooth nodes too, not just cusp nodes"),// "tooltip"
"toggle_snap_to_smooth_nodes", // "iconId"
secondarySize,
SP_ATTR_INKSCAPE_SNAP_SMOOTH_NODES);
@@ -2230,10 +2230,11 @@ void update_snap_toolbox(SPDesktop *desktop, SPEventContext */*eventcontext*/, G
gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(act6->gobj()), nv->snap_manager.object.getSnapToItemPath());
gtk_action_set_sensitive(GTK_ACTION(act6->gobj()), c1 && c3);
- gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(act7->gobj()), nv->snap_manager.object.getSnapToItemNode());
+ bool const c4 = nv->snap_manager.object.getSnapToItemNode();
+ gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(act7->gobj()), c4);
gtk_action_set_sensitive(GTK_ACTION(act7->gobj()), c1 && c3);
gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(act8->gobj()), nv->snap_manager.snapprefs.getSnapSmoothNodes());
- gtk_action_set_sensitive(GTK_ACTION(act8->gobj()), c1 && c3);
+ gtk_action_set_sensitive(GTK_ACTION(act8->gobj()), c1 && c3 && c4);
gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(act10->gobj()), nv->snap_manager.snapprefs.getSnapIntersectionCS());
gtk_action_set_sensitive(GTK_ACTION(act10->gobj()), c1 && c3);
gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(act11->gobj()), nv->snap_manager.snapprefs.getIncludeItemCenter());