summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/unit-menu.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-06-13 00:24:21 +0000
committerJabiertxof <jabier.arraiza@marker.es>2019-06-13 00:24:32 +0000
commit1442b0b18b3b70e636f4c8d0f5591f1ff1afa55e (patch)
tree098c1eec28dbede627fcc643818d15022023fc5c /src/ui/widget/unit-menu.cpp
parentImprove event handle (diff)
downloadinkscape-1442b0b18b3b70e636f4c8d0f5591f1ff1afa55e.tar.gz
inkscape-1442b0b18b3b70e636f4c8d0f5591f1ff1afa55e.zip
Try to fix issue with focus with thomas and add also stops to combos and unitcombos
Diffstat (limited to 'src/ui/widget/unit-menu.cpp')
-rw-r--r--src/ui/widget/unit-menu.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/widget/unit-menu.cpp b/src/ui/widget/unit-menu.cpp
index 938851265..4648c6f7c 100644
--- a/src/ui/widget/unit-menu.cpp
+++ b/src/ui/widget/unit-menu.cpp
@@ -21,6 +21,8 @@ namespace Widget {
UnitMenu::UnitMenu() : _type(UNIT_TYPE_NONE)
{
set_active(0);
+ gtk_widget_add_events(GTK_WIDGET(gobj()), GDK_SCROLL_MASK | GDK_SMOOTH_SCROLL_MASK);
+ signal_scroll_event().connect(sigc::mem_fun(*this, &UnitMenu::on_scroll_event));
}
UnitMenu::~UnitMenu() = default;
@@ -132,6 +134,11 @@ bool UnitMenu::isRadial() const
return getUnitType() == UNIT_TYPE_RADIAL;
}
+bool UnitMenu::on_scroll_event(GdkEventScroll* event)
+{
+ return false;
+}
+
} // namespace Widget
} // namespace UI
} // namespace Inkscape