summaryrefslogtreecommitdiffstats
path: root/widget/gtk/nsClipboard.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-10 19:40:14 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-11 13:49:49 +0100
commite01d499617b7e090785006c13e92f02e22993ca5 (patch)
tree5aeb973ee886ca649498a9168551381a588d61a3 /widget/gtk/nsClipboard.h
parent38b00414148f4b013499b759ba3cd6cb72a15179 (diff)
downloadUXP-e01d499617b7e090785006c13e92f02e22993ca5.tar
UXP-e01d499617b7e090785006c13e92f02e22993ca5.tar.gz
UXP-e01d499617b7e090785006c13e92f02e22993ca5.tar.lz
UXP-e01d499617b7e090785006c13e92f02e22993ca5.tar.xz
UXP-e01d499617b7e090785006c13e92f02e22993ca5.zip
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.
Diffstat (limited to 'widget/gtk/nsClipboard.h')
-rw-r--r--widget/gtk/nsClipboard.h5
1 files changed, 2 insertions, 3 deletions
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<nsIClipboardOwner> mSelectionOwner;