Пример #1
0
 private void OnFocusInEvent(object o, FocusInEventArgs args)
 {
     if (settings_daemon != null)
     {
         settings_daemon.GrabMediaPlayerKeys(app_name, 0);
     }
 }
Пример #2
0
        public GnomeMMKeys()
        {
            settings_daemon = Bus.Session.GetObject <ISettingsDaemon>(BusName, new ObjectPath(ObjectPath));;

            settings_daemon.GrabMediaPlayerKeys(app_name, 0);
            settings_daemon.MediaPlayerKeyPressed += OnMediaPlayerKeyPressed;

            Global.Playlist.FocusInEvent
                += new FocusInEventHandler(OnFocusInEvent);
        }