~bjdodson/do/do-keybindings

« back to all changes in this revision

Viewing changes to Do/src/Do.Core/Controller.cs

  • Committer: Ben Dodson
  • Date: 2008-07-01 00:45:03 UTC
  • Revision ID: bdodson@handdog-20080701004503-0xoo0prrvrl74uow
update to have Control+C not update relevancy

Show diffs side-by-side

added added

removed removed

Lines of Context:
394
394
                        GLib.Timeout.Add (200,
395
395
                                          delegate {
396
396
                                Gdk.Threads.Enter ();
397
 
                                PerformAction (true);
 
397
 
 
398
                                // avoid PerformAction () so relevancy doesn't change.
 
399
                                Vanish();
 
400
                                IObject first, second;
 
401
                                items.Clear();
 
402
                                modItems.Clear();
 
403
                                first = GetSelection (Pane.First);
 
404
                                second = GetSelection (Pane.Second);
 
405
                                if (first is IItem)
 
406
                                {
 
407
                                        items.Add(first as IItem);
 
408
                                        (second as DoAction).Perform(items.ToArray(), modItems.ToArray());
 
409
                                } else {
 
410
                                        items.Add(second as IItem);
 
411
                                        (first as DoAction).Perform(items.ToArray(), modItems.ToArray());
 
412
                                }
 
413
                                Reset();
 
414
                                
398
415
                                Gdk.Threads.Leave();
399
416
                                return false;
400
417
                        });