protected virtual void SetupShade() { if (!has_shader) { if (shade == null) { shade = new Clutter.Texture(); Add(shade); shade.Show(); shade.Realize(); if (Stage != null) { SetShadeSwap(); } else { delayed_shade_swap = true; } } shade.SetSize(CoverManager.Behaviour.CoverWidth, CoverManager.Behaviour.CoverWidth * 2); shade.SetPosition(0, 0); shade.Opacity = 255; if (cover != null) { Shade.Raise(cover); } } }
public NowPlayingInterface() { display = new Embed (); display.Show (); ServiceManager.PlayerEngine.EngineBeforeInitialize += engine => { var clutter_engine = ServiceManager.PlayerEngine.ActiveEngine as ISupportClutter; if (clutter_engine == null) { throw new ApplicationException ("Banshee GStreamer engine does not have Clutter support"); } video_texture = new Clutter.Texture () { SyncSize = false }; clutter_engine.EnableClutterVideoSink (video_texture.Handle); }; ServiceManager.SourceManager.SourceAdded += OnSourceAdded; }
public NowPlayingInterface() { display = new Embed(); display.Show(); ServiceManager.PlayerEngine.EngineBeforeInitialize += engine => { var clutter_engine = ServiceManager.PlayerEngine.ActiveEngine as ISupportClutter; if (clutter_engine == null) { throw new ApplicationException("Banshee GStreamer engine does not have Clutter support"); } video_texture = new Clutter.Texture() { SyncSize = false }; clutter_engine.EnableClutterVideoSink(video_texture.Handle); }; ServiceManager.SourceManager.SourceAdded += OnSourceAdded; }
protected virtual void SetupShade() { if (!has_shader) { if (shade==null) { shade = new Clutter.Texture(); Add (shade); shade.Show (); shade.Realize (); if (Stage!=null) SetShadeSwap (); else delayed_shade_swap = true; } shade.SetSize (CoverManager.Behaviour.CoverWidth, CoverManager.Behaviour.CoverWidth * 2); shade.SetPosition (0, 0); shade.Opacity = 255; if (cover != null) { Shade.Raise (cover); } } }