Beispiel #1
0
 protected override bool OnLeaveNotifyEvent(Gdk.EventCrossing evnt)
 {
     if (CursorLocation.HasValue)
     {
         CursorLocation = null;
         QueueDraw();
     }
     return(base.OnLeaveNotifyEvent(evnt));
 }
Beispiel #2
0
        protected override bool OnMotionNotifyEvent(Gdk.EventMotion evnt)
        {
            TreePath path;

            GetPathAtPos((int)evnt.X, (int)evnt.Y, out path);

            // Diff cells need to be redrawn so they can show the updated selected line
            if (path != null && path.Depth == 2)
            {
                CursorLocation = new Gdk.Point((int)evnt.X, (int)evnt.Y);
                //FIXME: we should optimize these draws
                QueueDraw();
            }
            else if (CursorLocation.HasValue)
            {
                CursorLocation = null;
                QueueDraw();
            }

            return(base.OnMotionNotifyEvent(evnt));
        }
Beispiel #3
0
		protected override bool OnLeaveNotifyEvent (Gdk.EventCrossing evnt)
		{
			if (CursorLocation.HasValue) {
				CursorLocation = null;
				QueueDraw ();
			}
			return base.OnLeaveNotifyEvent (evnt);
Beispiel #4
0
		protected override bool OnMotionNotifyEvent (Gdk.EventMotion evnt)
		{
			TreePath path;
			GetPathAtPos ((int)evnt.X, (int)evnt.Y, out path);

			// Diff cells need to be redrawn so they can show the updated selected line
			if (path != null && path.Depth == 2) {
				CursorLocation = new Gdk.Point ((int)evnt.X, (int)evnt.Y);
				//FIXME: we should optimize these draws
				QueueDraw ();
			} else if (CursorLocation.HasValue) {
				CursorLocation = null;
				QueueDraw ();
			}

			return base.OnMotionNotifyEvent (evnt);