~ubuntu-branches/ubuntu/karmic/mono-addins/karmic

« back to all changes in this revision

Viewing changes to Samples/TextEditorLib/Commands/CopyCommand.cs

  • Committer: Bazaar Package Importer
  • Author(s): Mirco Bauer
  • Date: 2007-07-14 12:07:48 UTC
  • Revision ID: james.westby@ubuntu.com-20070714120748-2elczfsjlrdsrpms
Tags: upstream-0.2
ImportĀ upstreamĀ versionĀ 0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
using System;
 
3
 
 
4
namespace TextEditor
 
5
{
 
6
        public class CopyCommand: ICommand
 
7
        {
 
8
                public void Run ()
 
9
                {
 
10
                        Gtk.Clipboard clipboard = Gtk.Clipboard.Get (Gdk.Atom.Intern ("CLIPBOARD", false));
 
11
                        TextEditorApp.MainWindow.View.Buffer.CopyClipboard (clipboard);
 
12
                }
 
13
        }
 
14
}