From fa98857205dbaf2c15bb302e3eb28f4738fb6415 Mon Sep 17 00:00:00 2001 From: Alexander Valavanis Date: Sat, 2 Feb 2019 20:16:00 +0000 Subject: TweakToolbar: GtkAction migration --- src/ui/tools/tweak-tool.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ui/tools/tweak-tool.cpp') diff --git a/src/ui/tools/tweak-tool.cpp b/src/ui/tools/tweak-tool.cpp index d8db9ceaf..b8cf5549c 100644 --- a/src/ui/tools/tweak-tool.cpp +++ b/src/ui/tools/tweak-tool.cpp @@ -1416,7 +1416,7 @@ bool TweakTool::root_handler(GdkEvent* event) { if (this->width > 1.0) { this->width = 1.0; } - desktop->setToolboxAdjustmentValue ("altx-tweak", this->width * 100); // the same spinbutton is for alt+x + desktop->setToolboxAdjustmentValue ("tweak-width", this->width * 100); // the same spinbutton is for alt+x sp_tweak_update_area(this); ret = TRUE; } @@ -1428,7 +1428,7 @@ bool TweakTool::root_handler(GdkEvent* event) { if (this->width < 0.01) { this->width = 0.01; } - desktop->setToolboxAdjustmentValue ("altx-tweak", this->width * 100); + desktop->setToolboxAdjustmentValue ("tweak-width", this->width * 100); sp_tweak_update_area(this); ret = TRUE; } @@ -1436,21 +1436,21 @@ bool TweakTool::root_handler(GdkEvent* event) { case GDK_KEY_Home: case GDK_KEY_KP_Home: this->width = 0.01; - desktop->setToolboxAdjustmentValue ("altx-tweak", this->width * 100); + desktop->setToolboxAdjustmentValue ("tweak-width", this->width * 100); sp_tweak_update_area(this); ret = TRUE; break; case GDK_KEY_End: case GDK_KEY_KP_End: this->width = 1.0; - desktop->setToolboxAdjustmentValue ("altx-tweak", this->width * 100); + desktop->setToolboxAdjustmentValue ("tweak-width", this->width * 100); sp_tweak_update_area(this); ret = TRUE; break; case GDK_KEY_x: case GDK_KEY_X: if (MOD__ALT_ONLY(event)) { - desktop->setToolboxFocusTo ("altx-tweak"); + desktop->setToolboxFocusTo ("tweak-width"); ret = TRUE; } break; -- cgit v1.2.3