From bef3ac7c63137da8228946e803f65cb850455459 Mon Sep 17 00:00:00 2001 From: Alexander Valavanis Date: Sun, 10 Feb 2019 14:20:08 +0000 Subject: SprayToolbar: GtkAction migration --- src/ui/tools/spray-tool.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ui/tools/spray-tool.cpp') diff --git a/src/ui/tools/spray-tool.cpp b/src/ui/tools/spray-tool.cpp index 907b04a9a..4ae36ed23 100644 --- a/src/ui/tools/spray-tool.cpp +++ b/src/ui/tools/spray-tool.cpp @@ -1422,7 +1422,7 @@ bool SprayTool::root_handler(GdkEvent* event) { this->width = 1.0; } // The same spinbutton is for alt+x - desktop->setToolboxAdjustmentValue("altx-spray", this->width * 100); + desktop->setToolboxAdjustmentValue("spray-width", this->width * 100); sp_spray_update_area(this); ret = TRUE; } @@ -1434,7 +1434,7 @@ bool SprayTool::root_handler(GdkEvent* event) { if (this->width < 0.01) { this->width = 0.01; } - desktop->setToolboxAdjustmentValue("altx-spray", this->width * 100); + desktop->setToolboxAdjustmentValue("spray-width", this->width * 100); sp_spray_update_area(this); ret = TRUE; } @@ -1442,21 +1442,21 @@ bool SprayTool::root_handler(GdkEvent* event) { case GDK_KEY_Home: case GDK_KEY_KP_Home: this->width = 0.01; - desktop->setToolboxAdjustmentValue("altx-spray", this->width * 100); + desktop->setToolboxAdjustmentValue("spray-width", this->width * 100); sp_spray_update_area(this); ret = TRUE; break; case GDK_KEY_End: case GDK_KEY_KP_End: this->width = 1.0; - desktop->setToolboxAdjustmentValue("altx-spray", this->width * 100); + desktop->setToolboxAdjustmentValue("spray-width", this->width * 100); sp_spray_update_area(this); ret = TRUE; break; case GDK_KEY_x: case GDK_KEY_X: if (MOD__ALT_ONLY(event)) { - desktop->setToolboxFocusTo("altx-spray"); + desktop->setToolboxFocusTo("spray-width"); ret = TRUE; } break; -- cgit v1.2.3