[gnome-builder] libide/terminal: claim sequence when activating link



commit e14e93daad32477955b647d25d4a372ced4cd06b
Author: Christian Hergert <chergert redhat com>
Date:   Mon Sep 5 15:04:43 2022 -0700

    libide/terminal: claim sequence when activating link
    
    Fixes #1771

 src/libide/terminal/ide-terminal.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/terminal/ide-terminal.c b/src/libide/terminal/ide-terminal.c
index 6d2c4ea0e..c3f8bd359 100644
--- a/src/libide/terminal/ide-terminal.c
+++ b/src/libide/terminal/ide-terminal.c
@@ -275,7 +275,10 @@ ide_terminal_click_pressed_cb (IdeTerminal     *self,
   if (button == 1)
     {
       if (priv->url != NULL)
-        gtk_widget_activate_action (GTK_WIDGET (self), "terminal.open-link", NULL);
+        {
+          gtk_widget_activate_action (GTK_WIDGET (self), "terminal.open-link", NULL);
+          gtk_gesture_set_state (GTK_GESTURE (click), GTK_EVENT_SEQUENCE_CLAIMED);
+        }
     }
   else if (button == 3)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]