Example #1
0
 public void eventPositionCursor(object o, GLib.NotifyArgs args)
 {
     FindMatchesInBuffer(textview3.Buffer);
     IsEditing();
     AddLineNumbers();
     Syncronize2Elements();
 }
Example #2
0
        void NotifyCallback(IntPtr handle, IntPtr pspec, IntPtr gch)
        {
            try {
                GLib.Signal sig = ((GCHandle)gch).Target as GLib.Signal;
                if (sig == null)
                {
                    throw new Exception("Unknown signal GC handle received " + gch);
                }

                NotifyArgs args = new NotifyArgs();
                args.Args    = new object[1];
                args.Args[0] = pspec;
                NotifyHandler handler = (NotifyHandler)sig.Handler;
                handler(GLib.Object.GetObject(handle), args);
            } catch (Exception e) {
                ExceptionManager.RaiseUnhandledException(e, false);
            }
        }
Example #3
0
        private void OnExpandedChanged(object o, GLib.NotifyArgs a)
        {
            if (expander.Expanded)
            {
                size_alloc_lock = true;
                paned.Position  = (int)(paned.Allocation.Height * stored_pos);
            }
            else
            {
                int e_reqh  = expander.SizeRequest().Height;
                int ec_reqh = expander.Child.SizeRequest().Height;

                int height = (e_reqh - ec_reqh);

                expander.SetSizeRequest(-1, (height >= -1) ? height : -1);
                Snap();
                expander.SetSizeRequest(-1, -1);
            }
        }
 protected virtual void OnOpacityChanged(object sender, NotifyArgs args)
 {
     SetShaderParamFloat ("alpha", (float) this.Opacity / 255f);
 }
 protected virtual void OnAngleChanged(object sender, NotifyArgs args)
 {
     SetShaderParamFloat ("angle", (float) ((double) GetProperty("rotation-angle-y") * Math.PI / 180));
 }
 protected virtual void OnAnchorChanged(object sender, NotifyArgs args)
 {
     SetShaderParamFloat ("z", (float) GetProperty("anchor-x") / (float) (Width));
 }
Example #7
0
        void NotifyCallback(IntPtr handle, IntPtr pspec, IntPtr gch)
        {
            try {
                GLib.Signal sig = ((GCHandle) gch).Target as GLib.Signal;
                if (sig == null)
                    throw new Exception("Unknown signal GC handle received " + gch);

                NotifyArgs args = new NotifyArgs ();
                args.Args = new object[1];
                args.Args[0] = pspec;
                NotifyHandler handler = (NotifyHandler) sig.Handler;
                handler (GLib.Object.GetObject (handle), args);
            } catch (Exception e) {
                ExceptionManager.RaiseUnhandledException (e, false);
            }
        }
        private void TrackListViewColumnNotifyHandler(object o, NotifyArgs args)
        {
            TrackProperty property;
            TrackListViewColumn column = o as TrackListViewColumn;
            if (!ColumnsToProperties.TryGetValue((TrackListViewColumn) o, out property))
                return;

            int width;
            if (!_settings.ColumnWidths.TryGetValue(property, out width))
                return;

            if (column == null || width == column.Width || column.Width <= 5)
                return;

            _settings.ColumnWidths.Remove(property);
            _settings.ColumnWidths.Add(property, column.Width);
            _settings.Save();
        }