[Gtk-sharp-list] Clipboard.Image/WaitForImage not available

einKI123 lukas.einkemmer at gmx.at
Thu Jun 29 11:10:11 EDT 2006


I always confuse the version of GTK+ with GTK#. So i have GTK# 2.4 and thats
the problem as you pointed out. But i have used the latest mono installer
(running a ubuntu system with GNOME 2.14) and only get GTK# 1.0 and 2.4.

However i have some problems to handle the clipboard at all. When i use the
Text Propertie all works correct but when i do the following

TargetEntry[] te = new TargetEntry[1];
te[0].Target = "text/plain";
cp.SetWithData(te,new ClipboardGetFunc(CpGetFunc),new

public static void CpGetFunc(Clipboard cp,SelectionData sd,uint info)
	sd.Text = "ab123";

i can not access the clipboard content with any other program. Maybe i get
the "text/plain" stuff false but these are MIME-types arent they?
Is there anywhere on the net a exact description how the the gtk clipboard
works (in c or any other language). I dont get it with just the reference.
Well I know the basic but I dont get it to work and most
apps only copy text into the clipboard (so i cant browse the code).

View this message in context: http://www.nabble.com/Clipboard.Image-WaitForImage-not-available-tf1862159.html#a5104525
Sent from the Mono - Gtk# forum at Nabble.com.

More information about the Gtk-sharp-list mailing list