Re: Copy-Paste operations
- From: Havoc Pennington <hp redhat com>
- To: freax pandora be
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Copy-Paste operations
- Date: 12 Apr 2001 11:21:52 -0400
Philip Van Hoof <freax pandora be> writes:
http://developer.gnome.org/doc/API/gtk/gtk-selections.html
http://developer.gnome.org/doc/API/2.0/gtk/gtk-clipboards.html
You are reading the GTK 2 docs, and using GTK 1.2.
So how do I do the same in gtk 1.2 ? I guess the gtk-clipboard will be
something for lets say next year (since everybody who will want to
use the application will need gtk 2.0)
I guess I will have to use gtk-selections but I dont have a clue how
to use it. Is there a (simple) example for this? Basicly I want to
get the data that is currently selected in X (primary). And on a later
stage of the development of this app I also want to set this..
One solution is to just take the GtkClipboard source code, copy it
into your app, and use that. Probably a relatively simple solution.
Otherwise, I don't know of a great example, the GtkEditable widget
implementation is maybe helpful.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]