diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2012-05-09 07:54:48 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2012-05-09 07:54:48 +0000 |
| commit | 0459094999e0298341ecad677464043528d1036f (patch) | |
| tree | b3645de4ef972c8a65910c4890bc6e2d55fdbab9 /src/text-context.cpp | |
| parent | Unified variable names as scoping now makes the code safe. (diff) | |
| download | inkscape-0459094999e0298341ecad677464043528d1036f.tar.gz inkscape-0459094999e0298341ecad677464043528d1036f.zip | |
Centralized line creation and enhanced visibility.
(bzr r11350)
Diffstat (limited to 'src/text-context.cpp')
| -rw-r--r-- | src/text-context.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/text-context.cpp b/src/text-context.cpp index 2bf172f43..a48134d75 100644 --- a/src/text-context.cpp +++ b/src/text-context.cpp @@ -49,6 +49,7 @@ #include "style.h" #include "text-context.h" #include "text-editing.h" +#include "ui/control-manager.h" #include "verbs.h" #include "xml/node-event-vector.h" #include "xml/repr.h" @@ -58,6 +59,7 @@ #include "compat-key-syms.h" #endif +using Inkscape::ControlManager; using Inkscape::DocumentUndo; static void sp_text_context_class_init(SPTextContextClass *klass); @@ -200,8 +202,7 @@ static void sp_text_context_setup(SPEventContext *ec) timeout /= 2; } - tc->cursor = SP_CTRLLINE(sp_canvas_item_new(sp_desktop_controls(desktop), SP_TYPE_CTRLLINE, NULL)); - tc->cursor->setCoords(100, 0, 100, 100); + tc->cursor = ControlManager::getManager().createControlLine(sp_desktop_controls(desktop), Geom::Point(100, 0), Geom::Point(100, 100)); tc->cursor->setRgba32(0x000000ff); sp_canvas_item_hide(tc->cursor); |
