![](https://secure.gravatar.com/avatar/5d49ef27f10882057d4eac031e75c776.jpg?s=120&d=mm&r=g)
Hello all, I was cleaning up my branch of last year's GSoC project - Recolor Artwork. I was using a piece of code that involved SPEventContext but this doesn't compile anymore. I guess the structure was cppified by another GSoCer: Markus Engel. Well, I can't get around to how to use the alternate Event structure now. Can someone shed some light on it ?
The piece of code that didn't compile was: void RecolorArtworkWidget::eventContextCB(SPDesktop * /*desktop*/, SPEventContext * /*eventcontext*/) { performUpdate(); }
![](https://secure.gravatar.com/avatar/085f3f0ed546c1fab83680c7689443af.jpg?s=120&d=mm&r=g)
Hi,
well, I'm not a GSoCer, but anyway: Look into ui/tools/tool-base.h, that's the old SPEventContext.
Regards,
Markus
Von: Arshdeep Singh [mailto:moduli16@...400...] Gesendet: Freitag, 21. Februar 2014 07:53 An: Inkscape Devel List Betreff: [Inkscape-devel] SPEventContext
Hello all, I was cleaning up my branch of last year's GSoC project - Recolor Artwork. I was using a piece of code that involved SPEventContext but this doesn't compile anymore. I guess the structure was cppified by another GSoCer: Markus Engel. Well, I can't get around to how to use the alternate Event structure now. Can someone shed some light on it ?
The piece of code that didn't compile was:
void RecolorArtworkWidget::eventContextCB(SPDesktop * /*desktop*/, SPEventContext * /*eventcontext*/)
{
performUpdate();
}
participants (2)
-
Arshdeep Singh
-
Markus Engel