diff --git a/src/spiral-context.cpp b/src/spiral-context.cpp
index 348cd88118bbfd440cfbcbdbd9a8fe4c276a865c..2e4214f066308759ed214b89a44e9c85b3d2a2e1 100644 (file)
--- a/src/spiral-context.cpp
+++ b/src/spiral-context.cpp
#include "desktop-style.h"
#include "message-context.h"
#include "pixmaps/cursor-spiral.xpm"
-#include "pixmaps/cursor-spiral.pixbuf"
#include "spiral-context.h"
#include "sp-metrics.h"
#include <glibmm/i18n.h>
SPEventContext *event_context = SP_EVENT_CONTEXT(spiral_context);
event_context->cursor_shape = cursor_spiral_xpm;
- event_context->cursor_pixbuf = gdk_pixbuf_new_from_inline(
- -1,
- cursor_spiral_pixbuf,
- FALSE,
- NULL);
event_context->hot_x = 4;
event_context->hot_y = 4;
event_context->xp = 0;
}
/* Create object */
- Inkscape::XML::Node *repr = sp_repr_new("svg:path");
+ Inkscape::XML::Document *xml_doc = sp_document_repr_doc(SP_EVENT_CONTEXT_DOCUMENT(sc));
+ Inkscape::XML::Node *repr = xml_doc->createElement("svg:path");
repr->setAttribute("sodipodi:type", "spiral");
/* Set style */
sp_desktop_selection(desktop)->set(sc->item);
sp_document_done(sp_desktop_document(desktop), SP_VERB_CONTEXT_SPIRAL,
- /* TODO: annotate */ "spiral-context.cpp:462");
+ _("Create spiral"));
sc->item = NULL;
}