[Gtk-sharp-list] Gtk.Clipboard Issue
Carlos J. Muentes
carlos at rockwithme.org
Sat Dec 2 18:28:25 EST 2006
A little disappointed with the no response, but I know you guys are
Anyway, I figured it out; error on my side (found it in the docs for a
Gtk.TextBuffer). Here's what I did:
textView1.Buffer.CopyClipboard( Clipboard.Get( Gdk.Selection.Clipboard ) );
On Fri, 2006-12-01 at 00:00 -0500, Carlos J. Muentes wrote:
> Hey All,
> I mistakenly posted this to the mono-devel list; sorry guys!!
> Anyway, I've got an issue trying to copy text to the default
> Clipboard. Basically, 'Cut' works intermittently, and 'Copy' doesn't
> work at all. What am I missing?
> Here's the code:
> Clipboard clipboard = Clipboard.GetForDisplay(
> Gdk.Atom.Intern( "GDK_SELECTION_CLIPBOARD", true ) );
> textView1.Buffer.CopyClipboard( this.clipboard );
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gtk-sharp-list