Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Using the Clipboard in Linux
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alex  
View profile  
 More options Nov 8, 7:48 am
Newsgroups: comp.lang.ada
From: Alex <false_em...@dontwantspam.com>
Date: Sat, 7 Nov 2009 20:48:00 +0000 (UTC)
Subject: Using the Clipboard in Linux
Greetings

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.

Can anybody point me in the right direction of some good documentation.
I've scoured the web but not found anything just yet - if anybody can
suggest a good place to start then I'd really appreciate it.

Please note I'm not asking for code just somewhere which might have some
documentation - e.g. tutorial or notes or anything really.

Many thanks

Alex


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen Leake  
View profile  
 More options Nov 8, 8:52 pm
Newsgroups: comp.lang.ada
From: Stephen Leake <stephen_le...@stephe-leake.org>
Date: Sun, 08 Nov 2009 04:52:29 -0500
Local: Sun, Nov 8 2009 8:52 pm
Subject: Re: Using the Clipboard in Linux

Alex <false_em...@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.

--
-- Stephe


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tero Koskinen  
View profile  
 More options Nov 9, 6:55 am
Newsgroups: comp.lang.ada
From: Tero Koskinen <tero.koski...@iki.fi>
Date: Sun, 8 Nov 2009 21:55:19 +0200
Local: Mon, Nov 9 2009 6:55 am
Subject: Re: Using the Clipboard in Linux
On Sun, 08 Nov 2009 04:52:29 -0500 Stephen Leake wrote:

> Alex <false_em...@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/gtkad...

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    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex  
View profile  
 More options Nov 10, 8:09 am
Newsgroups: comp.lang.ada
From: Alex <false_em...@dontwantspam.com>
Date: Mon, 9 Nov 2009 21:09:22 +0000 (UTC)
Local: Tues, Nov 10 2009 8:09 am
Subject: Re: Using the Clipboard in Linux

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 and Stephen

Thanks very much for your advice - it's a great help.

My application is using GTK anyway but for the windows version I used the
Win32 API so I assumed that symmetrically I would need the Linux API to
do the same on windows. Thanks for clearing that up - I should be able to
crack on and effect the clipboard part of my application with GTK now.

I have to say that I've really found this group a helpful bunch - the Ada
community really does seem a good crowd.

Thanks again chaps

Alex


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen Leake  
View profile  
 More options Nov 10, 7:00 pm
Newsgroups: comp.lang.ada
From: Stephen Leake <stephen_le...@stephe-leake.org>
Date: Tue, 10 Nov 2009 03:00:21 -0500
Local: Tues, Nov 10 2009 7:00 pm
Subject: Re: Using the Clipboard in Linux

Alex <false_em...@dontwantspam.com> writes:
> My application is using GTK anyway but for the windows version I used the
> Win32 API

I don't understand; Gtk is available on Win32, and (should) provide
everything you need.

I guess you just didn't realize Gtk handled the clipboard?

--
-- Stephe


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex  
View profile  
 More options Nov 11, 8:16 am
Newsgroups: comp.lang.ada
From: Alex <false_em...@dontwantspam.com>
Date: Tue, 10 Nov 2009 21:16:37 +0000 (UTC)
Local: Wed, Nov 11 2009 8:16 am
Subject: Re: Using the Clipboard in Linux

On Tue, 10 Nov 2009 03:00:21 -0500, Stephen Leake wrote:
> Alex <false_em...@dontwantspam.com> writes:

>> My application is using GTK anyway but for the windows version I used
>> the Win32 API

> I don't understand; Gtk is available on Win32, and (should) provide
> everything you need.

> I guess you just didn't realize Gtk handled the clipboard?

I didn't realise that Gtk provided a clipboard access so I did it with
the win32 api. I guess I can revisit that too.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google