protected override void OnShown()
        {
            base.OnShown();
            video_event.GrabFocus();
            // Ugly hack to ensure the video window is mapped/realized
            if (!video_display_initial_shown)
            {
                video_display_initial_shown = true;

                if (video_display != null)
                {
                    video_display.Show();
                }

                GLib.Idle.Add(delegate {
                    CheckIdle();
                    return(false);
                });
                return;
            }

            CheckIdle();
        }
Exemplo n.º 2
0
 protected override void OnShown()
 {
     base.OnShown();
     video_event.GrabFocus();
 }