Esempio n. 1
0
        protected override void OnSetScrollAdjustments(Adjustment hAdjustement, Adjustment vAdjustement)
        {
            if (editorHAdjustement != null)
            {
                editorHAdjustement.ValueChanged -= HandleHAdjustementValueChanged;
            }
            if (editorVAdjustement != null)
            {
                editorVAdjustement.ValueChanged -= HandleHAdjustementValueChanged;
            }

            if (hAdjustement != null)
            {
                hAdjustement.ValueChanged += HandleHAdjustementValueChanged;
            }
            if (vAdjustement != null)
            {
                vAdjustement.ValueChanged += HandleHAdjustementValueChanged;
            }

            editorHAdjustement = hAdjustement;
            editorVAdjustement = vAdjustement;
            textEditorWidget.SetScrollAdjustments(hAdjustement, vAdjustement);
        }