1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00
putty-source/unix
Simon Tatham a50da0e309 Initial support for clipboard on OS X.
Rather than trying to get my existing hugely complicated X-style
clipboard code to somehow work with the Quartz GTK back end, I've
written an entirely new and much simpler alternative clipboard handler
usnig the higher-leve GtkClipboard interface. It assumes all clipboard
text can be converted to and from UTF-8 sensibly (which isn't a good
assumption on all front ends, but on OS X I think it's reasonable),
and it talks to GDK_SELECTION_CLIPBOARD rather than PRIMARY, which is
the only clipboard OS X has.

I had to do a fiddly thing to cope with the fact that each call to
gtk_clipboard_set_with_data caused a call to the clipboard clear
function left over from the previous set of data, so I had to avoid
mistaking that for a clipboard-clear for the _new_ data and
immediately deselecting it. I did that by allocating a distinct
placeholder object in memory for each instance of the copy operation,
so that I can tell whether a clipboard-clear is for the current copy
or a previous one.

This is only very basic support which demonstrates successful copying
and pasting is at least possible. For a sensible OS X implementation
we'll need a more believable means of generating a paste UI action
(it's quite easy to find a Mac on which neither Shift-Ins nor the
third mouse button even exists!). Also, after the trouble I had with
the clipboard-clear event, it's a bit annoying to find that it
_doesn't_ seem to get called when another application becomes the
clipboard owner. That may just be something we have to put up with, if
I can't find any reason why it's failing.
2015-09-02 21:54:03 +01:00
..
configure Move the Unix configure script up to the top level. 2014-02-22 18:01:32 +00:00
gtkask.c Slightly improve layout in GTK3 Pageant passphrase prompts. 2015-08-31 15:48:07 +01:00
gtkcfg.c On OS X, be able to configure either Option or Command as Meta. 2015-09-01 19:12:19 +01:00
gtkcols.c Make Columns disregard the preferred width of GtkEntry. 2015-08-27 18:59:24 +01:00
gtkcols.h New Columns method, columns_force_same_height(). 2015-08-24 19:34:23 +01:00
gtkcompat.h Avoid using gdk_cursor_new() in GTK 3. 2015-08-31 13:41:16 +01:00
gtkdlg.c Move more functions into the new gtkmisc.c. 2015-08-31 15:45:43 +01:00
gtkfont.c Work around Pango fonts with fractional width. 2015-08-31 16:43:33 +01:00
gtkfont.h Make the use of server-side backing pixmaps in GTK optional. 2015-08-16 13:11:06 +01:00
gtkmisc.c Move more functions into the new gtkmisc.c. 2015-08-31 15:45:43 +01:00
gtkmisc.h Move more functions into the new gtkmisc.c. 2015-08-31 15:45:43 +01:00
gtkwin.c Initial support for clipboard on OS X. 2015-09-02 21:54:03 +01:00
unix.h Initial support for clipboard on OS X. 2015-09-02 21:54:03 +01:00
ux_x11.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxagentc.c Support synchronous agent requests on Unix. 2015-05-11 17:52:19 +01:00
uxcfg.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxcons.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
uxgen.c Fix another giant batch of resource leaks. (Mostly memory, but there's 2013-07-14 10:46:07 +00:00
uxgss.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxmisc.c Key rollover: put the new Master Key fingerprint in the tools. 2015-09-02 18:50:49 +01:00
uxnet.c Log identifying information for the other end of connections. 2015-05-18 14:03:10 +01:00
uxnoise.c Fix minor file descriptor leaks. Found by cppcheck, reported by Tim Kosse. 2009-09-16 22:28:20 +00:00
uxpeer.c Log identifying information for the other end of connections. 2015-05-18 14:03:10 +01:00
uxpgnt.c Change uxsel_input_add's return type from int to pointer. 2015-08-16 13:11:51 +01:00
uxplink.c Change uxsel_input_add's return type from int to pointer. 2015-08-16 13:11:51 +01:00
uxprint.c Update to r8614: another -D_FORTIFY_SOURCE=2 fix. 2010-02-20 11:21:25 +00:00
uxproxy.c Log identifying information for the other end of connections. 2015-05-18 14:03:10 +01:00
uxpterm.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
uxpty.c pterm: move termios setup to after the fork. 2015-09-01 18:49:22 +01:00
uxputty.c Stop using GTK3-deprecated gdk_get_display(). 2015-08-22 14:07:02 +01:00
uxsel.c Change uxsel_input_add's return type from int to pointer. 2015-08-16 13:11:51 +01:00
uxser.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
uxsftp.c Change uxsel_input_add's return type from int to pointer. 2015-08-16 13:11:51 +01:00
uxshare.c Move make_dir_and_check_ours() out into uxmisc.c. 2015-05-05 20:16:22 +01:00
uxsignal.c Rename some of the more stupidly named files in the Unix back end. 2004-12-31 13:02:46 +00:00
uxstore.c Fix format string vulnerabilities. 2015-08-10 20:03:41 +01:00
uxucs.c Giant const-correctness patch of doom! 2015-05-15 12:47:44 +01:00
xkeysym.c Support for non-ISO-8859-1 X keysyms. So in particular, pterm in a 2003-04-27 11:10:48 +00:00
xpmptcfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpterm.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpucfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmputty.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00