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-10 19:40:14 +0100
commit095a02f2597992e791d304270335d94c3120f2b6 (patch)
tree1cfcd9d4978357e59efba94020e77c4e42b683cf /widget/gtk/nsClipboard.h
parent93657762196ebdb396bc64cabaa12ca4bf4695c0 (diff)
downloadUXP-095a02f2597992e791d304270335d94c3120f2b6.tar
UXP-095a02f2597992e791d304270335d94c3120f2b6.tar.gz
UXP-095a02f2597992e791d304270335d94c3120f2b6.tar.lz
UXP-095a02f2597992e791d304270335d94c3120f2b6.tar.xz
UXP-095a02f2597992e791d304270335d94c3120f2b6.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;