diff options
Diffstat (limited to 'Samples/TextEditor/TextEditorLib/Commands/CutCommand.cs')
-rw-r--r-- | Samples/TextEditor/TextEditorLib/Commands/CutCommand.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Samples/TextEditor/TextEditorLib/Commands/CutCommand.cs b/Samples/TextEditor/TextEditorLib/Commands/CutCommand.cs new file mode 100644 index 0000000..751cac7 --- /dev/null +++ b/Samples/TextEditor/TextEditorLib/Commands/CutCommand.cs @@ -0,0 +1,16 @@ + +using System; + +namespace TextEditor +{ + + + public class CutCommand: ICommand + { + public void Run () + { + Gtk.Clipboard clipboard = Gtk.Clipboard.Get (Gdk.Atom.Intern ("CLIPBOARD", false)); + TextEditorApp.MainWindow.View.Buffer.CutClipboard (clipboard, true); + } + } +} |