From 095a02f2597992e791d304270335d94c3120f2b6 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Fri, 10 Jan 2020 19:40:14 +0100 Subject: Update GTK clipboard handling - Store the clipboard even if it was set in a GTK dialog. - Fix a GtkTargetList leak. - Notify GTK that the data is no longer available for clipboard_get_cb(), so that GTK will no longer advertise nor attempt to store the data. --- widget/gtk/nsClipboard.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'widget/gtk/nsClipboard.h') diff --git a/widget/gtk/nsClipboard.h b/widget/gtk/nsClipboard.h index 70c866a01..c3129bf20 100644 --- a/widget/gtk/nsClipboard.h +++ b/widget/gtk/nsClipboard.h @@ -39,13 +39,12 @@ private: static GdkAtom GetSelectionAtom (int32_t aWhichClipboard); static GtkSelectionData *GetTargets (GdkAtom aWhichClipboard); - // Save global clipboard content to gtk - nsresult Store (void); - // Get our hands on the correct transferable, given a specific // clipboard nsITransferable *GetTransferable (int32_t aWhichClipboard); + void ClearTransferable(int32_t aWhichClipboard); + // Hang on to our owners and transferables so we can transfer data // when asked. nsCOMPtr mSelectionOwner; -- cgit v1.2.3