summaryrefslogtreecommitdiffstats
path: root/src/flood-context.cpp
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-07-31 19:11:20 +0000
committerMarkus Engel <markus.engel@tum.de>2013-07-31 19:11:20 +0000
commit989abbac025a8b3349748d19a613a08586c5fdcd (patch)
tree157b5f656c6344784aea3c498fa60199bd7d2958 /src/flood-context.cpp
parentFurther refactoring of EventContexts. (diff)
downloadinkscape-989abbac025a8b3349748d19a613a08586c5fdcd.tar.gz
inkscape-989abbac025a8b3349748d19a613a08586c5fdcd.zip
Fixed SPObject ctor and dtor; removed singleton.h; some smaller changes.
(bzr r11608.1.110)
Diffstat (limited to 'src/flood-context.cpp')
-rw-r--r--src/flood-context.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/flood-context.cpp b/src/flood-context.cpp
index 824c6e329..09a1d5742 100644
--- a/src/flood-context.cpp
+++ b/src/flood-context.cpp
@@ -92,7 +92,6 @@ const std::string& SPFloodContext::getPrefsPath() {
const std::string SPFloodContext::prefsPath = "/tools/paintbucket";
SPFloodContext::SPFloodContext() : SPEventContext() {
- this->_message_context = 0;
this->cursor_shape = cursor_paintbucket_xpm;
this->hot_x = 11;
this->hot_y = 30;
@@ -115,10 +114,6 @@ SPFloodContext::~SPFloodContext() {
if (this->item) {
this->finishItem();
}
-
- if (this->_message_context) {
- delete this->_message_context;
- }
}
/**
@@ -145,8 +140,6 @@ void SPFloodContext::setup() {
sigc::mem_fun(this, &SPFloodContext::selection_changed)
);
- this->_message_context = new Inkscape::MessageContext((this->desktop)->messageStack());
-
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
if (prefs->getBool("/tools/paintbucket/selcue")) {
@@ -1231,7 +1224,7 @@ bool SPFloodContext::root_handler(GdkEvent* event) {
}
void SPFloodContext::finishItem() {
- this->_message_context->clear();
+ this->message_context->clear();
if (this->item != NULL) {
this->item->updateRepr();