Beispiel #1
0
        protected void OnRepositoryUrlEntryClipboardPasted(object sender, EventArgs e)
        {
            Gtk.Clipboard clip = GetClipboard(Gdk.Atom.Intern("CLIPBOARD", false));
            clip.RequestText(delegate(Gtk.Clipboard clp, string text) {
                if (String.IsNullOrEmpty(text))
                {
                    return;
                }

                Uri url;
                if (Uri.TryCreate(text, UriKind.Absolute, out url))
                {
                    repositoryUrlEntry.Text = text;
                }
            });
        }
Beispiel #2
0
 public void PasteText(object obj, EventArgs args)
 {
     Gtk.Clipboard clipboard = this.editor.GetClipboard(Gdk.Selection.Clipboard);
     clipboard.RequestText(new Gtk.ClipboardTextReceivedFunc(PasteReceived));
 }
Beispiel #3
0
 public void PasteClipboard()
 {
     Gtk.Clipboard clipboard = this.GetClipboard(Gdk.Selection.Clipboard);
     clipboard.RequestText(new Gtk.ClipboardTextReceivedFunc(PasteReceived));
 }