summaryrefslogtreecommitdiffstats
path: root/widget/gtk/nsClipboardX11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'widget/gtk/nsClipboardX11.cpp')
-rw-r--r--widget/gtk/nsClipboardX11.cpp25
1 files changed, 14 insertions, 11 deletions
diff --git a/widget/gtk/nsClipboardX11.cpp b/widget/gtk/nsClipboardX11.cpp
index db12d1e69c..2693622922 100644
--- a/widget/gtk/nsClipboardX11.cpp
+++ b/widget/gtk/nsClipboardX11.cpp
@@ -138,25 +138,27 @@ ClipboardData nsRetrievalContextX11::WaitForClipboardData(
(poll_result == -1 && errno == EINTR));
}
- LOGCLIP("exceeded clipboard timeout");
+ MOZ_CLIPBOARD_LOG("exceeded clipboard timeout");
return {};
}
ClipboardTargets nsRetrievalContextX11::GetTargetsImpl(
int32_t aWhichClipboard) {
- LOGCLIP("nsRetrievalContextX11::GetTargetsImpl(%s)\n",
- aWhichClipboard == nsClipboard::kSelectionClipboard ? "primary"
- : "clipboard");
+ MOZ_CLIPBOARD_LOG("nsRetrievalContextX11::GetTargetsImpl(%s)\n",
+ aWhichClipboard == nsClipboard::kSelectionClipboard
+ ? "primary"
+ : "clipboard");
return WaitForClipboardData(ClipboardDataType::Targets, aWhichClipboard)
.ExtractTargets();
}
ClipboardData nsRetrievalContextX11::GetClipboardData(const char* aMimeType,
int32_t aWhichClipboard) {
- LOGCLIP("nsRetrievalContextX11::GetClipboardData(%s) MIME %s\n",
- aWhichClipboard == nsClipboard::kSelectionClipboard ? "primary"
- : "clipboard",
- aMimeType);
+ MOZ_CLIPBOARD_LOG("nsRetrievalContextX11::GetClipboardData(%s) MIME %s\n",
+ aWhichClipboard == nsClipboard::kSelectionClipboard
+ ? "primary"
+ : "clipboard",
+ aMimeType);
return WaitForClipboardData(ClipboardDataType::Data, aWhichClipboard,
aMimeType);
@@ -164,9 +166,10 @@ ClipboardData nsRetrievalContextX11::GetClipboardData(const char* aMimeType,
GUniquePtr<char> nsRetrievalContextX11::GetClipboardText(
int32_t aWhichClipboard) {
- LOGCLIP("nsRetrievalContextX11::GetClipboardText(%s)\n",
- aWhichClipboard == nsClipboard::kSelectionClipboard ? "primary"
- : "clipboard");
+ MOZ_CLIPBOARD_LOG("nsRetrievalContextX11::GetClipboardText(%s)\n",
+ aWhichClipboard == nsClipboard::kSelectionClipboard
+ ? "primary"
+ : "clipboard");
return WaitForClipboardData(ClipboardDataType::Text, aWhichClipboard)
.ExtractText();