コード例 #1
0
        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);
                }
            }
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        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;
        }
コード例 #4
0
        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);
                }
            }
        }