This commit is contained in:
2017-07-02 00:03:21 +02:00
parent 055459fa7a
commit 5ec5a9a151
10 changed files with 398 additions and 362 deletions

View File

@@ -66,15 +66,15 @@ fn on_tray_icon_scroll_event(appstate: &AppS,
event: &gdk::EventScroll)
-> bool {
let audio = &appstate.audio;
let scroll_dir: gdk::ScrollDirection = event.get_direction();
match scroll_dir {
gdk::ScrollDirection::Up => {
try_wr!(appstate.acard.borrow().increase_vol(AudioUserTrayIcon),
false);
try_wr!(appstate.audio.increase_vol(AudioUserTrayIcon), false);
}
gdk::ScrollDirection::Down => {
try_wr!(appstate.acard.borrow().decrease_vol(AudioUserTrayIcon),
false);
try_wr!(appstate.audio.decrease_vol(AudioUserTrayIcon), false);
}
_ => (),
}