diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2014-03-05 23:30:47 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2014-03-05 23:30:47 +0000 |
| commit | 7366f7cc4018447f99dc42c22d9e67a504cd059c (patch) | |
| tree | 4a5fb9ee09441ce9150ca14799e6d6e4d01ea005 /src/ui/tools/tool-base.h | |
| parent | When an externally linked image is modified, mark it for update instead (diff) | |
| download | inkscape-7366f7cc4018447f99dc42c22d9e67a504cd059c.tar.gz inkscape-7366f7cc4018447f99dc42c22d9e67a504cd059c.zip | |
Derive ToolBase from sigc::trackable for easier slot management.
Fix TextTool to use mem_fun instead of ptr_fun to avoid the generation
of stale slots.
(bzr r13118)
Diffstat (limited to 'src/ui/tools/tool-base.h')
| -rw-r--r-- | src/ui/tools/tool-base.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/tools/tool-base.h b/src/ui/tools/tool-base.h index 3a536fc2c..eb8908f3e 100644 --- a/src/ui/tools/tool-base.h +++ b/src/ui/tools/tool-base.h @@ -14,6 +14,7 @@ #include <glib-object.h> #include <gdk/gdk.h> +#include <sigc++/trackable.h> #include "knot.h" #include "2geom/forward.h" @@ -104,7 +105,9 @@ void sp_event_context_snap_delay_handler(ToolBase *ec, gpointer const dse_item, * plus few abstract base classes. Writing a new tool involves * subclassing ToolBase. */ -class ToolBase { +class ToolBase + : public sigc::trackable +{ public: void enableSelectionCue (bool enable=true); void enableGrDrag (bool enable=true); |
