summaryrefslogtreecommitdiffstats
path: root/src/desktop.h
diff options
context:
space:
mode:
authorStefano Facchini <stefano.facchini@gmail.com>2017-10-20 15:10:39 +0000
committerStefano Facchini <stefano.facchini@gmail.com>2017-11-13 09:28:49 +0000
commit03018c2f56855c6c9006f7feace63febdef7bc52 (patch)
tree6bd1ec198f08b5a63cca206ad3f7de752ef08d96 /src/desktop.h
parentMerge branch 'master' into powerpencil (diff)
downloadinkscape-03018c2f56855c6c9006f7feace63febdef7bc52.tar.gz
inkscape-03018c2f56855c6c9006f7feace63febdef7bc52.zip
Refactor SPDesktop::setEventContext to allow for unsetting the current tool
Passing the empty string as toolName has the effect of unsetting and freeing the current tool. This will be used in a future commit.
Diffstat (limited to 'src/desktop.h')
-rw-r--r--src/desktop.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/desktop.h b/src/desktop.h
index 330d95607..0ddf3805b 100644
--- a/src/desktop.h
+++ b/src/desktop.h
@@ -310,10 +310,7 @@ public:
void change_document (SPDocument *document);
- void set_event_context2(const std::string& toolName);
-
- //void set_event_context (GType type, const gchar *config);
- //void push_event_context (GType type, const gchar *config, unsigned int key);
+ void setEventContext(const std::string& toolName);
void set_coordinate_status (Geom::Point p);
SPItem *getItemFromListAtPointBottom(const std::vector<SPItem*> &list, Geom::Point const &p) const;