Re: Copy-Paste operations



Philip Van Hoof <freax pandora be> writes:
How do I get (and set) the copypaste selection using gtk?

This is some information that I've found myself
so far I havn't got it working...

http://developer.gnome.org/doc/API/gtk/gtk-selections.html
http://developer.gnome.org/doc/API/2.0/gtk/gtk-clipboards.html

Using this 

...
   GtkClipboard *clipb;

   clipb = gtk_clipboard_get(GDK_NONE); /* GDK_SELECTION_PRIMARY */
   g_warning("text %s", gtk_clipboard_wait_for_text(clipb));
...


You are reading the GTK 2 docs, and using GTK 1.2.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]