summaryrefslogtreecommitdiffstats
path: root/src/ui/toolbar/spray-toolbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/toolbar/spray-toolbar.cpp')
-rw-r--r--src/ui/toolbar/spray-toolbar.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ui/toolbar/spray-toolbar.cpp b/src/ui/toolbar/spray-toolbar.cpp
index 3656aae26..f38aee05e 100644
--- a/src/ui/toolbar/spray-toolbar.cpp
+++ b/src/ui/toolbar/spray-toolbar.cpp
@@ -72,12 +72,6 @@ Inkscape::UI::Dialog::CloneTiler *get_clone_tiler_panel(SPDesktop *desktop)
namespace Inkscape {
namespace UI {
namespace Toolbar {
-SprayToolbar::~SprayToolbar()
-{
- delete _usepressurewidth_pusher;
- delete _usepressurepopulation_pusher;
-}
-
GtkWidget *
SprayToolbar::prep(SPDesktop *desktop, GtkActionGroup* mainActions)
{
@@ -112,7 +106,7 @@ SprayToolbar::prep(SPDesktop *desktop, GtkActionGroup* mainActions)
INKSCAPE_ICON("draw-use-pressure"),
GTK_ICON_SIZE_MENU );
gtk_action_group_add_action( mainActions, GTK_ACTION(act) );
- holder->_usepressurewidth_pusher = new PrefPusher(GTK_TOGGLE_ACTION(act), "/tools/spray/usepressurewidth");
+ holder->_usepressurewidth_pusher.reset(new PrefPusher(GTK_TOGGLE_ACTION(act), "/tools/spray/usepressurewidth"));
}
{
@@ -229,7 +223,7 @@ SprayToolbar::prep(SPDesktop *desktop, GtkActionGroup* mainActions)
INKSCAPE_ICON("draw-use-pressure"),
GTK_ICON_SIZE_MENU );
gtk_action_group_add_action( mainActions, GTK_ACTION(act) );
- holder->_usepressurepopulation_pusher = new PrefPusher(GTK_TOGGLE_ACTION(act), "/tools/spray/usepressurepopulation");
+ holder->_usepressurepopulation_pusher.reset(new PrefPusher(GTK_TOGGLE_ACTION(act), "/tools/spray/usepressurepopulation"));
}
{ /* Rotation */