From b33b5ff0ce872343b364a72c0bd7aa8ab8c6e5f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?=
Date: Sun, 23 Nov 2025 16:42:40 +0100 Subject: [PATCH] Prevent gtk_widget_error_bell() in clipboard watch I'm not sure if the position setting is necessary at all. --- src/tdv-gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tdv-gui.c b/src/tdv-gui.c index 6c1cf59..a65f298 100644 --- a/src/tdv-gui.c +++ b/src/tdv-gui.c @@ -146,8 +146,8 @@ on_selection_received (G_GNUC_UNUSED GtkClipboard *clipboard, const gchar *text, gchar *trimmed = g_strstrip (g_strdup (text)); gtk_entry_set_text (GTK_ENTRY (g.entry), trimmed); g_free (trimmed); - g_signal_emit_by_name (g.entry, - "move-cursor", GTK_MOVEMENT_BUFFER_ENDS, 1, FALSE); + + gtk_editable_set_position (GTK_EDITABLE (g.entry), -1); } static void