diff options
| author | Martin Owens <doctormo@gmail.com> | 2016-03-22 19:10:37 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2016-03-22 19:10:37 +0000 |
| commit | 66aeeb4707125e2d45ba460f84edfc6516773d7f (patch) | |
| tree | 2c6a0324dc7708af15e0e44aa9c2d097d6825f37 /src/widgets/toolbox.cpp | |
| parent | Add prependUnit function (diff) | |
| download | inkscape-66aeeb4707125e2d45ba460f84edfc6516773d7f.tar.gz inkscape-66aeeb4707125e2d45ba460f84edfc6516773d7f.zip | |
Make sure adjustment is attached to spin button
(bzr r14738)
Diffstat (limited to 'src/widgets/toolbox.cpp')
| -rw-r--r-- | src/widgets/toolbox.cpp | 5 |
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 ); |
