コード例 #1
0
        private void CreateScopeWindow()
        {
            if (scope_window != null)
            {
                return;
            }

            scope_window              = new Window("Scope");
            scope_window.DeleteEvent += delegate {
                scope_window.Destroy();
                scope_window = null;
                GLib.Source.Remove(poll_timeout);
                poll_timeout = 0;
            };

            scope_view = new ScopeView();
            scope_window.Add(scope_view);
            scope_window.SetSizeRequest(150, 80);
            scope_window.ShowAll();

            poll_timeout = GLib.Timeout.Add(150, PollScope);
        }
コード例 #2
0
        private void CreateScopeWindow()
        {
            if(scope_window != null) {
                return;
            }

            scope_window = new Window("Scope");
            scope_window.DeleteEvent += delegate {
                scope_window.Destroy();
                scope_window = null;
                GLib.Source.Remove(poll_timeout);
                poll_timeout = 0;
            };

            scope_view = new ScopeView();
            scope_window.Add(scope_view);
            scope_window.SetSizeRequest(150, 80);
            scope_window.ShowAll();

            poll_timeout = GLib.Timeout.Add(150, PollScope);
        }