From d0c8fc870f4fd0cdeb9783547565a4f9e34cd0b9 Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 3 Dec 2008 00:06:38 +0000 Subject: [PATCH] gtk_selection_clear_targets() does not exist on GTK 1, so ifdef it. git-svn-id: svn://svn.tartarus.org/sgt/putty@8371 cda61777-01e9-0310-a592-d414129be87e --- unix/gtkwin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unix/gtkwin.c b/unix/gtkwin.c index 207bd48a..6d843ef8 100644 --- a/unix/gtkwin.c +++ b/unix/gtkwin.c @@ -1640,7 +1640,9 @@ void write_clip(void *frontend, wchar_t * data, int *attr, int len, int must_des if (gtk_selection_owner_set(inst->area, GDK_SELECTION_PRIMARY, inst->input_event_time)) { +#if GTK_CHECK_VERSION(2,0,0) gtk_selection_clear_targets(inst->area, GDK_SELECTION_PRIMARY); +#endif gtk_selection_add_target(inst->area, GDK_SELECTION_PRIMARY, GDK_SELECTION_TYPE_STRING, 1); if (inst->pasteout_data_ctext) -- 2.11.0