[evince] shell: Fix gtk_show_uri deprecated symbol



commit b94fe2208fe7d2983a8ad3eb0120fb63f0565272
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Tue Oct 9 14:54:14 2018 -0300

    shell: Fix gtk_show_uri deprecated symbol

 shell/ev-window.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 038cb10a..ae3b8c19 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -3838,7 +3838,6 @@ ev_window_cmd_file_close_window (GSimpleAction *action,
 /**
  * ev_window_show_help:
  * @window: the #EvWindow
- * @screen: (allow-none): a #GdkScreen, or %NULL to use the default screen
  * @topic: (allow-none): the help topic, or %NULL to show the index
  *
  * Launches the help viewer on @screen to show the evince help.
@@ -3846,7 +3845,6 @@ ev_window_cmd_file_close_window (GSimpleAction *action,
  */
 static void
 ev_window_show_help (EvWindow   *window,
-                     GdkScreen  *screen,
                      const char *topic)
 {
         char *escaped_topic, *uri;
@@ -3859,7 +3857,8 @@ ev_window_show_help (EvWindow   *window,
                 uri = g_strdup ("help:evince");
         }
 
-        gtk_show_uri (screen, uri, gtk_get_current_event_time (), NULL);
+        gtk_show_uri_on_window (GTK_WINDOW (window), uri,
+                               gtk_get_current_event_time (), NULL);
         g_free (uri);
 }
 
@@ -3870,7 +3869,7 @@ ev_window_cmd_help (GSimpleAction *action,
 {
        EvWindow *ev_window = user_data;
 
-        ev_window_show_help (ev_window, NULL, NULL);
+        ev_window_show_help (ev_window, NULL);
 }
 
 static void


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