From 1442b0b18b3b70e636f4c8d0f5591f1ff1afa55e Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Thu, 13 Jun 2019 02:24:21 +0200 Subject: Try to fix issue with focus with thomas and add also stops to combos and unitcombos --- src/ui/widget/unit-menu.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ui/widget/unit-menu.cpp') 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 -- cgit v1.2.3