diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-04-01 22:32:34 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-04-01 22:32:34 +0000 |
| commit | f98df6e3074639847b1528609c91123bf03e44d1 (patch) | |
| tree | bf877622a0faa47157c9544b4d405c72e8e8eb79 /src/desktop.cpp | |
| parent | discard stderr from nested inkscape invocations (diff) | |
| download | inkscape-f98df6e3074639847b1528609c91123bf03e44d1.tar.gz inkscape-f98df6e3074639847b1528609c91123bf03e44d1.zip | |
removed leftover debug messages. Toggling new grids now works. Almost ready to comment-out old grid code.
(bzr r2806)
Diffstat (limited to 'src/desktop.cpp')
| -rw-r--r-- | src/desktop.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp index 0d7d43646..187dcd010 100644 --- a/src/desktop.cpp +++ b/src/desktop.cpp @@ -1094,6 +1094,14 @@ void SPDesktop::clearWaitingCursor() sp_event_context_update_cursor(sp_desktop_event_context(this)); } +void SPDesktop::toggleGrid() +{ + for ( GSList const *l = namedview->grids; l != NULL; l = l->next) { + Inkscape::CanvasGrid *grid = (Inkscape::CanvasGrid*) l->data; + grid->toggle_visibility(); + } +} + //---------------------------------------------------------------------- // Callback implementations. The virtual ones are connected by the view. |
