[gnome-logs] Avoid deprecated gtk_show_uri()



commit 69a3606024b0739101226230c5c80ae198bf53bd
Author: Jonathan Kang <jonathan121537 gmail com>
Date:   Thu Mar 16 18:05:01 2017 +0800

    Avoid deprecated gtk_show_uri()
    
    Use gtk_show_uri_on_window() instead.

 src/gl-window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gl-window.c b/src/gl-window.c
index d1780bd..62cc718 100644
--- a/src/gl-window.c
+++ b/src/gl-window.c
@@ -352,8 +352,8 @@ on_help_button_clicked (GlWindow *window,
     parent = GTK_WINDOW (window);
     priv = gl_window_get_instance_private (GL_WINDOW (window));
 
-    gtk_show_uri (gtk_window_get_screen (parent), "help:gnome-logs/permissions",
-                  GDK_CURRENT_TIME, &error);
+    gtk_show_uri_on_window (parent, "help:gnome-logs/permissions",
+                            GDK_CURRENT_TIME, &error);
 
     if (error)
     {


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