From 03018c2f56855c6c9006f7feace63febdef7bc52 Mon Sep 17 00:00:00 2001 From: Stefano Facchini Date: Fri, 20 Oct 2017 17:10:39 +0200 Subject: 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. --- src/desktop.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/desktop.h') 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 &list, Geom::Point const &p) const; -- cgit v1.2.3