Exemple #1
0
        // create the main theatre widget
        public Theatre()
        {
            video_widget = new VideoWidget (true);
            video_widget_fullscreen = new VideoWidget (false);
            fullscreen = new Fullscreen (video_widget_fullscreen);

            media_tree = new TreeView (media_store);

            media_tree.AppendColumn (null, new CellRendererText (), new TreeCellDataFunc (renderMedia));
            media_tree.HeadersVisible = false;

            ScrolledWindow scrolled_tree = new ScrolledWindow ();
            scrolled_tree.Add (media_tree);
            scrolled_tree.ShadowType = ShadowType.In;

            main_splitter.Add1 (scrolled_tree);
            main_splitter.Add2 (video_widget);

            media_tree.RowActivated += tree_activated;

            video_widget.ButtonPressEvent += video_button_press;
            video_widget_fullscreen.ButtonPressEvent += video_button_press;

            video_widget.ButtonReleaseEvent += video_button_release;
            video_widget_fullscreen.ButtonReleaseEvent += video_button_release;

            Global.Core.Fuse.MediaControls.MediaEngine.FoundVideoInfo += found_video_info;
        }
Exemple #2
0
        // create the window
        public Fullscreen(VideoWidget video_widget)
        {
            window = new Window ("Fuse - Fullscreen");
            controls = new FullscreenControls ();

            window.Add (video_widget);

            window.Events = Gdk.EventMask.PointerMotionMask;
            window.MotionNotifyEvent += window_motion;
            window.EnterNotifyEvent += window_enter;
        }