comp.lang.ada
 help / color / mirror / Atom feed
From: Tero Koskinen <tero.koskinen@iki.fi>
Subject: Re: Using the Clipboard in Linux
Date: Sun, 8 Nov 2009 21:55:19 +0200
Date: 2009-11-08T21:55:19+02:00	[thread overview]
Message-ID: <20091108215519.0a206ba2.tero.koskinen@iki.fi> (raw)
In-Reply-To: uy6mhpcma.fsf@stephe-leake.org

On Sun, 08 Nov 2009 04:52:29 -0500 Stephen Leake wrote:

> Alex <false_email@dontwantspam.com> writes:
> 
> > I've written an application in windows that involves writing to the 
> > clipboard. I'm trying to write a version to work in Linux (Ubuntu 9.04 is 
> > what I'm developing on) and am struggling to get started with Florist.
> 
> Linux the operating system kernel doesn't have a clipboard.
> 
> X Windows does, and particular window managers may have other
> variations on it.
> 
> So you need to look in X Windows documentation, not Linux documentation.

Probably the easiest way is to use GtkAda and its clipboard methods:
http://www.adacore.com/wp-content/files/auto_update/gtkada-docs/gtkada_rm/gtkada_rm/gtk-clipboard.html

And please note that X Window System (which GtkAda uses) has two different
clipboards, PRIMARY and CLIPBOARD. (This mostly matters if you need to
communicate between two different programs via clipboard.)

-- 
Tero Koskinen - http://iki.fi/tero.koskinen/



  reply	other threads:[~2009-11-08 19:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-07 20:48 Using the Clipboard in Linux Alex
2009-11-08  9:52 ` Stephen Leake
2009-11-08 19:55   ` Tero Koskinen [this message]
2009-11-09 21:09     ` Alex
2009-11-10  8:00       ` Stephen Leake
2009-11-10 21:16         ` Alex
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox