From 1f25254a3f029b24b3e722c0cca7e043f5c4a9ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 9 Apr 2009 21:40:35 +0000 Subject: [PATCH] * Fixed the non-working volume update when using the mouse wheel - only the slider position was updated, not the actual volume. * Use InvokeNotify() for wheel changes so that we correctly notify listeners. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30084 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/desklink/VolumeControl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bin/desklink/VolumeControl.cpp b/src/bin/desklink/VolumeControl.cpp index 7be5cd9dc7..ac08e3c6a7 100644 --- a/src/bin/desklink/VolumeControl.cpp +++ b/src/bin/desklink/VolumeControl.cpp @@ -245,8 +245,7 @@ VolumeControl::MessageReceived(BMessage* msg) if (newValue != currentValue) { SetValue(newValue); - if (ModificationMessage() != NULL) - Messenger().SendMessage(ModificationMessage()); + InvokeNotify(ModificationMessage(), B_CONTROL_MODIFIED); } break; }