summaryrefslogtreecommitdiff
path: root/src/clipboard-gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/clipboard-gtk.cc')
-rw-r--r--src/clipboard-gtk.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clipboard-gtk.cc b/src/clipboard-gtk.cc
index fdb19af5..491a40c7 100644
--- a/src/clipboard-gtk.cc
+++ b/src/clipboard-gtk.cc
@@ -388,7 +388,7 @@ public:
get_value(GValue* value,
GError** error)
{
- if (g_value_get_gtype(value) == G_TYPE_STRING) {
+ if (G_VALUE_HOLDS(value, G_TYPE_STRING)) {
if (auto const delegate = m_offer->clipboard().m_delegate.lock()) {
auto const str = (*delegate.*m_offer->m_get_callback)(m_offer->clipboard(), ClipboardFormat::TEXT);
if (!str)