[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
busy!!

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.Display.Default,
> Gdk.Atom.Intern( "GDK_SELECTION_CLIPBOARD", true ) );
> 
> textView1.Buffer.CopyClipboard( this.clipboard );
> 
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20061202/3a2d2b4d/attachment.html 


More information about the Gtk-sharp-list mailing list