//! The hotkeys subsystem. //! //! This handles the PNMixer-rs specific hotkeys as a whole, //! including communication with Xlib and intercepting key presses //! before they can be interpreted by Gtk/Gdk. use audio::{Audio, AudioUser}; use errors::*; use errors; use gdk; use gdk_sys; use gdk_x11; use glib::translate::*; use glib_sys; use hotkey::*; use prefs::*; use std::mem; use std::rc::Rc; use w_result::*; use x11; /// The possible Hotkeys for manipulating the volume. pub struct Hotkeys { enabled: bool, mute_key: Option, up_key: Option, down_key: Option, // need this to access audio in 'key_filter' audio: Rc