RE: Gnome FAQ:Cut & Paste (fwd)



> > Does there exist any kind of 'clipboard' for baboon objects, that is, 
will it be possible to cut and paste baboon objects in GNOME?
> > (So far I've heard a lot about 'drag-and-drop', but nothing about 'cut 
/ copy - paste.
> > So far, 'cut'n paste' is the only thing in windows that I really have 
missed in unix.)
> I never saw an answer to this question.  I am very curious about it.  Can
> someone please comment on the clipboard design?  Is there any code at
> which I should take a gander?

Oh, that was a long time ago...
When I wrote that message I belived that Miguel was writing the clipboard, 
but ASFAKS - no one seems to be working working with the clipboard. 
Actually, it seems as if gnome completely lacks a clipboard.

I've begun to write some kind of 'my-own-experimental-clipboard', mostly 
because I really need one *now*.
I will probably not be the one that writes the gnome clipboard, but perhaps 
it will work in a similar way so - this is how my 'clipboard' works (or 
should work, it's so far just *experimental* code).

I have divided the clipboard into some kind of CORBA server (that any 
program, even console apps not running under X should be able to use), and 
a user interface (so that anyone should be able to use their own pet GUI).

The 'server' works like a stupid DBase. Perhaps it should use a real DB 
service instead?

I guess that the 'clipboard' should pretend that it is some kind of DnD 
service, because most X gnome apps (most GTK apps) seems to support DnD, 
but not Cut/Paste.
Therefore, I presume that the 'clipboard' should use the DnD protocol of 
GTK.

Anyway, each object is made of a 'datablob' and some attributes (another 
datablob, currently text.)
Any CORBA ID (or whatever that string ID is called) is passed with the 
attributes.

Cut - operations are not directly supported by the 'clipboard'. (You use 
copy, and your app has to do the erasing)


Well, I think that's all. I hope someone cares.

bye
// Liss
liss@ydab.se



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