summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2016-03-22 19:10:37 +0000
committerMartin Owens <doctormo@gmail.com>2016-03-22 19:10:37 +0000
commit66aeeb4707125e2d45ba460f84edfc6516773d7f (patch)
tree2c6a0324dc7708af15e0e44aa9c2d097d6825f37 /src
parentAdd prependUnit function (diff)
downloadinkscape-66aeeb4707125e2d45ba460f84edfc6516773d7f.tar.gz
inkscape-66aeeb4707125e2d45ba460f84edfc6516773d7f.zip
Make sure adjustment is attached to spin button
(bzr r14738)
Diffstat (limited to 'src')
-rw-r--r--src/widgets/toolbox.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp
index 705c16d1f..3389f82f9 100644
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
@@ -55,6 +55,7 @@
#include "ui/tools-switch.h"
#include "../ui/icon-names.h"
#include "../ui/widget/style-swatch.h"
+#include "../ui/widget/unit-tracker.h"
#include "../verbs.h"
#include "../widgets/button.h"
#include "../widgets/spinbutton-events.h"
@@ -1123,6 +1124,10 @@ EgeAdjustmentAction * create_adjustment_action( gchar const *name,
g_object_set_data( dataKludge, prefs->getEntry(path).getEntryName().data(), adj );
}
+ if (unit_tracker) {
+ unit_tracker->addAdjustment(adj);
+ }
+
// Using a cast just to make sure we pass in the right kind of function pointer
g_object_set( G_OBJECT(act), "tool-post", static_cast<EgeWidgetFixup>(sp_set_font_size_smaller), NULL );