[gnome-builder] terminal: use xdg-open wrapper to open URLs on host



commit 36429dde0c5c5b3508b884509395486c09f8ede8
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 23 11:32:43 2019 -0800

    terminal: use xdg-open wrapper to open URLs on host
    
    Related #777

 src/libide/terminal/ide-terminal.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/libide/terminal/ide-terminal.c b/src/libide/terminal/ide-terminal.c
index 12b6eca67..699b37ca8 100644
--- a/src/libide/terminal/ide-terminal.c
+++ b/src/libide/terminal/ide-terminal.c
@@ -350,12 +350,12 @@ ide_terminal_open_link (IdeTerminal *self)
       return TRUE;
     }
 
-  if (NULL != (app = GTK_APPLICATION (g_application_get_default ())) &&
-      NULL != (focused_window = gtk_application_get_active_window (app)))
-    return gtk_show_uri_on_window (focused_window,
-                                   priv->url,
-                                   gtk_get_current_event_time (),
-                                   NULL);
+  if ((app = GTK_APPLICATION (g_application_get_default ())) &&
+      (focused_window = gtk_application_get_active_window (app)))
+    return ide_gtk_show_uri_on_window (focused_window,
+                                       priv->url,
+                                       g_get_monotonic_time (),
+                                       NULL);
 
   return FALSE;
 }


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